Skip to content

Releases: dfinity/icp-js-core

v5.0.0

18 Dec 15:57
5e11ae0

Choose a tag to compare

New Major Release

See the v5 upgrading guide for more information.

What's Changed

  • refactor(agent): only declare IC URLs once by @ilbertt in #1187
  • refactor(agent): split inner logic of check_canister_ranges into functions by @ilbertt in #1188
  • feat: port @dfinity/principal source code to core package by @ilbertt in #1190
  • test: enable tests for core/principal by @ilbertt in #1191
  • feat: port @dfinity/candid source code to core package by @ilbertt in #1192
  • test: enable tests for core/candid by @ilbertt in #1193
  • feat: port @dfinity/agent source code to core package by @ilbertt in #1194
  • test: enable tests for core/agent by @ilbertt in #1195
  • feat: port @dfinity/identity source code to core package by @ilbertt in #1196
  • test: enable tests for core/identity by @ilbertt in #1197
  • test: use alias import for identity and add crypto dev dependency by @ilbertt in #1198
  • feat: port @dfinity/identity-secp256k1 source code to core package by @ilbertt in #1199
  • test: enable tests for core/identity/secp256k1 by @ilbertt in #1200
  • docs: update package name by @ilbertt in #1201
  • test(principal): remove unneeded dependency by @ilbertt in #1202
  • chore: remove unused script by @ilbertt in #1203
  • test: clean jest config by @ilbertt in #1204
  • feat(core)!: remove peer dependencies by @ilbertt in #1205
  • feat(assets)!: replace @dfinity/{agent,candid,principal} deps with @icp-sdk/core by @ilbertt in #1206
  • feat!: deprecate @dfinity/auth-client by @ilbertt in #1207
  • chore: configure size limit for core package by @ilbertt in #1209
  • test: migrate e2e to new deps and re-enables CI by @ilbertt in #1208
  • feat(candid): encode magic number only once by @peterpeterparker in #1210
  • chore(core): update .npmignore to ignore test-related files by @ilbertt in #1211
  • docs: build docs from core package by @ilbertt in #1212
  • build: fix pnpm audit by @ilbertt in #1215
  • docs: helper script to maintain old docs structure by @ilbertt in #1213
  • docs(agent): agent docs from core package by @ilbertt in #1214
  • docs(candid): candid docs from core package by @ilbertt in #1216
  • docs(identity): identity docs from core package by @ilbertt in #1218
  • docs(principal): principal docs from core package by @ilbertt in #1217
  • feat(agent): list_paths internal function by @ilbertt in #1219
  • refactor(agent): prepare certificate functions for new logic by @ilbertt in #1220
  • chore: remove @dfinity/assets from size checks by @ilbertt in #1222
  • build: fix pnpm audit by @ilbertt in #1226
  • ci: bump dfx to 0.30.1-beta.0 by @ilbertt in #1227
  • refactor: remove unused file by @ilbertt in #1229
  • feat(agent): lookup canister ranges using the /canister_ranges/<subnet_id>/<ranges> certificate path by @ilbertt in #1221
  • test: check_canister_ranges cases by @ilbertt in #1224
  • test: remove unneeded readState mock by @ilbertt in #1230
  • feat(agent)!: use /api/v4 for call requests by @ilbertt in #1223
  • refactor(agent): split read state into inner function by @ilbertt in #1231
  • feat(agent): readSubnetState and getSubnetIdFromCanister methods by @ilbertt in #1232
  • feat(agent): export IC_STATE_ROOT_DOMAIN_SEPARATOR constant by @ilbertt in #1233
  • feat(agent)!: support both subnet id and canister id for certificate verification by @ilbertt in #1234
  • test(agent): check subnet certificate verification by @ilbertt in #1235
  • refactor(agent,identity): remove deprecated code and fix root export docs by @ilbertt in #1236
  • refactor(agent): split CanisterStatus into smaller reusable functions by @ilbertt in #1237
  • chore: increase agent size limit by @ilbertt in #1239
  • feat(agent): SubnetStatus module by @ilbertt in #1238
  • feat(agent): syncTimeWithSubnet method for HttpAgent by @ilbertt in #1240
  • feat(agent)!: use /api/v3 for query and read_state requests by @ilbertt in #1228
  • test(agent): test syncTimeWithSubnet function by @ilbertt in #1242
  • fix(agent): do not fetch subnet state for node keys by @ilbertt in #1241
  • docs(core): v5 upgrading guide by @ilbertt in #1243
  • docs(core): add deprecation notice to v5 guide by @ilbertt in #1245
  • fix(agent): remove duplicated exports by @ilbertt in #1246
  • feat!: deprecate @dfinity/assets by @ilbertt in #1244
  • refactor!: remove @dfinity/identity-secp256k1 source code by @ilbertt in #1247
  • refactor!: remove @dfinity/identity source code by @ilbertt in #1248
  • refactor!: remove @dfinity/agent source code by @ilbertt in #1249
  • refactor!: remove @dfinity/candid source code by @ilbertt in #1250
  • refactor!: remove @dfinity/principal source code by @ilbertt in #1251
  • chore: clean build commands by @ilbertt in #1252
  • ci: remove dfinity packages publish step by @ilbertt in #1253
  • ci: bump dfx to v0.30.1-beta.2 by @ilbertt in #1254
  • test: explicit root key for mock replica by @ilbertt in #1255
  • fix(agent): check if canister is in ranges for certificates without delegation by @ilbertt in #1256
  • fix(agent): verify all query signatures instead of only the first one by @ilbertt in #1257
  • ci: restore head branch condition by @ilbertt in #1258
  • docs: add fixes section in v5 migration guide by @ilbertt in #1261
  • docs: v5 upgrading guide touches by @ilbertt in #1265
  • refactor!: remove @dfinity/auth-client source code by @ilbertt in #1263
  • refactor!: remove @dfinity/use-auth-client source code by @ilbertt in #1264
  • docs: fix v5 link typo by @ilbertt in #1266
  • ci: set dfx version to latest by @ilbertt in #1262
  • fix(agent,identity/secp256k1): remove console.* statements by @ilbertt in #1267
  • fix(agent): sync time if ingress expiry is invalid in queries by @ilbertt in #1259
  • fix(agent): sync time before retrying if query signature is outdated by @ilbertt in #1260
  • fix(agent): sync time if ingress expiry is invalid in read_state by @ilbertt in #1268

Full Changelog: v4.2.3...v5.0.0

v5.0.0-beta.2

17 Dec 18:03

Choose a tag to compare

v5.0.0-beta.2 Pre-release
Pre-release

What's Changed

  • docs(core): v5 upgrading guide by @ilbertt in #1243
  • docs(core): add deprecation notice to v5 guide by @ilbertt in #1245
  • fix(agent): remove duplicated exports by @ilbertt in #1246
  • feat!: deprecate @dfinity/assets by @ilbertt in #1244
  • refactor!: remove @dfinity/identity-secp256k1 source code by @ilbertt in #1247
  • refactor!: remove @dfinity/identity source code by @ilbertt in #1248
  • refactor!: remove @dfinity/agent source code by @ilbertt in #1249
  • refactor!: remove @dfinity/candid source code by @ilbertt in #1250
  • refactor!: remove @dfinity/principal source code by @ilbertt in #1251
  • chore: clean build commands by @ilbertt in #1252
  • ci: remove dfinity packages publish step by @ilbertt in #1253
  • ci: bump dfx to v0.30.1-beta.2 by @ilbertt in #1254
  • test: explicit root key for mock replica by @ilbertt in #1255
  • fix(agent): check if canister is in ranges for certificates without delegation by @ilbertt in #1256
  • fix(agent): verify all query signatures instead of only the first one by @ilbertt in #1257
  • ci: restore head branch condition by @ilbertt in #1258
  • docs: add fixes section in v5 migration guide by @ilbertt in #1261
  • docs: v5 upgrading guide touches by @ilbertt in #1265
  • refactor!: remove @dfinity/auth-client source code by @ilbertt in #1263
  • refactor!: remove @dfinity/use-auth-client source code by @ilbertt in #1264
  • docs: fix v5 link typo by @ilbertt in #1266
  • ci: set dfx version to latest by @ilbertt in #1262
  • fix(agent,identity/secp256k1): remove console.* statements by @ilbertt in #1267
  • fix(agent): sync time if ingress expiry is invalid in queries by @ilbertt in #1259
  • fix(agent): sync time before retrying if query signature is outdated by @ilbertt in #1260
  • fix(agent): sync time if ingress expiry is invalid in read_state by @ilbertt in #1268

Full Changelog: v5.0.0-beta.1...v5.0.0-beta.2

v5.0.0-beta.1

17 Dec 18:03

Choose a tag to compare

v5.0.0-beta.1 Pre-release
Pre-release

What's Changed

  • docs: build docs from core package by @ilbertt in #1212
  • build: fix pnpm audit by @ilbertt in #1215
  • docs: helper script to maintain old docs structure by @ilbertt in #1213
  • docs(agent): agent docs from core package by @ilbertt in #1214
  • docs(candid): candid docs from core package by @ilbertt in #1216
  • docs(identity): identity docs from core package by @ilbertt in #1218
  • docs(principal): principal docs from core package by @ilbertt in #1217
  • feat(agent): list_paths internal function by @ilbertt in #1219
  • refactor(agent): prepare certificate functions for new logic by @ilbertt in #1220
  • chore: remove @dfinity/assets from size checks by @ilbertt in #1222
  • build: fix pnpm audit by @ilbertt in #1226
  • ci: bump dfx to 0.30.1-beta.0 by @ilbertt in #1227
  • refactor: remove unused file by @ilbertt in #1229
  • feat(agent): lookup canister ranges using the /canister_ranges/<subnet_id>/<ranges> certificate path by @ilbertt in #1221
  • test: check_canister_ranges cases by @ilbertt in #1224
  • test: remove unneeded readState mock by @ilbertt in #1230
  • feat(agent)!: use /api/v4 for call requests by @ilbertt in #1223
  • refactor(agent): split read state into inner function by @ilbertt in #1231
  • feat(agent): readSubnetState and getSubnetIdFromCanister methods by @ilbertt in #1232
  • feat(agent): export IC_STATE_ROOT_DOMAIN_SEPARATOR constant by @ilbertt in #1233
  • feat(agent)!: support both subnet id and canister id for certificate verification by @ilbertt in #1234
  • test(agent): check subnet certificate verification by @ilbertt in #1235
  • refactor(agent,identity): remove deprecated code and fix root export docs by @ilbertt in #1236
  • refactor(agent): split CanisterStatus into smaller reusable functions by @ilbertt in #1237
  • chore: increase agent size limit by @ilbertt in #1239
  • feat(agent): SubnetStatus module by @ilbertt in #1238
  • feat(agent): syncTimeWithSubnet method for HttpAgent by @ilbertt in #1240
  • feat(agent)!: use /api/v3 for query and read_state requests by @ilbertt in #1228
  • test(agent): test syncTimeWithSubnet function by @ilbertt in #1242
  • fix(agent): do not fetch subnet state for node keys by @ilbertt in #1241

Full Changelog: v5.0.0-beta.0...v5.0.0-beta.1

v5.0.0-beta.0

17 Dec 18:02

Choose a tag to compare

v5.0.0-beta.0 Pre-release
Pre-release

What's Changed

  • refactor(agent): only declare IC URLs once by @ilbertt in #1187
  • refactor(agent): split inner logic of check_canister_ranges into functions by @ilbertt in #1188
  • feat: port @dfinity/principal source code to core package by @ilbertt in #1190
  • test: enable tests for core/principal by @ilbertt in #1191
  • feat: port @dfinity/candid source code to core package by @ilbertt in #1192
  • test: enable tests for core/candid by @ilbertt in #1193
  • feat: port @dfinity/agent source code to core package by @ilbertt in #1194
  • test: enable tests for core/agent by @ilbertt in #1195
  • feat: port @dfinity/identity source code to core package by @ilbertt in #1196
  • test: enable tests for core/identity by @ilbertt in #1197
  • test: use alias import for identity and add crypto dev dependency by @ilbertt in #1198
  • feat: port @dfinity/identity-secp256k1 source code to core package by @ilbertt in #1199
  • test: enable tests for core/identity/secp256k1 by @ilbertt in #1200
  • docs: update package name by @ilbertt in #1201
  • test(principal): remove unneeded dependency by @ilbertt in #1202
  • chore: remove unused script by @ilbertt in #1203
  • test: clean jest config by @ilbertt in #1204
  • feat(core)!: remove peer dependencies by @ilbertt in #1205
  • feat(assets)!: replace @dfinity/{agent,candid,principal} deps with @icp-sdk/core by @ilbertt in #1206
  • feat!: deprecate @dfinity/auth-client by @ilbertt in #1207
  • chore: configure size limit for core package by @ilbertt in #1209
  • test: migrate e2e to new deps and re-enables CI by @ilbertt in #1208
  • feat(candid): encode magic number only once by @peterpeterparker in #1210
  • chore(core): update .npmignore to ignore test-related files by @ilbertt in #1211

Full Changelog: v4.2.3...v5.0.0-beta.0

v4.2.3

19 Nov 16:33
f80905d

Choose a tag to compare

What's Changed

Full Changelog: v4.2.2...v4.2.3

v4.2.2

10 Nov 20:03
354704a

Choose a tag to compare

What's Changed

  • chore: add node v24 to supported engines by @ilbertt in #1180
  • fix(agent): use minute precision when rounded expiry is at least 60s in future by @ilbertt in #1181

Full Changelog: v4.2.1...v4.2.2

v4.2.1

24 Oct 11:28
21dcf85

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.2.0...v4.2.1

v4.2.0

22 Oct 10:13
7122f00

Choose a tag to compare

What's Changed

Full Changelog: v4.1.1...v4.2.0

v4.1.1

21 Oct 12:12
f273c08

Choose a tag to compare

What's Changed

  • docs: do not remove header if not h1, give all module pages "Overview" title by @ilbertt in #1165
  • build: audit fix by @ilbertt in #1168
  • fix(agent): remove exported CanisterInstallMode type by @ilbertt in #1167
  • fix(auth-client): throw error if IndexedDB fails to open by @ilbertt in #1166

Full Changelog: v4.1.0...v4.1.1

v4.1.0

13 Oct 16:47
59c689c

Choose a tag to compare

What's Changed

  • refactor(principal): rename base32 functions by @ilbertt in #1160
  • docs: update quick start guide point to bindgen by @ilbertt in #1161
  • feat(principal): export the base32Encode and base32Decode functions by @q-uint in #1159
  • build: pin the version of @dfinity/* packages in core by @ilbertt in #1162
  • docs: more details regarding peer deps by @ilbertt in #1163

New Contributors

Full Changelog: v4.0.5...v4.1.0