From 69643e69b225d51084a8f9ee048ff05b21c1d2d0 Mon Sep 17 00:00:00 2001 From: Jost Schulte Date: Wed, 15 Jun 2022 04:35:19 +0200 Subject: [PATCH 1/3] fix(bundle): use URL schema for dynamic imports (#111) --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/bundle.ts | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebb40bdc..f9364b1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed ### Fixed +## 2022-06-07: v0.4.1 + +### Changed + +- Convert module import to URL schema in lazy imports. [\#111](https://github.com/holochain/holochain-client-js/pull/111) + ## 2022-06-07: v0.4.0 ### Changed diff --git a/package.json b/package.json index 07dfb474..7eb81bfa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holochain/client", - "version": "0.4.0", + "version": "0.4.1", "description": "A JavaScript client for the Holochain Conductor API", "author": "Holochain Foundation (http://holochain.org)", "license": "CAL-1.0", diff --git a/src/bundle.ts b/src/bundle.ts index 266e0281..5204203a 100644 --- a/src/bundle.ts +++ b/src/bundle.ts @@ -11,8 +11,8 @@ const readAppBundleFromPath = async (path: string): Promise => { } const { promises: { readFile }, - } = await import("fs"); - const { gunzip } = await import("zlib"); + } = await import("node:fs"); + const { gunzip } = await import("node:zlib"); const compressed = await readFile(path); const encoded: Uint8Array = await new Promise((resolve, reject) => From ac0597df8609073c87ede021e31ee044555b11fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20C=C3=B3rdoba?= Date: Tue, 28 Jun 2022 16:44:54 +0200 Subject: [PATCH 2/3] fix(header): correct field name (#113) --- src/hdk/header.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdk/header.ts b/src/hdk/header.ts index 747997e2..353f1033 100644 --- a/src/hdk/header.ts +++ b/src/hdk/header.ts @@ -10,7 +10,7 @@ import { import { EntryType } from "./entry.js"; export interface SignedHeaderHashed { - header: HoloHashed; + hashed: HoloHashed; signature: Signature; } From fb6d298e7d440082eb079c28913773735a709c7f Mon Sep 17 00:00:00 2001 From: Jost Schulte Date: Tue, 28 Jun 2022 08:52:55 -0600 Subject: [PATCH 3/3] chore(release): update changelog & bump version --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9364b1c..56f6c0fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed ### Fixed +## 2022-06-07: v0.4.3 + +### Fixed + +- Correct field name `hashed` in Header [\#113](https://github.com/holochain/holochain-client-js/pull/113) + ## 2022-06-07: v0.4.1 ### Changed diff --git a/package.json b/package.json index 7eb81bfa..ce70685e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holochain/client", - "version": "0.4.1", + "version": "0.4.3", "description": "A JavaScript client for the Holochain Conductor API", "author": "Holochain Foundation (http://holochain.org)", "license": "CAL-1.0",