From 451cd276f9f18e913e21e61f75ec7273d154fccd Mon Sep 17 00:00:00 2001 From: NathanosDev Date: Sat, 24 Feb 2024 15:27:48 +0100 Subject: [PATCH] feat: update agent-js dependencies --- .github/actions/setup-nodejs/action.yml | 2 +- .github/workflows/release-beta.yml | 9 ++-- .github/workflows/release-latest.yml | 9 ++-- .node-version | 2 +- package.json | 10 ++-- packages/ic-angular/package.json | 8 +-- pnpm-lock.yaml | 72 ++++++++++++------------- 7 files changed, 59 insertions(+), 53 deletions(-) diff --git a/.github/actions/setup-nodejs/action.yml b/.github/actions/setup-nodejs/action.yml index b3b9352..5e1c7fc 100644 --- a/.github/actions/setup-nodejs/action.yml +++ b/.github/actions/setup-nodejs/action.yml @@ -7,5 +7,5 @@ runs: - name: Install NodeJS uses: actions/setup-node@v3 with: - node-version: 20 + node-version-file: '.node-version' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index b57b3bc..2ca5a08 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -38,7 +38,7 @@ jobs: with: commit_message: 'chore: release ${{ env.version }}' commit_options: '--no-verify --signoff' - file_pattern: | + file_pattern: > .cz.toml CHANGELOG.md packages/ic-angular/package.json @@ -46,7 +46,10 @@ jobs: tagging_message: '${{ env.version }}' - name: Generate Release Notes - run: cz changelog --incremental --file-name RELEASE_NOTES.md + run: | + cz changelog --incremental --file-name RELEASE_NOTES.md + RELEASE_NOTES=$(cat RELEASE_NOTES.md) + echo "release_notes=$RELEASE_NOTES" >> "$GITHUB_ENV" - name: Publish ic-angular to npm env: @@ -68,7 +71,7 @@ jobs: artifacts: > 'hadronous-ic-angular-${{ env.version }}.tgz', 'hadronous-ic-build-angular-${{ env.version }}.tgz' - bodyFile: 'RELEASE_NOTES.md' + body: '${{ env.release_notes }}' tag: '${{ env.version }}' commit: 'main' prerelease: true diff --git a/.github/workflows/release-latest.yml b/.github/workflows/release-latest.yml index b2cfa69..0a4c677 100644 --- a/.github/workflows/release-latest.yml +++ b/.github/workflows/release-latest.yml @@ -38,7 +38,7 @@ jobs: with: commit_message: 'chore: release ${{ env.version }}' commit_options: '--no-verify --signoff' - file_pattern: | + file_pattern: > .cz.toml CHANGELOG.md packages/ic-angular/package.json @@ -46,7 +46,10 @@ jobs: tagging_message: '${{ env.version }}' - name: Generate Release Notes - run: cz changelog --incremental --file-name RELEASE_NOTES.md + run: | + cz changelog --incremental --file-name RELEASE_NOTES.md + RELEASE_NOTES=$(cat RELEASE_NOTES.md) + echo "release_notes=$RELEASE_NOTES" >> "$GITHUB_ENV" - name: Publish ic-angular to npm env: @@ -68,7 +71,7 @@ jobs: artifacts: > 'hadronous-ic-angular-${{ env.version }}.tgz', 'hadronous-ic-build-angular-${{ env.version }}.tgz' - bodyFile: 'RELEASE_NOTES.md' + body: '${{ env.release_notes }}' tag: '${{ env.version }}' commit: 'main' makeLatest: true diff --git a/.node-version b/.node-version index d5a1596..ee09fac 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.10.0 +v20.11.1 diff --git a/package.json b/package.json index 8e9a157..c2cd3e12 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,11 @@ "@angular/platform-browser": "^17.1.1", "@angular/platform-browser-dynamic": "^17.1.1", "@angular/router": "^17.1.1", - "@dfinity/agent": "~0.21.4", - "@dfinity/auth-client": "~0.21.4", - "@dfinity/candid": "~0.21.4", - "@dfinity/identity": "~0.21.4", - "@dfinity/principal": "~0.21.4", + "@dfinity/agent": "^1.0.1", + "@dfinity/auth-client": "^1.0.1", + "@dfinity/candid": "^1.0.1", + "@dfinity/identity": "^1.0.1", + "@dfinity/principal": "^1.0.1", "@hadronous/ic-build-angular": "workspace:*", "@peculiar/webcrypto": "^1.4.5", "@types/jasmine": "^5.1.4", diff --git a/packages/ic-angular/package.json b/packages/ic-angular/package.json index fd0a7b3..ef784b9 100644 --- a/packages/ic-angular/package.json +++ b/packages/ic-angular/package.json @@ -18,10 +18,10 @@ "peerDependencies": { "@angular/core": "^17.0.0", "@angular/router": "^17.0.0", - "@dfinity/agent": "~0.21.0", - "@dfinity/candid": "~0.21.0", - "@dfinity/auth-client": "~0.21.0", - "@dfinity/principal": "~0.21.0", + "@dfinity/agent": "^1.0.1", + "@dfinity/candid": "^1.0.1", + "@dfinity/auth-client": "^1.0.1", + "@dfinity/principal": "^1.0.1", "rxjs": "^7.8.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0206916..0378ab8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,20 +39,20 @@ importers: specifier: ^17.1.1 version: 17.1.1(@angular/common@17.1.1)(@angular/core@17.1.1)(@angular/platform-browser@17.1.1)(rxjs@7.8.1) '@dfinity/agent': - specifier: ~0.21.4 - version: 0.21.4(@dfinity/candid@0.21.4)(@dfinity/principal@0.21.4) + specifier: ^1.0.1 + version: 1.0.1(@dfinity/candid@1.0.1)(@dfinity/principal@1.0.1) '@dfinity/auth-client': - specifier: ~0.21.4 - version: 0.21.4(@dfinity/agent@0.21.4)(@dfinity/identity@0.21.4)(@dfinity/principal@0.21.4) + specifier: ^1.0.1 + version: 1.0.1(@dfinity/agent@1.0.1)(@dfinity/identity@1.0.1)(@dfinity/principal@1.0.1) '@dfinity/candid': - specifier: ~0.21.4 - version: 0.21.4(@dfinity/principal@0.21.4) + specifier: ^1.0.1 + version: 1.0.1(@dfinity/principal@1.0.1) '@dfinity/identity': - specifier: ~0.21.4 - version: 0.21.4(@dfinity/agent@0.21.4)(@dfinity/principal@0.21.4)(@peculiar/webcrypto@1.4.5) + specifier: ^1.0.1 + version: 1.0.1(@dfinity/agent@1.0.1)(@dfinity/principal@1.0.1)(@peculiar/webcrypto@1.4.5) '@dfinity/principal': - specifier: ~0.21.4 - version: 0.21.4 + specifier: ^1.0.1 + version: 1.0.1 '@hadronous/ic-build-angular': specifier: workspace:* version: link:packages/ic-build-angular @@ -3067,14 +3067,14 @@ packages: engines: {node: '>=0.1.90'} requiresBuild: true - /@dfinity/agent@0.21.4(@dfinity/candid@0.21.4)(@dfinity/principal@0.21.4): - resolution: {integrity: sha512-k5k8v1BmDE8RStC22FtuqbFzMLaQAQL3cE/wF45ZMKP4WmBBmCPss75RDgIVGiFwLGEKKKXE1muHQDy9g+m5yQ==} + /@dfinity/agent@1.0.1(@dfinity/candid@1.0.1)(@dfinity/principal@1.0.1): + resolution: {integrity: sha512-QoCiKIWEgsXoaiHpb76M2qLXYDS9IdfvC81dLJYvX9KVXRq8Ojo4S82tBqBFGtM0j0EKEC6mIAJV/bqhOJTtjQ==} peerDependencies: - '@dfinity/candid': ^0.21.4 - '@dfinity/principal': ^0.21.4 + '@dfinity/candid': ^1.0.1 + '@dfinity/principal': ^1.0.1 dependencies: - '@dfinity/candid': 0.21.4(@dfinity/principal@0.21.4) - '@dfinity/principal': 0.21.4 + '@dfinity/candid': 1.0.1(@dfinity/principal@1.0.1) + '@dfinity/principal': 1.0.1 '@noble/curves': 1.3.0 '@noble/hashes': 1.3.3 base64-arraybuffer: 0.2.0 @@ -3083,44 +3083,44 @@ packages: simple-cbor: 0.4.1 dev: true - /@dfinity/auth-client@0.21.4(@dfinity/agent@0.21.4)(@dfinity/identity@0.21.4)(@dfinity/principal@0.21.4): - resolution: {integrity: sha512-FF5UrFEURj7/1vcaFsR7bHFJQXXoyXH+epIYCSNno8PwbEoxpfE0kpTmE0LWXudRbOE/bajP6OoGsv33d1Nmxg==} + /@dfinity/auth-client@1.0.1(@dfinity/agent@1.0.1)(@dfinity/identity@1.0.1)(@dfinity/principal@1.0.1): + resolution: {integrity: sha512-QooHufXCDHTXySC1Tb1xf9+KRJISbw1sLYLIgY7PTxrA4Nc1ZgA7o4exwgRyIuJgoWMKrjgHPUZcu4N5ak69OQ==} peerDependencies: - '@dfinity/agent': ^0.21.4 - '@dfinity/identity': ^0.21.4 - '@dfinity/principal': ^0.21.4 + '@dfinity/agent': ^1.0.1 + '@dfinity/identity': ^1.0.1 + '@dfinity/principal': ^1.0.1 dependencies: - '@dfinity/agent': 0.21.4(@dfinity/candid@0.21.4)(@dfinity/principal@0.21.4) - '@dfinity/identity': 0.21.4(@dfinity/agent@0.21.4)(@dfinity/principal@0.21.4)(@peculiar/webcrypto@1.4.5) - '@dfinity/principal': 0.21.4 + '@dfinity/agent': 1.0.1(@dfinity/candid@1.0.1)(@dfinity/principal@1.0.1) + '@dfinity/identity': 1.0.1(@dfinity/agent@1.0.1)(@dfinity/principal@1.0.1)(@peculiar/webcrypto@1.4.5) + '@dfinity/principal': 1.0.1 idb: 7.1.1 dev: true - /@dfinity/candid@0.21.4(@dfinity/principal@0.21.4): - resolution: {integrity: sha512-BRdgLQjPbqEZDRIR985jpy92uwhdBn4mN2D8StMKyOXQLmR6hKSD0p/P2b632Sh7zPUY8HuiA8njpMZ67JEyAg==} + /@dfinity/candid@1.0.1(@dfinity/principal@1.0.1): + resolution: {integrity: sha512-PfZNV1fTOWtl+NhLOw71ACLYGugKF9HdEJKtkyBJqbj+6pqshvK6rllCUkGwMsmXfP8YopLzmoNVdy1rp/eOgg==} peerDependencies: - '@dfinity/principal': ^0.21.4 + '@dfinity/principal': ^1.0.1 dependencies: - '@dfinity/principal': 0.21.4 + '@dfinity/principal': 1.0.1 dev: true - /@dfinity/identity@0.21.4(@dfinity/agent@0.21.4)(@dfinity/principal@0.21.4)(@peculiar/webcrypto@1.4.5): - resolution: {integrity: sha512-+lTcr5+/RYwDSM7sGAKbt+kbpIWYDNpMmGi7D9iPWNJWYdWtTX6TDIJDx9dMCRN83/1lKLXF0p7F18ROZdjdUA==} + /@dfinity/identity@1.0.1(@dfinity/agent@1.0.1)(@dfinity/principal@1.0.1)(@peculiar/webcrypto@1.4.5): + resolution: {integrity: sha512-ArajyKSkiA4LjOq/ocGLMd66svgMVntF9j9P7irZScrzTCPcEXk5c7VteAqRGMwHCpI4LRipjmuZA1agwmUzRw==} peerDependencies: - '@dfinity/agent': ^0.21.4 - '@dfinity/principal': ^0.21.4 + '@dfinity/agent': ^1.0.1 + '@dfinity/principal': ^1.0.1 '@peculiar/webcrypto': ^1.4.0 dependencies: - '@dfinity/agent': 0.21.4(@dfinity/candid@0.21.4)(@dfinity/principal@0.21.4) - '@dfinity/principal': 0.21.4 + '@dfinity/agent': 1.0.1(@dfinity/candid@1.0.1)(@dfinity/principal@1.0.1) + '@dfinity/principal': 1.0.1 '@noble/curves': 1.3.0 '@noble/hashes': 1.3.3 '@peculiar/webcrypto': 1.4.5 borc: 2.1.2 dev: true - /@dfinity/principal@0.21.4: - resolution: {integrity: sha512-r9d+9BYZdFMzrq1+zcdIg6q6tlWeZ9SKnakVdhQ21qUJ6iDe0yxDlah6k9QKEh6fVsg2yv95nID++nqEosvt1Q==} + /@dfinity/principal@1.0.1: + resolution: {integrity: sha512-pCAuTLcvZEZ8fYgVzTVhfUfFGadxeWN4v2z8Q0rizeiqcHKhbJVfWUiXXjzPGG5lNz2DxKyUHQ/WS4UTbTaxvg==} dependencies: '@noble/hashes': 1.3.3 dev: true