-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1353 from near/feat/bundling-enhancements
feat: modularization and bundling enhancements
- Loading branch information
Showing
168 changed files
with
4,312 additions
and
6,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
"@near-js/accounts": minor | ||
"@near-js/biometric-ed25519": minor | ||
"@near-js/crypto": minor | ||
"@near-js/iframe-rpc": minor | ||
"@near-js/keystores": minor | ||
"@near-js/keystores-browser": minor | ||
"@near-js/keystores-node": minor | ||
"near-api-js": major | ||
"@near-js/providers": major | ||
"@near-js/signers": minor | ||
"@near-js/transactions": minor | ||
"@near-js/types": minor | ||
"@near-js/utils": major | ||
"@near-js/wallet-account": minor | ||
--- | ||
|
||
Update to Node.js 20 LTS & pnpm 9.4, modularize packages, simplify dependencies, and update tests | ||
|
||
**Breaking Changes** | ||
|
||
- `[email protected]` | ||
- The following functions are no longer exported: | ||
- `logWarning` | ||
- `fetchJson` | ||
- the unnamed wrapped `fetch` function exported from `setup-node-fetch.ts` | ||
- The browser bundle is no longer being built in version 5; for browser support please use modules | ||
|
||
- `@near-js/[email protected]` | ||
- The following functions are no longer exported: | ||
- `fetchJson` | ||
|
||
- `@near-js/[email protected]` | ||
- The following functions are no longer exported: | ||
- `logWarning` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,12 @@ jobs: | |
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
version: 9.4.0 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
node-version: 20.15.0 | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,12 @@ jobs: | |
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
version: 9.4.0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
node-version: 20.15.0 | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
master | ||
|
||
env: | ||
NODE_VERSION: 18.x | ||
NODE_VERSION: 20.15.0 | ||
ENTRY_FILE: 'packages' | ||
CONFIG_PATH: 'tsconfig.base.json' | ||
USES_PNPM: 'true' | ||
|
@@ -28,7 +28,7 @@ jobs: | |
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
version: 9.4.0 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default { | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
testEnvironment: 'node', | ||
testRegex: "(/tests/.*|(\\.|/)(test|spec))\\.[jt]sx?$", | ||
transform: { | ||
'^.+\\.[tj]s$': ['ts-jest', { | ||
tsconfig: { | ||
allowJs: true, | ||
}, | ||
}], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.