Skip to content

Commit 44db759

Browse files
committed
Update to version 2.0.0
- updated to latest version of Nan 2.x - should work on node 0.12 - 4.x - should fix #22 - should fix #20
1 parent cb8964b commit 44db759

9 files changed

+185
-488
lines changed

Diff for: binding.gyp

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
2-
"targets": [
3-
{
4-
"target_name": "native",
5-
"sources": [ "src/native.cpp", "src/hashtable.cpp", "src/iterator.cpp" ],
6-
"cflags": [ "-std=c++0x" ],
7-
"include_dirs" : [ "<!(node -e \"require('nan')\")" ]
2+
"targets": [{
3+
"target_name": "native",
4+
"sources": [ "src/hashtable.cpp" ],
5+
"include_dirs" : [ "<!(node -e \"require('nan')\")" ],
6+
"conditions": [
7+
['OS=="linux"', {
8+
"cflags": [ "-std=c++11", "-Wall" ]
9+
}, {
10+
"cflags": [ "-std=c++11", "-stdlib=libc++", "-Wall" ]
11+
}]
12+
]
813
}
914
]
1015
}

Diff for: es6-map.js

-1
This file was deleted.

Diff for: package.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"name": "hashtable",
3-
"version": "1.0.3",
3+
"version": "2.0.0",
44
"description": "Native HashTable and ES6 compatible Map for Node.js",
55
"main": "./index.js",
66
"keywords": [
7-
"es6-map",
8-
"es6",
97
"hash",
108
"map",
119
"hashmap",
@@ -25,18 +23,13 @@
2523
"type": "git",
2624
"url": "git://github.com/chad3814/node-hashtable.git"
2725
},
28-
"engines": {
29-
"node": "*"
30-
},
3126
"license": "MIT",
3227
"dependencies": {
33-
"nan": "^1.7.0"
28+
"nan": "latest"
3429
},
3530
"devDependencies": {
3631
"test-more": "~0.1.1",
37-
"runtests": "~0.1.1",
38-
"async": "latest",
39-
"es6-map": "latest"
32+
"runtests": "~0.1.1"
4033
},
4134
"scripts": {
4235
"install": "node-gyp configure build",

0 commit comments

Comments
 (0)