Skip to content

Commit

Permalink
Merge pull request adzerk#5 from nkohari/master
Browse files Browse the repository at this point in the history
[0.4.0] Ported to NAN to add support for Node 5.x.x
  • Loading branch information
micha committed May 22, 2016
2 parents 979dd70 + 08ba3a1 commit 2251001
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 236 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Returns a hash containing internal information about the cache.

# Changelog

- 0.4.0 -- Added support for newer versions of Node via NAN
- 0.3.0 -- Changed memory allocation strategy, fixed issue where remove() would do a seek through the LRU list, code cleanup
- 0.2.0 -- Fixed issue where maxAge-based removal would result in a seek through the LRU list
- 0.1.0 -- Initial release
5 changes: 4 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
{
"target_name": "native",
"sources": ["src/native.cc", "src/LRUCache.cc"],
"cflags": [ "-std=c++0x", "-O2" ]
"cflags": [ "-std=c++0x", "-O2" ],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
]
}
]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "lru-native",
"version": "0.3.1",
"version": "0.4.0",
"description": "a native LRU cache implementation",
"devDependencies": {
"chai": "latest",
"coffee-script": "1.7.1",
"mocha": "latest"
"mocha": "latest",
"nan": "^2.2.0"
},
"scripts": {
"valgrind": "valgrind --leak-check=full --show-possibly-lost=no node --expose-gc --trace-gc node_modules/mocha/bin/_mocha -R spec --compilers coffee:coffee-script"
Expand Down
Loading

0 comments on commit 2251001

Please sign in to comment.