@ipld/dag-json
Advanced tools
Comparing version 8.0.11 to 9.0.0
143
package.json
{ | ||
"name": "@ipld/dag-json", | ||
"version": "8.0.11", | ||
"version": "9.0.0", | ||
"description": "JS implementation of DAG-JSON", | ||
"main": "./cjs/index.js", | ||
"types": "./types/index.d.ts", | ||
"scripts": { | ||
"lint": "standard *.js test/*.js", | ||
"build": "npm run build:js && npm run build:types", | ||
"build:js": "ipjs build --tests --main && npm run build:copy", | ||
"build:copy": "cp -a tsconfig.json index.js dist/ && mkdir -p dist/test && cp test/*.js dist/test/", | ||
"build:types": "npm run build:copy && cd dist && tsc --build", | ||
"test:cjs": "npm run build:js && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", | ||
"test:esm": "npm run build:js && mocha dist/esm/node-test/test-*.js && npm run test:esm:browser", | ||
"test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js", | ||
"test:cjs:browser": "polendina --page --worker --serviceworker --cleanup dist/cjs/browser-test/test-*.js", | ||
"test:esm:browser": "polendina --page --worker --serviceworker --cleanup dist/esm/browser-test/test-*.js", | ||
"test:ts": "npm run build:types && npm run test --prefix test/ts-use", | ||
"test": "npm run lint && npm run test:node && npm run test:esm && npm run test:ts", | ||
"test:ci": "npm run lint && npm run test:node && npm run test:esm && npm run test:cjs && npm run test:ts", | ||
"coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080" | ||
}, | ||
"keywords": [ | ||
"ipfs", | ||
"ipld", | ||
"multiformats" | ||
], | ||
"author": "Rod <rod@vagg.org> (http://r.va.gg/)", | ||
"license": "(Apache-2.0 AND MIT)", | ||
"exports": { | ||
"browser": "./esm/index.js", | ||
"require": "./cjs/index.js", | ||
"import": "./esm/index.js" | ||
}, | ||
"dependencies": { | ||
"cborg": "^1.5.4", | ||
"multiformats": "^9.5.4" | ||
}, | ||
"devDependencies": { | ||
"c8": "^7.10.0", | ||
"chai": "^4.3.4", | ||
"ipjs": "^5.2.0", | ||
"ipld-garbage": "^4.0.10", | ||
"mocha": "^10.0.0", | ||
"polendina": "~3.1.0", | ||
"standard": "^17.0.0", | ||
"typescript": "~4.8.2" | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
"dist" | ||
] | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"license": "Apache-2.0 OR MIT", | ||
"homepage": "https://github.com/ipld/js-dag-json#readme", | ||
"repository": { | ||
@@ -64,13 +15,50 @@ "type": "git", | ||
}, | ||
"homepage": "https://github.com/ipld/js-dag-json#readme", | ||
"keywords": [ | ||
"ipfs", | ||
"ipld", | ||
"multiformats" | ||
], | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"npm": ">=7.0.0" | ||
}, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"types/*" | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"types/*": [ | ||
"types/*" | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "ipfs", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"test/ts-use" | ||
] | ||
}, | ||
"release": { | ||
@@ -103,11 +91,11 @@ "branches": [ | ||
{ | ||
"type": "chore", | ||
"type": "docs", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "docs", | ||
"type": "test", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "test", | ||
"type": "deps", | ||
"release": "patch" | ||
@@ -142,5 +130,9 @@ }, | ||
"type": "docs", | ||
"section": "Trivial Changes" | ||
"section": "Documentation" | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "Dependencies" | ||
}, | ||
{ | ||
"type": "test", | ||
@@ -154,8 +146,3 @@ "section": "Tests" | ||
"@semantic-release/changelog", | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"pkgRoot": "dist" | ||
} | ||
], | ||
"@semantic-release/npm", | ||
"@semantic-release/github", | ||
@@ -165,3 +152,25 @@ "@semantic-release/git" | ||
}, | ||
"browser": "./cjs/index.js" | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"lint": "aegir lint", | ||
"build": "aegir build", | ||
"release": "aegir release", | ||
"test": "npm run lint && aegir test", | ||
"test:ts": "npm run test --prefix test/ts-use", | ||
"test:node": "aegir test -t node --cov", | ||
"test:chrome": "aegir test -t browser --cov", | ||
"test:chrome-webworker": "aegir test -t webworker", | ||
"test:firefox": "aegir test -t browser -- --browser firefox", | ||
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox", | ||
"test:electron-main": "aegir test -t electron-main", | ||
"dep-check": "aegir dep-check" | ||
}, | ||
"dependencies": { | ||
"cborg": "^1.5.4", | ||
"multiformats": "^10.0.2" | ||
}, | ||
"devDependencies": { | ||
"@ipld/garbage": "^6.0.0", | ||
"aegir": "^37.5.6" | ||
} | ||
} |
@@ -1,5 +0,22 @@ | ||
# @ipld/dag-json | ||
# @ipld/dag-json <!-- omit in toc --> | ||
An implementation of the [DAG-JSON spec](https://github.com/ipld/specs/blob/master/block-layer/codecs/dag-json.md) ("Directed Acyclic Graph for IPLD") for JavaScript designed for use with [multiformats](https://github.com/multiformats/js-multiformats) or via the higher-level `Block` abstraction in [@ipld/block](https://github.com/ipld/js-block). | ||
[![codecov](https://img.shields.io/codecov/c/github/ipld/js-dag-json.svg?style=flat-square)](https://codecov.io/gh/ipld/js-dag-json) | ||
[![CI](https://img.shields.io/github/workflow/status/ipld/js-dag-json/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipld/js-dag-json/actions/workflows/js-test-and-release.yml) | ||
> JS implementation of DAG-JSON | ||
## Table of contents <!-- omit in toc --> | ||
- [Install](#install) | ||
- [Example](#example) | ||
- [Usage](#usage) | ||
- [License](#license) | ||
- [Contribute](#contribute) | ||
## Install | ||
```console | ||
$ npm i @ipld/dag-json | ||
``` | ||
## Example | ||
@@ -36,7 +53,7 @@ | ||
* Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0) | ||
* MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT) | ||
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>) | ||
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>) | ||
### Contribution | ||
## Contribute | ||
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
2
1
59
Yes
55376
7
368
+ Addedmultiformats@10.0.3(transitive)
- Removedmultiformats@9.9.0(transitive)
Updatedmultiformats@^10.0.2