Skip to content

Releases: alibaba/ice

v3.2.3

02 Jun 02:31
fa884ad
Compare
Choose a tag to compare
  • Feat: support stream options for pipeable render #6285
  • Fix: reject error when shell error in SSR #6278
  • Fix: add default polyfill for some browser do not have signal in instance of Request #6273
  • Fix: getRoutesFile is undefined when use onDemand server render #6270

v3.2.2

01 Jun 08:50
7cec998
Compare
Choose a tag to compare
  • Fix: compatible with code has import.meta #6264
  • Fix: import identifier is invalid in route config #6265

v3.2.1

01 Jun 08:30
390a0ce
Compare
Choose a tag to compare
  • Feat: support sourcemap of js entry
  • Feat: support api of addEntryImportAhead (#6256)
  • Fix: import store source before swc compiler (#6248)
  • Fix: history import from ice do not work
  • Fix: use data get undefined value

v3.2.0

01 Jun 08:05
df7a474
Compare
Choose a tag to compare
  • 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

01 Jun 07:59
4efd05a
Compare
Choose a tag to compare
  • Feat: support match target entry to bundle #6200
  • Feat: support case of import module with aliased name #6205
  • Fix: parsing url path properly #6212
  • Fix: style props convert error #6215
  • Fix: define rule of user Config #6198
  • Chore: bump @swc/helpers version(0.5.1)

v3.1.6

09 May 02:08
48c40ea
Compare
Choose a tag to compare

Patch: revert @swc/core version because of swc-project/swc#7174

v3.1.5

09 May 02:07
8d79059
Compare
Choose a tag to compare
  • 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

20 Mar 03:36
7f7f446
Compare
Choose a tag to compare
  • Fix: static resource should not render by SSR middleware #6070
  • Fix: source code of react should not packed in dataLoader #6061
  • Fix: revert build config of PR #6041 , and external node builtin modules by esbuild plugin #6088

v3.1.3

20 Mar 03:32
b04a59c
Compare
Choose a tag to compare
  • 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

06 Mar 02:45
c23c10e
Compare
Choose a tag to compare

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.