Skip to content

Releases: junobuild/juno-js

v0.0.128

21 Mar 08:07
Compare
Choose a tag to compare

@junobuild/cli-tools

Features

  • Return esbuild version in buildEsm.

v0.0.127

21 Mar 07:20
Compare
Choose a tag to compare

@junobuild/cli-tools

Features

  • Utility to build ESM for Sputnik.

Build

  • Bump dependencies.

@junobuild/analytics

Build

  • Bump dependencies.

v0.0.126

20 Mar 11:20
Compare
Choose a tag to compare

@junobuild/config-loader|did-tools

Build

  • Bump latest Babel.
  • Set Babel as peer dependency.

@junobuild/functions

Features

  • Accept run function to return void as well.
  • Set collections as readonly.

v0.0.125

18 Mar 13:14
Compare
Choose a tag to compare

@junobuild/functions

Features

  • Add support for ic-cdk::call.

Refactoring

  • Rename modules and reuse Uint8arraySchema to reflect changes made in Sputnik.

v0.0.124

16 Mar 15:27
Compare
Choose a tag to compare

@junobuild/functions

Features

  • Extract schema for functions run and assert.
  • Accept Principal object or Uint8array as caller parameter of setDocStore. This might be really handy.

v0.0.123

15 Mar 18:00
Compare
Choose a tag to compare

@junobuild/functions

Features

  • Ship the functions library as multi-entry - e.g. with @junobuild/functions/sdk or @junobuild/functions/ic-cdk
  • Add support for setDocStore
  • Add support for ic_cdk::id

v0.0.122

14 Mar 16:18
Compare
Choose a tag to compare

@junobuild/functions

Fix

  • Assertions are synchronous.

v0.0.121

14 Mar 15:59
Compare
Choose a tag to compare

@junobuild/functions

Breaking Changes

  • Remove suffix in functions name when not need (e.g. OnSetDocConfig -> OnSetDoc).

Fix

  • rawdata type equals Uint8array.

v0.0.120

14 Mar 15:18
Compare
Choose a tag to compare

@junobuild/functions

Breaking Changes

  • Review functions API to avoid duplication.
// Previous syntax
export const onSetDoc = defineHook({
	collections: ['demo', 'console'],
	onSetDoc: async (context: OnSetDocContext) => {
		console.log('onSetDoc');
	}
});

// New syntax
export const onSetDoc = defineHook<OnSetDocConfig>({
	collections: ['demo', 'console'],
	run: async (context) => {
		console.log('onSetDoc');
	}
});

Features

  • Use zod for hooks and assertions definitions.

v0.0.119

14 Mar 07:52
Compare
Choose a tag to compare

@junobuild/functions

Features

  • Polyfill for console.log with support for serializing Principal and BigInt in the passed object.