Skip to content

Commit feae08b

Browse files
committed
Support for node 0.12 and io.js, fixes chad3814#16
1 parent 4766870 commit feae08b

File tree

8 files changed

+305
-320
lines changed

8 files changed

+305
-320
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ V8 is great, but was never really meant for driving large software systems. Try
1515
Usage
1616
-----
1717

18+
*Update*: As of version 1.0.0, this module will no longer work on Node 0.10 or earlier. If this is a problem use 0.x.x.
19+
1820
Everything you might want to do first requires a new HashMap object (which corresponds to a native c++ unordered_map):
1921

2022
var HashTable = require('hashtable');

binding.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
{
44
"target_name": "native",
55
"sources": [ "src/native.cpp", "src/hashtable.cpp", "src/iterator.cpp" ],
6-
"cflags": [ "-std=c++0x" ]
6+
"cflags": [ "-std=c++0x" ],
7+
"include_dirs" : [ "<!(node -e \"require('nan')\")" ]
78
}
89
]
910
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hashtable",
3-
"version": "0.5.3",
3+
"version": "1.0.0",
44
"description": "Native HashTable and ES6 compatible Map for Node.js",
55
"main": "./index.js",
66
"keywords": [
@@ -29,6 +29,9 @@
2929
"node": "*"
3030
},
3131
"license": "MIT",
32+
"dependencies": {
33+
"nan": "^1.7.0"
34+
},
3235
"devDependencies": {
3336
"test-more": "~0.1.1",
3437
"runtests": "~0.1.1",

0 commit comments

Comments
 (0)