Skip to content

Releases: junobuild/juno-js

v247

17 Apr 10:29

Choose a tag to compare

Summary

The @junobuild/functions/canisters arguments and results have been migrated to the Juno type system and zod, which is more comprehensive than the infamous Candid IDL pain.

What's Changed

Full Changelog: v246...v247

v246

15 Apr 18:14

Choose a tag to compare

What's Changed

Full Changelog: v245...v246

v245

14 Apr 17:09

Choose a tag to compare

What's Changed

  • fix(functions-tools): forward needsJsonData when wrapping composite type in opt by @peterpeterparker in #885

Full Changelog: v244...v245

v244

14 Apr 16:28

Choose a tag to compare

What's Changed

Full Changelog: v243...v244

v243

12 Apr 18:02

Choose a tag to compare

Summary

With this release, the goal is to initiate bringing some consistency into the juno.config by grouping deployment-related options under a dedicated hosting key within the satellite configuration.

Note

This is a backwards-compatible change. Existing configurations continue to work as before.

We used to have

export default defineConfig({
	satellite: {
		ids: {
			development: 'atbka-rp777-77775-aaaaq-cai',
			production: 'ck4tp-3iaaa-aaaal-ab7da-cai'
		},
		source: 'build',
		predeploy: ['npm run build'],
		precompress: [
			{
				pattern: '**/*.+(js|mjs|css)',
				algorithm: 'brotli',
				mode: 'replace'
			},
			{
				pattern: '**/*.html',
				algorithm: 'brotli',
				mode: 'both'
			}
		],
		assertions: {
			heapMemory: 800_000_000n
		},
		collections
	}
});

And the new structure will be

export default defineConfig({
	satellite: {
		ids: {
			development: 'atbka-rp777-77775-aaaaq-cai',
			production: 'ck4tp-3iaaa-aaaal-ab7da-cai'
		},
		hosting: {
			source: 'build',
			predeploy: ['npm run build'],
			precompress: [
				{
					pattern: '**/*.+(js|mjs|css)',
					algorithm: 'brotli',
					mode: 'replace'
				},
				{
					pattern: '**/*.html',
					algorithm: 'brotli',
					mode: 'both'
				}
			]
		},
		assertions: {
			heapMemory: 800_000_000n
		},
		collections
	}
});

What's Changed

Full Changelog: v242...v243

v242

05 Apr 10:06

Choose a tag to compare

What's Changed

Full Changelog: v241...v242

v241

04 Apr 05:40

Choose a tag to compare

What's Changed

Full Changelog: v240...v241

v240

03 Apr 11:34

Choose a tag to compare

Summary

Because @icp-sdk/core wasn't marked as external in @junobuild/[email protected], the functions bundler (esbuild) ended up duplicating the Principal class. As a result, reviving encoded data mismatched references and wasn't able to deserialize data correctly. This was caught by the test suite before release (see job) and therefore, should not impact any developer.

What's Changed

Full Changelog: v239...v240

v239

03 Apr 10:12
e0ff10d

Choose a tag to compare

What's Changed

Full Changelog: v238...v239

v238

03 Apr 07:55

Choose a tag to compare

What's Changed

Full Changelog: v237...v238