ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)

MIT License

Downloads
17.2K
Stars
17.8K
Committers
83

Bot releases are hidden (Show)

ice - v3.0.6

Published by ClarkXia almost 2 years ago

  • Feat: support import.meta.target, import.meta.renderer and import.meta.env.* #5700
  • Feat: enhance memory router and support configure routes.injectInitialEntry #5800

Enable routes.injectInitialEntry when deploy memory router app by assets:

import { defineConfig } from '@ice/app';

export default defineConfig(() => ({
  splitChunks: false,
  routes: {
    injectInitialEntry: true,
  },
}));
  • Feat: support jsx runtime in rax compat mode #5803
  • Fix: pageConfig do not work when added to a new route file #5659
  • Fix: rebuild server entry when document changed #5795
  • Fix: remove ast node of ObjectProperties when disable ssg for document render #5785
  • Fix: error occur when disable SSR and SSG #5719
  • Fix(plugin-icestark): modify basename when render as a child app #5810
ice - v3.0.5

Published by ClarkXia almost 2 years ago

HotFix: bump @swc/helpers version to fix compile error #5768

ice - v3.0.4

Published by ClarkXia almost 2 years ago

  • Feat: support Nodejs 18 #5714
  • Feat: reduce code size by externalHelpers #5730
  • Feat: friendly log for developer #5690
  • Fix: refactor server compiler of alias #5732
  • Fix: re-compiler modules which depended by dataLoader #5709
  • Fix: bump version of esbuild (0.14 -> 0.16) and support incremental build of server compiler #5708
  • Fix: the error of switching route in react 16 #5739
  • Fix: hydate did not match when use SSG #5724
  • Fix: compile data-loader.js to lower es version #5758
ice - v3.0.3

Published by ClarkXia almost 2 years ago

Configurate plugin to your ice.config.mts

import { defineConfig } from '@ice/app';
import icestark from '@ice/plugin-icestark';

export default defineConfig(() => ({
  plugins: [
    icestark({ type: 'framework' }),
  ],
}));

Visit readme for details.

  • Feat: support pha prefetch defined in dataLoader
  • Fix: optimize log and fix unhandled error makes HMR failed https://github.com/alibaba/ice/issues/5654 #5688
  • Fix: error url output when enable hash router #5678
  • Fix: VisibilityChange do not work with child element #5693
  • Fix: data loader when render mode is SSG #5682
  • Fix: process exit when error occur of mock file #5658
ice - v3.0.2

Published by ClarkXia almost 2 years ago

Visit RP for details.

ice - v3.0.1

Published by ClarkXia almost 2 years ago

  • Feat: support multiple runtime entry of development #5596
  • Fix: external rule for director apis when pack server bundles #5572
  • Fix: reduce bundle size of data-loader #5577
  • Fix: optimize server bundles when development #5556
  • Fix: bump version of built-in dependencies, including @swc/core, webpack #5596
  • Fix: failed to get route config when re-define route path #5609
  • Fix: support custom config file #5622
  • Fix: add temp file to cache directory #5623
  • Fix: merge window content inject by component Script and Data #5630
  • Fix: file resolve when compile css in server compiler #5632
  • Refactor: lock pack dependencies in @ice/bundles, update swc plugins to reduce install size. #5616
ice - v3.0.0

Published by ClarkXia almost 2 years ago

🎉🎉🎉 Announcement on ice.js 3.0, Visit 📚 Docs for details.

Core Changes

  • New runtime for react 18 and react-router v6
  • Pre-render pages at build time (SSG) or request time (SSR) for default
  • Improve user experience with features such as dataLoader, script prefetch and etc
  • Multi-End Support, both web, Miniapp and Weex
  • New plugin system provides rich features and allow the community to build reusable solutions
  • 2x faster update then ice.js 2.x in mode webpack
  • Full type support for both runtime and build config
ice - v2.6.7

Published by luhc228 about 2 years ago

BugFix:

  • do not remove origin output css when config cssChunkNames #5490
  • compatible with router false of plugin-icestark #5491
  • compatible with webpack4 hash type #5478
ice - v2.6.6

Published by luhc228 about 2 years ago

  • feat: add i18n cookie options #5471
  • feat: support ssr nodeExternals #5474
  • fix: not get the real component when enable i18n #5428
  • fix: not await dynamic chunks load #5468
  • fix: some i18n bugs #5400
ice - v2.6.5

Published by ClarkXia about 2 years ago

  • Feat: support type definition of store by createModel #5443
  • Fix: do not minify source in folder public when build #5308
  • Fix: duplicate interceptor used when load App as a sub app #5321
  • Fix: problems with parse paths specified in url of css files #5350
  • Fix: getInitialProps and getStaticPath do not execute in mode SSR #5398 #5325
  • Fix: compatible to toString() function #5399
  • Fix: compatible with undefined proxy #5369
  • Fix: use fullhash replace of hash in webpack mode #5407
  • Feat: add options forceLocal of extract-css-assets plugin #5378
  • Feat: top-level warning in vite mode #5447
  • Chore: fix types of plugin-auth #5328
ice - v1.18.6

Published by luhc228 over 2 years ago

  • fix: prettier formats import/export statement order #5373
ice - v2.6.4

Published by ClarkXia over 2 years ago

Feat: support reslove mjs and mts files #5300
Fix: compatible with folder which has parentheses and spaces #5299
Fix: resolve process/browser with fully specified path for esm package #5293
Fix: generate default html when SSG #5296
Chore: upgrade dependencies version includes ([email protected] / [email protected] / [email protected] / etc.) https://github.com/ice-lab/builder-deps/pull/25

ice - v2.6.3

Published by ClarkXia over 2 years ago

Feat: support framworke alias in mode vite. Relates to #5245
Fix: miniapp app lifecycle is invalid. Relates to #5263
Fix: pre-analyze for js/jsx file. Relates to #5270
Fix: default config of conditionNames #5277
Chore: optimize compile log in mode vite. Relates to #5269

ice - v2.6.2

Published by maoxiaoke over 2 years ago

ice - v2.6.1

Published by ClarkXia over 2 years ago

Bug Fix

  • Fix: folder name for generate dts file #5229
  • Fix: support custom history #5226
  • Fix: filter js file when analyze #5234
ice - v2.6.0

Published by ClarkXia over 2 years ago

Improvement

  • Feat: support env vaiables #5164

ice.js will load additional environment variables from the following files in project root

.env                # loaded in all cases
.env.local          # loaded in all cases, recommended ignored by git
.env.[mode]         # only loaded in specified mode
.env.[mode].local   # only loaded in specified mode, recommended ignored by git

To prevent accidentally leaking env variables to the client, only variables prefixed with ICE_ are exposed to project code

  • Feat: support rename main css chunk name #5159

Specify css chunk name in your build.json config:

{
  "cssChunkNames": "index-main.css"
}

css main chunk will be always named as index-main.css when build in vite mode

  • Feat: optimize webpack-dev-mock transformer #5162

speed up mock service by esbuild

Bug Fix

  • Fix: multi socket for hmr #5129
  • Fix: vitePlugins only take effect when vite is true #5160
  • Fix: escape MockPlugn when --disable-mock in mode vite #5178
  • Fix: disable router should work as usual in mode vite #5181
  • Fix: additional analyze for auth #5209
ice - v2.5.1

Published by ClarkXia almost 3 years ago

Bug Fix

  • fix: slice error for array of source files
  • fix: filter runtime modules after file generation
ice - v2.5.0

Published by ClarkXia almost 3 years ago

Improvement

  • Feat: support SSR in Vite mode #5045

Enable SSR feature in Vite mode by config "ssr": true:

{
  "vite": true,
+  "ssr": true
}
  • Feat: i18n solution for icejs #4969

A new plugin for i18n is provided by ICE Team, enable i18n by add plugin build-plugin-ice-i18n

{
  "plugins": [
    [
      "build-plugin-ice-i18n", {
        "locales": ["en-US", "zh-CN", "nl-NL"],
        "defaultLocale": "zh-CN"
      }
    ]
  ]
}
  • Feat: optimize runtime when build #5082

Built-in optimization for bundle size, size will reduce more than 20+KB(minified) .

  • Feat: support cli option force to clear cache #5117
npm start -- --force

or

- "start": "icejs start"
+ "start": "icejs start --force"

Bug Fix

  • Fix: set content-type for html output #5110
  • Fix: compatible for src/main input when using vite-plugin-index-html #5104
  • Fix: plugin-store use the incorrect alias #5113
  • Fix: swc mode error #5143
ice - v2.4.3

Published by ClarkXia almost 3 years ago

Improvement

  • Feat: pass page props to NoAuthFallback component #5088

Bug Fix

  • Fix: circular dependence of lazy when run test #5077
  • Fix: open blank page in Vite mode #5086
  • Fix: error timing to call after.start.devServer in Vite mode #5085
  • Fix: oom when run ci workflow #5049
ice - v2.4.2

Published by ClarkXia almost 3 years ago

Improvement

  • Feat: support specify rootDir for ice.js #5051

Bug Fix

  • Fix: lazy import is invalid with swc #5060
  • Fix: style import for multiple components with stylePath #5062
  • Fix: add proxy listeners if exists #5059
Package Rankings
Top 1.21% on Npmjs.org
Related Projects