From fe61959b4be2035ceacfc60651c30185498ca9d1 Mon Sep 17 00:00:00 2001 From: Pavol Noha Date: Sun, 31 Mar 2024 13:40:59 +0200 Subject: [PATCH] RELEASE: Releasing 3 package(s) Releases: @galacticcouncil/sdk@2.0.0 --- examples/sdk-cjs/package.json | 2 +- examples/sdk-esm/package.json | 2 +- package-lock.json | 104 ++------------------------------ packages/sdk/CHANGELOG.md | 9 +++ packages/sdk/TROUBLESHOOTING.md | 0 packages/sdk/package.json | 2 +- 6 files changed, 17 insertions(+), 102 deletions(-) create mode 100644 packages/sdk/TROUBLESHOOTING.md diff --git a/examples/sdk-cjs/package.json b/examples/sdk-cjs/package.json index 1ba93f4c..2f50a41a 100644 --- a/examples/sdk-cjs/package.json +++ b/examples/sdk-cjs/package.json @@ -10,6 +10,6 @@ "node": "^21.6.0" }, "dependencies": { - "@galacticcouncil/sdk": "^1.1.7" + "@galacticcouncil/sdk": "^2.0.0" } } diff --git a/examples/sdk-esm/package.json b/examples/sdk-esm/package.json index 4610ca85..40d6dff2 100644 --- a/examples/sdk-esm/package.json +++ b/examples/sdk-esm/package.json @@ -11,6 +11,6 @@ "esbuild": "^0.17.11" }, "dependencies": { - "@galacticcouncil/sdk": "^1.1.7" + "@galacticcouncil/sdk": "^2.0.0" } } diff --git a/package-lock.json b/package-lock.json index 296c82c1..12ef3dfc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,82 +29,20 @@ }, "examples/sdk-cjs": { "dependencies": { - "@galacticcouncil/sdk": "^1.1.7" + "@galacticcouncil/sdk": "^2.0.0" }, "devDependencies": { "node": "^21.6.0" } }, - "examples/sdk-cjs/node_modules/@galacticcouncil/sdk": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@galacticcouncil/sdk/-/sdk-1.2.3.tgz", - "integrity": "sha512-lOIk81y+mhWTq9dUJwDIWIjn3LSpImTDF3LpWzzB4Y30Yhv4yPSjsRzZUJ/VX7PsLIYTbss0YoW0qslZ2dgl+w==", - "dependencies": { - "@galacticcouncil/math-lbp": "^0.2.1", - "@galacticcouncil/math-omnipool": "^0.2.0", - "@galacticcouncil/math-stableswap": "^0.2.1", - "@galacticcouncil/math-xyk": "^0.2.0", - "@thi.ng/cache": "^2.1.35", - "bignumber.js": "^9.1.0", - "lodash.clonedeep": "^4.5.0" - }, - "peerDependencies": { - "@polkadot/api": "^10.9.1", - "@polkadot/api-augment": "^10.9.1", - "@polkadot/api-base": "^10.9.1", - "@polkadot/api-derive": "^10.9.1", - "@polkadot/keyring": "^12.3.2", - "@polkadot/rpc-augment": "^10.9.1", - "@polkadot/rpc-core": "^10.9.1", - "@polkadot/rpc-provider": "^10.9.1", - "@polkadot/types": "^10.9.1", - "@polkadot/types-augment": "^10.9.1", - "@polkadot/types-codec": "^10.9.1", - "@polkadot/types-create": "^10.9.1", - "@polkadot/types-known": "^10.9.1", - "@polkadot/util": "^12.3.2", - "@polkadot/util-crypto": "^12.3.2" - } - }, "examples/sdk-esm": { "dependencies": { - "@galacticcouncil/sdk": "^1.1.7" + "@galacticcouncil/sdk": "^2.0.0" }, "devDependencies": { "esbuild": "^0.17.11" } }, - "examples/sdk-esm/node_modules/@galacticcouncil/sdk": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@galacticcouncil/sdk/-/sdk-1.2.3.tgz", - "integrity": "sha512-lOIk81y+mhWTq9dUJwDIWIjn3LSpImTDF3LpWzzB4Y30Yhv4yPSjsRzZUJ/VX7PsLIYTbss0YoW0qslZ2dgl+w==", - "dependencies": { - "@galacticcouncil/math-lbp": "^0.2.1", - "@galacticcouncil/math-omnipool": "^0.2.0", - "@galacticcouncil/math-stableswap": "^0.2.1", - "@galacticcouncil/math-xyk": "^0.2.0", - "@thi.ng/cache": "^2.1.35", - "bignumber.js": "^9.1.0", - "lodash.clonedeep": "^4.5.0" - }, - "peerDependencies": { - "@polkadot/api": "^10.9.1", - "@polkadot/api-augment": "^10.9.1", - "@polkadot/api-base": "^10.9.1", - "@polkadot/api-derive": "^10.9.1", - "@polkadot/keyring": "^12.3.2", - "@polkadot/rpc-augment": "^10.9.1", - "@polkadot/rpc-core": "^10.9.1", - "@polkadot/rpc-provider": "^10.9.1", - "@polkadot/types": "^10.9.1", - "@polkadot/types-augment": "^10.9.1", - "@polkadot/types-codec": "^10.9.1", - "@polkadot/types-create": "^10.9.1", - "@polkadot/types-known": "^10.9.1", - "@polkadot/util": "^12.3.2", - "@polkadot/util-crypto": "^12.3.2" - } - }, "examples/sdk-mjs": { "extraneous": true, "dependencies": { @@ -15089,7 +15027,7 @@ }, "packages/sdk": { "name": "@galacticcouncil/sdk", - "version": "2.0.0-beta.0", + "version": "2.0.0", "dependencies": { "@galacticcouncil/math-lbp": "^0.2.1", "@galacticcouncil/math-omnipool": "^0.2.0", @@ -24847,47 +24785,15 @@ "sdk-cjs": { "version": "file:examples/sdk-cjs", "requires": { - "@galacticcouncil/sdk": "^1.1.7", + "@galacticcouncil/sdk": "^2.0.0", "node": "^21.6.0" - }, - "dependencies": { - "@galacticcouncil/sdk": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@galacticcouncil/sdk/-/sdk-1.2.3.tgz", - "integrity": "sha512-lOIk81y+mhWTq9dUJwDIWIjn3LSpImTDF3LpWzzB4Y30Yhv4yPSjsRzZUJ/VX7PsLIYTbss0YoW0qslZ2dgl+w==", - "requires": { - "@galacticcouncil/math-lbp": "^0.2.1", - "@galacticcouncil/math-omnipool": "^0.2.0", - "@galacticcouncil/math-stableswap": "^0.2.1", - "@galacticcouncil/math-xyk": "^0.2.0", - "@thi.ng/cache": "^2.1.35", - "bignumber.js": "^9.1.0", - "lodash.clonedeep": "^4.5.0" - } - } } }, "sdk-esm": { "version": "file:examples/sdk-esm", "requires": { - "@galacticcouncil/sdk": "^1.1.7", + "@galacticcouncil/sdk": "^2.0.0", "esbuild": "^0.17.11" - }, - "dependencies": { - "@galacticcouncil/sdk": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@galacticcouncil/sdk/-/sdk-1.2.3.tgz", - "integrity": "sha512-lOIk81y+mhWTq9dUJwDIWIjn3LSpImTDF3LpWzzB4Y30Yhv4yPSjsRzZUJ/VX7PsLIYTbss0YoW0qslZ2dgl+w==", - "requires": { - "@galacticcouncil/math-lbp": "^0.2.1", - "@galacticcouncil/math-omnipool": "^0.2.0", - "@galacticcouncil/math-stableswap": "^0.2.1", - "@galacticcouncil/math-xyk": "^0.2.0", - "@thi.ng/cache": "^2.1.35", - "bignumber.js": "^9.1.0", - "lodash.clonedeep": "^4.5.0" - } - } } }, "semver": { diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index cdec7466..2dbf7006 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,14 @@ # @galacticcouncil/sdk +## 2.0.0 + +### Major Changes + +- Use deferred wasms for ESM build (Breaking!!!) + - WHAT - Wasms are not longer enbedded for esm build + - WHY - To decrease resulting bundle size + - FIX - Include wasms from sdk package to your project root + ## 1.2.3 ### Patch Changes diff --git a/packages/sdk/TROUBLESHOOTING.md b/packages/sdk/TROUBLESHOOTING.md new file mode 100644 index 00000000..e69de29b diff --git a/packages/sdk/package.json b/packages/sdk/package.json index aa8acfa5..a7e287d1 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@galacticcouncil/sdk", - "version": "1.2.3", + "version": "2.0.0", "description": "Galactic off-chain routing & optimization of orders across pools for best price execution", "author": "GalacticCouncil", "repository": {