level-packager
Advanced tools
Comparing version 2.1.1 to 3.0.0
@@ -5,2 +5,21 @@ # Changelog | ||
## [3.0.0] - 2018-05-23 | ||
### Added | ||
* Add node 10 to Travis (@ralphtheninja) | ||
* Add `UPGRADING.md` (@ralphtheninja) | ||
### Changed | ||
* Update `standard` to `^11.0.0` (@ralphtheninja) | ||
* Update `encoding-down` to `~5.0.0` (@ralphtheninja) | ||
* Update `leveldown` to `^4.0.0` (@ralphtheninja) | ||
* Update `levelup` to `^3.0.0` (@ralphtheninja) | ||
* Change `License & Copyright` to `License` in README (@ralphtheninja) | ||
* Replace `const` with `var` for IE10 support (@ralphtheninja) | ||
### Fixed | ||
### Removed | ||
* Remove node 4 from Travis (@ralphtheninja) | ||
## [2.1.1] - 2018-02-13 | ||
@@ -218,3 +237,4 @@ | ||
[Unreleased]: https://github.com/level/packager/compare/v2.1.1...HEAD | ||
[Unreleased]: https://github.com/level/packager/compare/v3.0.0...HEAD | ||
[3.0.0]: https://github.com/level/packager/compare/v2.1.1...v3.0.0 | ||
[2.1.1]: https://github.com/level/packager/compare/v2.1.0...v2.1.1 | ||
@@ -221,0 +241,0 @@ [2.1.0]: https://github.com/level/packager/compare/v2.0.2...v2.1.0 |
@@ -1,3 +0,3 @@ | ||
const levelup = require('levelup') | ||
const encode = require('encoding-down') | ||
var levelup = require('levelup') | ||
var encode = require('encoding-down') | ||
@@ -4,0 +4,0 @@ function packager (leveldown) { |
{ | ||
"name": "level-packager", | ||
"description": "LevelUP package helper for distributing with a LevelDOWN-compatible back-end", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"contributors": [ | ||
@@ -39,14 +39,14 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)", | ||
"dependencies": { | ||
"encoding-down": "~4.0.0", | ||
"levelup": "^2.0.0" | ||
"encoding-down": "~5.0.0", | ||
"levelup": "^3.0.0" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"leveldown": "^3.0.0", | ||
"standard": "^10.0.3", | ||
"leveldown": "^4.0.0", | ||
"standard": "^11.0.0", | ||
"tape": "^4.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6" | ||
} | ||
} |
@@ -28,2 +28,4 @@ # level-packager | ||
**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md). | ||
<a name="contributing"></a> | ||
@@ -39,3 +41,3 @@ ## Contributing | ||
<a name="license"></a> | ||
## License & Copyright | ||
## License | ||
@@ -42,0 +44,0 @@ Copyright (c) 2012-2018 `level-packager` [contributors](https://github.com/level/community#contributors). |
27
test.js
'use strict' | ||
const fs = require('fs') | ||
const path = require('path') | ||
const location = path.join(__dirname, 'level-test-' + process.pid + '.db') | ||
var fs = require('fs') | ||
var path = require('path') | ||
var location = path.join(__dirname, 'level-test-' + process.pid + '.db') | ||
@@ -47,3 +47,3 @@ module.exports = function (test, level, options) { | ||
test('test db open and use, db=level(location)', function (t) { | ||
const db = level(location) | ||
var db = level(location) | ||
db.put('test3', 'success', function (err) { | ||
@@ -57,4 +57,4 @@ t.notOk(err, 'no error') | ||
let c = 0 | ||
const db = level(location) | ||
const setup = options.nonPersistent ? function (callback) { | ||
var db = level(location) | ||
var setup = options.nonPersistent ? function (callback) { | ||
db.batch([ | ||
@@ -82,5 +82,5 @@ { type: 'put', key: 'test1', value: 'success' }, | ||
test('options.keyEncoding and options.valueEncoding are passed on to encoding-down', function (t) { | ||
const db = level(location, { keyEncoding: 'json', valueEncoding: 'json' }) | ||
var db = level(location, { keyEncoding: 'json', valueEncoding: 'json' }) | ||
db.on('ready', function () { | ||
const codec = db.db.codec | ||
var codec = db.db.codec | ||
t.equal(codec.opts.keyEncoding, 'json', 'keyEncoding correct') | ||
@@ -93,5 +93,5 @@ t.equal(codec.opts.valueEncoding, 'json', 'valueEncoding correct') | ||
test('encoding options default to utf8', function (t) { | ||
const db = level(location) | ||
var db = level(location) | ||
db.on('ready', function () { | ||
const codec = db.db.codec | ||
var codec = db.db.codec | ||
t.equal(codec.opts.keyEncoding, 'utf8', 'keyEncoding correct') | ||
@@ -126,7 +126,6 @@ t.equal(codec.opts.valueEncoding, 'utf8', 'valueEncoding correct') | ||
if (!module.parent) { | ||
const test = require('tape') | ||
const packager = require('./') | ||
const leveldown = require('leveldown') | ||
var test = require('tape') | ||
var packager = require('./') | ||
var leveldown = require('leveldown') | ||
module.exports(test, packager(leveldown)) | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18779
9
47
+ Addedabstract-leveldown@5.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addeddeferred-leveldown@4.0.2(transitive)
+ Addedencoding-down@5.0.4(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedlevel-codec@9.0.2(transitive)
+ Addedlevel-errors@2.0.1(transitive)
+ Addedlevel-iterator-stream@3.0.1(transitive)
+ Addedlevelup@3.1.1(transitive)
- Removedabstract-leveldown@4.0.3(transitive)
- Removeddeferred-leveldown@3.0.0(transitive)
- Removedencoding-down@4.0.1(transitive)
- Removedlevel-codec@8.0.0(transitive)
- Removedlevel-errors@1.1.2(transitive)
- Removedlevel-iterator-stream@2.0.3(transitive)
- Removedlevelup@2.0.2(transitive)
Updatedencoding-down@~5.0.0
Updatedlevelup@^3.0.0