@solana/options 2.0.0-rc.0 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +18 -7
package/README.md
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
[code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
|
|
8
8
|
[code-style-prettier-url]: https://github.com/prettier/prettier
|
|
9
|
-
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/options/
|
|
10
|
-
[npm-image]: https://img.shields.io/npm/v/@solana/options/
|
|
11
|
-
[npm-url]: https://www.npmjs.com/package/@solana/options/v/
|
|
9
|
+
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/options/rc.svg?style=flat
|
|
10
|
+
[npm-image]: https://img.shields.io/npm/v/@solana/options/rc.svg?style=flat
|
|
11
|
+
[npm-url]: https://www.npmjs.com/package/@solana/options/v/rc
|
|
12
12
|
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
|
|
13
13
|
[semantic-release-url]: https://github.com/semantic-release/semantic-release
|
|
14
14
|
|
|
15
15
|
# @solana/options
|
|
16
16
|
|
|
17
|
-
This package allows us to manage and serialize Rust-like Option types in JavaScript. It can be used standalone, but it is also exported as part of the Solana JavaScript SDK [`@solana/web3.js@
|
|
17
|
+
This package allows us to manage and serialize Rust-like Option types in JavaScript. It can be used standalone, but it is also exported as part of the Solana JavaScript SDK [`@solana/web3.js@rc`](https://github.com/solana-labs/solana-web3.js/tree/master/packages/library).
|
|
18
18
|
|
|
19
19
|
This package is also part of the [`@solana/codecs` package](https://github.com/solana-labs/solana-web3.js/tree/master/packages/codecs) which acts as an entry point for all codec packages as well as for their documentation.
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/options",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"description": "Managing and serializing Rust-like Option types in JavaScript",
|
|
5
5
|
"exports": {
|
|
6
|
+
"edge-light": {
|
|
7
|
+
"import": "./dist/index.node.mjs",
|
|
8
|
+
"require": "./dist/index.node.cjs"
|
|
9
|
+
},
|
|
10
|
+
"workerd": {
|
|
11
|
+
"import": "./dist/index.node.mjs",
|
|
12
|
+
"require": "./dist/index.node.cjs"
|
|
13
|
+
},
|
|
6
14
|
"browser": {
|
|
7
15
|
"import": "./dist/index.browser.mjs",
|
|
8
16
|
"require": "./dist/index.browser.cjs"
|
|
@@ -49,11 +57,11 @@
|
|
|
49
57
|
"node": ">=17.4"
|
|
50
58
|
},
|
|
51
59
|
"dependencies": {
|
|
52
|
-
"@solana/codecs-core": "2.0.0-rc.
|
|
53
|
-
"@solana/codecs-data-structures": "2.0.0-rc.
|
|
54
|
-
"@solana/codecs-numbers": "2.0.0-rc.
|
|
55
|
-
"@solana/codecs-strings": "2.0.0-rc.
|
|
56
|
-
"@solana/errors": "2.0.0-rc.
|
|
60
|
+
"@solana/codecs-core": "2.0.0-rc.2",
|
|
61
|
+
"@solana/codecs-data-structures": "2.0.0-rc.2",
|
|
62
|
+
"@solana/codecs-numbers": "2.0.0-rc.2",
|
|
63
|
+
"@solana/codecs-strings": "2.0.0-rc.2",
|
|
64
|
+
"@solana/errors": "2.0.0-rc.2"
|
|
57
65
|
},
|
|
58
66
|
"peerDependencies": {
|
|
59
67
|
"typescript": ">=5"
|
|
@@ -66,13 +74,16 @@
|
|
|
66
74
|
}
|
|
67
75
|
]
|
|
68
76
|
},
|
|
77
|
+
"engines": {
|
|
78
|
+
"node": ">=20.18.0"
|
|
79
|
+
},
|
|
69
80
|
"scripts": {
|
|
70
81
|
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
71
82
|
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
72
83
|
"dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
73
84
|
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks",
|
|
74
85
|
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
|
|
75
|
-
"style:fix": "pnpm eslint --fix src
|
|
86
|
+
"style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*",
|
|
76
87
|
"test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
77
88
|
"test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
78
89
|
"test:treeshakability:browser": "agadoo dist/index.browser.mjs",
|