v243
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
- feat(core): remove . in ./workers/auth.worker.js default path by @peterpeterparker in #878
- feat(config): deprecate flat config and move to hosting options by @peterpeterparker in #876
- build(workspace): bump dev dependencies by @peterpeterparker in #879
- build(workspace): npm audit fix by @peterpeterparker in #880
- build(e2e): bump dependencies in demo by @peterpeterparker in #881
- build(cdn): rm unused config dependency by @peterpeterparker in #882
Full Changelog: v242...v243