@substrate/connect
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -7,2 +7,8 @@ # Changelog | ||
## 0.8.1 - 2023-11-30 | ||
### Changed | ||
- Use chain specifications from `@substrate/connect-known-chains` ([#1647](https://github.com/paritytech/substrate-connect/pull/1647)) | ||
## 0.8.0 - 2023-11-28 | ||
@@ -9,0 +15,0 @@ |
{ | ||
"name": "@substrate/connect", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Substrate-connect to Smoldot clients. Using either substrate extension with predefined clients or an internal smoldot client based on chainSpecs provided.", | ||
@@ -10,17 +10,18 @@ "author": "Parity Team <admin@parity.io>", | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/mjs/index.js", | ||
"types": "dist/mjs/index.d.ts", | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.js" | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./worker": { | ||
"node": { | ||
"import": "./dist/mjs/worker-node.js", | ||
"require": "./dist/cjs/worker-node.js" | ||
"import": "./dist/worker-node.js", | ||
"require": "./dist/worker-node.cjs" | ||
}, | ||
"import": "./dist/mjs/worker.js", | ||
"require": "./dist/cjs/worker.js" | ||
"import": "./dist/worker.js", | ||
"require": "./dist/worker.cjs" | ||
} | ||
@@ -37,11 +38,7 @@ }, | ||
"scripts": { | ||
"postinstall": "node build-js-specs.mjs", | ||
"build-js-specs": "node build-js-specs.mjs", | ||
"pretest": "yarn build", | ||
"test": "vitest", | ||
"deep-clean": "yarn clean && rm -rf node_modules", | ||
"clean": "rm -rf dist tsconfig.tsbuildinfo", | ||
"build": "yarn clean && yarn build-js-specs && yarn run build:mjs && yarn run build:cjs && bash ./fix-package-type.sh", | ||
"build:mjs": "tsc -b tsconfig-mjs.json", | ||
"build:cjs": "tsc -b tsconfig-cjs.json", | ||
"clean": "rm -rf dist", | ||
"build": "yarn clean && tsup-node src/index.ts src/worker.ts src/worker-node.ts --clean --sourcemap --platform neutral --target=es2015 --format esm,cjs --dts", | ||
"lint": "eslint . --ext .js,.ts" | ||
@@ -51,2 +48,3 @@ }, | ||
"@substrate/connect-extension-protocol": "^1.0.1", | ||
"@substrate/connect-known-chains": "^1.0.1", | ||
"smoldot": "2.0.13" | ||
@@ -57,5 +55,6 @@ }, | ||
"jsdom": "^22.1.0", | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.6" | ||
} | ||
} | ||
} |
@@ -14,3 +14,3 @@ import type { | ||
import { WellKnownChain } from "../WellKnownChain.js" | ||
import { getSpec } from "./specs/index.js" | ||
import { getSpec } from "./getSpec.js" | ||
@@ -17,0 +17,0 @@ const listeners = new Map<string, (msg: ToApplication) => void>() |
@@ -7,3 +7,3 @@ import type { | ||
} from "smoldot" | ||
import { getSpec } from "./specs/index.js" | ||
import { getSpec } from "./getSpec.js" | ||
import { | ||
@@ -10,0 +10,0 @@ type AddWellKnownChain, |
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
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
0
0
Yes
253157
3
5
35
2766
1
+ Added@substrate/connect-known-chains@1.8.0(transitive)