Skip to content

Releases: alibaba/ice

v3.3.3

26 Sep 02:34
adf1fa4
Compare
Choose a tag to compare
  • Support config css modules name by user config #6289
import { defineConfig } from '@ice/app';

export default defineConfig(() => ({
  cssModules: {
    localIdentName: '[hash:8]',
  },
}));
  • New plugin deal with stream error, it will fallback to CSR automatically when steam error #6530
import { defineConfig } from '@ice/app';
import streamError from '@ice/plugin-stream-error';

export default defineConfig(() => ({
  plugins: [
    streamError(),
  ],
}));
  • Compat with the build case which do not need document #6536

v3.3.2

21 Sep 02:48
6926c47
Compare
Choose a tag to compare
  • Throw error when server compile failed #6508
  • Should not import runtime module and routes when CSR #6507
  • Redirect import of definePageConfig #6505
  • Remove sourcemap definition when publish packages #6511
  • Do not store base64 automatically while it may cause insufficient memory #6488
  • Support custom middleware for speedup mode #6520
  • Browser compatibility of dataLoader #6522
  • Fix params urls for hooks before.start.run #6525
  • Fix hydration error when use plugin-canvas #6521

v3.3.1

14 Sep 08:41
42718fd
Compare
Choose a tag to compare
  • Ignore static resource when render server entry #6484
  • Runtime in document should compat with old browsers #6478
  • Fix typo of app data specifier which cause twice request of app data loader #6480
  • Bump dependencies version including @swc/core, rspack #6501
  • Compatible with win32 when enable --speedup #6497
  • Mark polyfill signal as es module, so it won't break the compilation #6500

v3.3.0

11 Sep 07:27
3236acd
Compare
Choose a tag to compare
  • 🎉 Support new bundler (rspack) to speed up both local development, as well as production builds.

Enable feature through ice start --speedup:

{
  "scripts": {
    "start": "ice start --speedup",
    "build": "ice build --speedup"
  },
}
  • 🎉 Update plugin and compiler tools based on Rust, improve compile time.

v3.2.10

22 Aug 02:02
dd81060
Compare
Choose a tag to compare
  • Fix HMR failed when export pageConfig or dataLoader in page routes #6442
  • Compatible with Win32 when onDemand compiling is enabled #6466
  • Support define route with absolute path
import { defineConfig } from '@ice/app';

export default defineConfig({
  routes: {
    defineRoutes: (route) => {
      // Limitation: about.tsx should locate in root dir
      route('/hello', '/absolute/path/to/about.tsx');
    },
  },
});
  • Add exports of service for node API
// Support Node API for other build tools.
import createService from '@ice/app/service';
const service = createService({ rootDir: '', command: 'start', commadArgs: {} });
service.run();

v3.2.9

11 Aug 03:24
35acd3b
Compare
Choose a tag to compare
  • Feat: support custom render #6398
// Export runApp in `src/app.ts` allows to customize render options
export const runApp = (render, option) => {
  render();
};
  • Feat: report detail recoverable error in production #6412
  • Feat: enhance @ice/appear for weex #6391
  • Fix: listener of attach for ref callback of @ice/appear #6432
  • Fix: render twice when navigate #6400
  • Fix: unexpected behavior of useSuspenseData API in CSR #6434

v3.2.8

27 Jul 08:52
19bdfb1
Compare
Choose a tag to compare
  • Feat: support to remove react-router even route count is greater than 1 #6382
import { defineConfig } from '@ice/app';
// Remove react-router in case of render page like MPA mode.
export default defineConfig(() => ({
  optimization: { disableRouter: true },
}));
  • Feat: enhance dropLogLevel config, support specify array of drop level #6376
import { defineConfig } from '@ice/app';

export default defineConfig(() => ({
  dropLogLevel: ['trace', 'warn'],
}));
  • Feat: support new code splitting strategy page-vendors #6386
import { defineConfig } from '@ice/app';

export default defineConfig(() => ({
  codeSplitting: 'page-vendors',
}));
  • Feat: support function to specify modules with inline style #6380
  • Feat: new API for cache canvas #6367
  • Fix: always external dependencies when get app config #6383
  • Fix: format dataLoader config in PHA plugin #6384
  • Fix: do not compile runtime library such as tslib #6377

v3.2.7

10 Jul 02:29
ae705c0
Compare
Choose a tag to compare
  • Feat: support htmlGenerating to control html generation #6346
export default defineConfig(() => ({
  // Configrate htmlGenerating to disable html generation.
  htmlGenerating: false,
});
  • Fix: alias for type declaration #6360
  • Fix: compilation config not extended #6342
  • Fix: add warning log for mutate suspense data directly #6351
  • Chore: add user config comments #6347
    image
  • Fix: relative id in pipe transform #6340
  • Fix: compile error when use plugin-rax-compat #6362

v3.2.6

28 Jun 11:14
170fe47
Compare
Choose a tag to compare
  • Feat: support document API usePageAssets #6238
  • Fix: load route module error when only has one router #6297
  • Fix: task alias not be consumed #6296
  • Fix: compat with streaming api in miniapp #6268 @hzyhbk
  • Fix: replace history methods by router navigate for backwards compatibility #6317
  • Fix: refactor error handling and update error overlay #6286
  • Fix: server dataLoader error #6316
  • Fix: client send extra useless requests in render mode SSR #6307 @malei0311
  • Fix: support source map for stack trace in node #6322
  • Fix: single router optimization #6310
import { defineConfig } from '@ice/app';
export default defineConfig(() => ({
  // Active feature by config optimization.router `true`
  optimization: {
    router: true,
  },
}));

v3.2.5

28 Jun 11:10
234245e
Compare
Choose a tag to compare