Releases: junobuild/juno-js
Releases · junobuild/juno-js
v0.0.128
@junobuild/cli-tools
Features
- Return esbuild version in
buildEsm
.
v0.0.127
@junobuild/cli-tools
Features
- Utility to build ESM for Sputnik.
Build
- Bump dependencies.
@junobuild/analytics
Build
- Bump dependencies.
v0.0.126
@junobuild/config-loader|did-tools
Build
- Bump latest Babel.
- Set Babel as peer dependency.
@junobuild/functions
Features
- Accept
run
function to returnvoid
as well. - Set
collections
as readonly.
v0.0.125
@junobuild/functions
Features
- Add support for
ic-cdk::call
.
Refactoring
- Rename modules and reuse
Uint8arraySchema
to reflect changes made in Sputnik.
v0.0.124
@junobuild/functions
Features
- Extract schema for functions
run
andassert
. - Accept
Principal
object orUint8array
ascaller
parameter ofsetDocStore
. This might be really handy.
v0.0.123
@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
@junobuild/functions
Fix
- Assertions are synchronous.
v0.0.121
@junobuild/functions
Breaking Changes
- Remove suffix in functions name when not need (e.g.
OnSetDocConfig
->OnSetDoc
).
Fix
rawdata
type equalsUint8array
.
v0.0.120
@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
@junobuild/functions
Features
- Polyfill for
console.log
with support for serializingPrincipal
andBigInt
in the passed object.