Skip to content

Commit

Permalink
chore: update npm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanosdev committed Oct 7, 2024
1 parent 97146d0 commit 838510d
Show file tree
Hide file tree
Showing 25 changed files with 9,093 additions and 6,306 deletions.
1 change: 1 addition & 0 deletions .bun-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.29
4 changes: 3 additions & 1 deletion .github/actions/setup-bun/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ runs:
using: 'composite'
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version-file: '.bun-version'

- name: Install Dependencies
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-commitizen/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
using: 'composite'
steps:
- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand Down
1 change: 1 addition & 0 deletions .github/actions/setup-nodejs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ runs:
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
23 changes: 8 additions & 15 deletions .github/actions/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,19 @@ description: Setup PNPM
runs:
using: 'composite'
steps:
- uses: ./.github/actions/setup-nodejs

- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: ./.github/actions/setup-nodejs

- name: Install dependencies
shell: bash
run: pnpm i --frozen-lockfile

- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false
2 changes: 1 addition & 1 deletion .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: echo "version=$(cz version --project)" >> "$GITHUB_ENV"

- name: Push changes to repository
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: release ${{ env.version }}'
commit_options: '--no-verify --signoff'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
url: https://www.npmjs.com/package/@hadronous/pic
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -33,7 +33,7 @@ jobs:
run: echo "version=$(cz version --project)" >> "$GITHUB_ENV"

- name: Push changes to repository
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: release ${{ env.version }}'
commit_options: '--no-verify --signoff'
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v20.18.0
Binary file modified bun.lockb
Binary file not shown.
53 changes: 32 additions & 21 deletions dfx.json
Original file line number Diff line number Diff line change
@@ -1,83 +1,94 @@
{
"version": 1,
"dfx": "0.16.1",
"dfx": "0.24.0",
"output_env_file": ".env",
"networks": {
"local": {
"bind": "127.0.0.1:8080",
"type": "ephemeral",
"replica": {
"subnet_type": "system"
}
"type": "ephemeral"
}
},
"canisters": {
"counter": {
"type": "motoko",
"main": "examples/counter/src/main.mo",
"optimize": "cycles",
"init_arg": "'(42)'",
"declarations": {
"bindings": ["js", "ts"],
"output": "examples/counter/declarations"
},
"init_arg": "'(42)'"
"gzip": true,
"shrink": true,
"optimize": "cycles"
},
"clock": {
"type": "motoko",
"main": "examples/clock/src/main.mo",
"optimize": "cycles",
"declarations": {
"bindings": ["js", "ts"],
"output": "examples/clock/declarations"
}
},
"gzip": true,
"shrink": true,
"optimize": "cycles"
},
"todo": {
"type": "rust",
"candid": "examples/todo/todo.did",
"optimize": "cycles",
"package": "todo",
"declarations": {
"bindings": ["js", "ts", "did"],
"bindings": ["js", "ts"],
"output": "examples/todo/declarations"
}
},
"gzip": true,
"shrink": true,
"optimize": "cycles"
},
"multicanister": {
"type": "motoko",
"main": "examples/multicanister/src/main.mo",
"dependencies": ["phonebook", "superheroes"],
"optimize": "cycles",
"declarations": {
"bindings": ["js", "ts"],
"output": "examples/multicanister/declarations/multicanister"
}
},
"gzip": true,
"shrink": true,
"optimize": "cycles"
},
"phonebook": {
"type": "motoko",
"main": "examples/multicanister/src/phonebook.mo",
"optimize": "cycles",
"declarations": {
"bindings": ["mo"],
"output": "examples/multicanister/declarations/phonebook"
}
},
"gzip": true,
"shrink": true,
"optimize": "cycles"
},
"superheroes": {
"type": "motoko",
"main": "examples/multicanister/src/superheroes.mo",
"optimize": "cycles",
"declarations": {
"bindings": ["mo"],
"output": "examples/multicanister/declarations/superheroes"
}
},
"gzip": true,
"shrink": true,
"optimize": "cycles"
},
"nns_proxy": {
"type": "rust",
"candid": "examples/nns_proxy/nns_proxy.did",
"optimize": "cycles",
"package": "nns_proxy",
"declarations": {
"bindings": ["js", "ts", "did"],
"bindings": ["js", "ts"],
"output": "examples/nns_proxy/declarations"
}
},
"gzip": true,
"shrink": true,
"optimize": "cycles"
}
}
}
5 changes: 2 additions & 3 deletions examples/clock/src/main.mo
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Time "mo:base/Time";
import { now } = "mo:base/Time";
import { setTimer; recurringTimer } = "mo:base/Timer";
import Debug "mo:base/Debug";

Expand All @@ -16,10 +15,10 @@ actor Clock {
time := Time.now();
};

ignore setTimer(
ignore setTimer<system>(
#seconds(1),
func() : async () {
ignore recurringTimer(#seconds 1, setTime);
ignore recurringTimer<system>(#seconds 1, setTime);
await setTime();
},
);
Expand Down
4 changes: 2 additions & 2 deletions examples/clock/tests/src/clock.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const WASM_PATH = resolve(
'local',
'canisters',
'clock',
'clock.wasm',
'clock.wasm.gz',
);

describe('Clock', () => {
Expand All @@ -25,7 +25,7 @@ describe('Clock', () => {
beforeEach(async () => {
pic = await PocketIc.create(process.env.PIC_URL);
const fixture = await pic.setupCanister<_SERVICE>({
idlFactory: idlFactory,
idlFactory,
wasm: WASM_PATH,
});
actor = fixture.actor;
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/tests/src/counter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const WASM_PATH = resolve(
'local',
'canisters',
'counter',
'counter.wasm',
'counter.wasm.gz',
);

describe('Counter', () => {
Expand Down
1 change: 0 additions & 1 deletion examples/multicanister/src/main.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Principal "mo:base/Principal";
import PhoneBook "../declarations/phonebook/phonebook";
import SuperHeroes "../declarations/superheroes/superheroes";

Expand Down
1 change: 0 additions & 1 deletion examples/multicanister/src/superheroes.mo
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import List "mo:base/List";
import Option "mo:base/Option";
import Trie "mo:base/Trie";
import Nat32 "mo:base/Nat32";

Expand Down
6 changes: 3 additions & 3 deletions examples/multicanister/tests/src/multicanister.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const MAIN_WASM_PATH = resolve(
'local',
'canisters',
'multicanister',
'multicanister.wasm',
'multicanister.wasm.gz',
);

const PHONEBOOK_WASM_PATH = resolve(
Expand All @@ -33,7 +33,7 @@ const PHONEBOOK_WASM_PATH = resolve(
'local',
'canisters',
'phonebook',
'phonebook.wasm',
'phonebook.wasm.gz',
);

const SUPERHEROES_WASM_PATH = resolve(
Expand All @@ -46,7 +46,7 @@ const SUPERHEROES_WASM_PATH = resolve(
'local',
'canisters',
'superheroes',
'superheroes.wasm',
'superheroes.wasm.gz',
);

describe('Multicanister', () => {
Expand Down
Loading

0 comments on commit 838510d

Please sign in to comment.