Releases: alibaba/ice
Releases · alibaba/ice
v3.2.3
v3.2.2
v3.2.1
v3.2.0
- Refactor: core runtime of router #6123
- Refactor: remove babel dependencies for remove code #6144
- Feat: support version check of framework #6151
- Feat: support defer data loader #6137
- Feat: i18n Close #6050 close #5965
- Feat(miniapp): support app and page native events
- Fix: remove all exports of routes when render mode is csr #6140
- Fix: enable
type=module
to rax-compat #6176 - Fix: route specifier is invalid #6195
- Fix: dataLoader is sent repeatedly in PHA #6063
- Fix: possible standard properties
- Fix: compat with rax state #6165
- Fix: support inline style config for plugin rax-compat
- Fix: compatible with runtime absolute path on win32 #6162
v3.1.7
v3.1.6
Patch: revert @swc/core version because of swc-project/swc#7174
v3.1.5
- Fix: get route assets by route manifest #6083 Close #6078
- Fix: compatible with undefined value in PHA template #6082 Close #6081
- Fix: onAppear is undefined in rax-compat mode #6076 Close #6072
- Chore: env compatible with default export #6095
- Fix: refactor get route paths for remove unused code #6074 Close #6066
- Feat: support pullrefresh in PHA #6121 Close #6117
- Chore: update dependencies #6026
v3.1.4
v3.1.3
- Feat: support route index and nested url without nested layout #6003
Support access /about/repo/$id
by create route component about.repo.$id.tsx
.
└── src
├── root.jsx
└── pages
- ├── about
- │ ├── repo
- │ │ └── $id.tsx
│ └── index.tsx
+ └── about.repo.$id.tsx
Remain route path by []
which matches routing rules, such as index
route component | route |
---|---|
src/pages/[index].tsx | /index |
src/pages/about/[index].tsx | /about/index |
Visit docs for more details.
- Fix: HMR is reliable when develop #6004
- Fix: build error when use wildcard route #6023 #6022
- Fix: make sure server env variable is always false when CSR #6002
- Fix: error caused by dataLoader when navigate #6044 #6039 #5974 #5888
- Fix: useState parameter of initialState can be function in rax-compat mode #6033
- Fix: dataLoader build error when config custom fetcher #6035
- Fix: avoid remount when micro app is loaded in other micro app framework #6036
- chore: imporve build preformance by using async function #6053
- chore: add leading slash for basename in case of unexpected config #6058
- chore: make
server.onDemand
optional #6010 - chore: update init cli command for project scaffolds #5720
v3.1.2
Enable on demand compile by config ice.config.mts
:
import { defineConfig } from '@ice/app';
import SpeedMeasurePlugin from 'speed-measure-webpack-plugin';
import customPlugin from './plugin';
export default defineConfig(() => ({
ssr: true,
server: {
onDemand: true,
// Strongly recommand to set esm format when use on demand compilation.
format: 'esm',
},
}));
- Feat: support routes config for custom routing rules. #5852
import { defineConfig } from '@ice/app';
export default defineConfig({
routes: {
config: [
{
path: 'rewrite',
// 从 src/page 开始计算路径,并且需要写后缀
component: 'sales/layout.tsx',
children: [
{
path: '/favorites',
component: 'sales/favorites.tsx',
},
{
path: 'overview',
component: 'sales/overview.tsx',
},
{
path: 'recommends',
component: 'sales/recommends.tsx',
},
],
},
{
path: '/',
component: 'index.tsx',
},
],
},
});
We strongly recommend to use file system routing, which makes routes more predictable and intuitive.
- Feat: support code spiliting strategy #5957
- Fix: usage of plugin request #5922 @luhc228
- Fix: do not compile non-js file when use plugin fusion #5937
- Fix: support unknown cli options registered by plugins #5989
- Fix: import path of types and runtime #5981
- Fix: compile error when declare
@jsx createElement
comment. Thanks for the PR from @MrpandaLiu - Fix: serveral problems when use stream render #5986 #5985 #5984 #5983 #5987 #5988 @chenjun1011
- Fix: props transformation when use
rax-compat
#5999 - Fix: break change for plugin PHA #5955 #5913 @answershuto