mirror of https://github.com/alibaba/ice.git
Merge pull request #7025 from alibaba/release/next
Release @ice/app 3.5.1
This commit is contained in:
commit
6b3167acf5
|
@ -1,5 +1,14 @@
|
|||
# Changelog
|
||||
|
||||
## 3.5.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [4130611d]
|
||||
- Updated dependencies [2e274966]
|
||||
- @ice/rspack-config@1.2.1
|
||||
- @ice/runtime@1.5.1
|
||||
|
||||
## 3.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/app",
|
||||
"version": "3.5.0",
|
||||
"version": "3.5.1",
|
||||
"description": "provide scripts and configuration used by web framework ice",
|
||||
"type": "module",
|
||||
"main": "./esm/index.js",
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @ice/jsx-runtime
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 2e274966: fix: export createElement for backward compatibility
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/jsx-runtime",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "JSX runtime for ice.",
|
||||
"files": [
|
||||
"esm",
|
||||
|
@ -34,7 +34,8 @@
|
|||
"jsx-runtime"
|
||||
],
|
||||
"dependencies": {
|
||||
"style-unit": "^3.0.4"
|
||||
"style-unit": "^3.0.4",
|
||||
"@swc/helpers": "^0.5.13"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ice/pkg": "^1.5.0",
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { createElement as reactCreateElement } from 'react';
|
||||
import { hijackElementProps } from './style.js';
|
||||
export function createElement(type: any, props: any, ...children: any[]) {
|
||||
return reactCreateElement(type, hijackElementProps(props), ...children);
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
export * from './prod.js';
|
||||
export { createElement } from './createElement.js';
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @ice/miniapp-react-dom
|
||||
|
||||
## 1.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @ice/miniapp-runtime@1.2.1
|
||||
|
||||
## 1.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/miniapp-react-dom",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "like react-dom, but for miniapps.",
|
||||
"type": "module",
|
||||
"types": "./esm/index.d.ts",
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
## 1.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [2e274966]
|
||||
- @ice/runtime@1.5.1
|
||||
|
||||
## 1.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/miniapp-runtime",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "ice runtime for miniapps.",
|
||||
"type": "module",
|
||||
"types": "./esm/index.d.ts",
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
"plugin"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ice/jsx-runtime": "^0.3.0",
|
||||
"@ice/jsx-runtime": "^0.3.1",
|
||||
"@swc/helpers": "^0.5.1",
|
||||
"accept-language-parser": "^1.5.0",
|
||||
"universal-cookie": "^4.0.4",
|
||||
|
@ -56,8 +56,8 @@
|
|||
"webpack-dev-server": "4.15.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@ice/app": "^3.5.0",
|
||||
"@ice/runtime": "^1.5.0"
|
||||
"@ice/app": "^3.5.1",
|
||||
"@ice/runtime": "^1.5.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
# Changelog
|
||||
|
||||
## 1.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- cce46e9b: fix: should check skeleton file existed before read
|
||||
- @ice/miniapp-runtime@1.2.1
|
||||
- @ice/miniapp-react-dom@1.1.1
|
||||
|
||||
## 1.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/plugin-miniapp",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "ice.js plugin for miniapp.",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
@ -50,8 +50,8 @@
|
|||
"sax": "^1.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ice/app": "^3.5.0",
|
||||
"@ice/runtime": "^1.5.0",
|
||||
"@ice/app": "^3.5.1",
|
||||
"@ice/runtime": "^1.5.1",
|
||||
"webpack": "^5.88.0"
|
||||
},
|
||||
"repository": {
|
||||
|
|
|
@ -588,6 +588,7 @@ export default class MiniPlugin {
|
|||
path: pagePath,
|
||||
isNative,
|
||||
stylePath: isNative ? this.getStylePath(pagePath) : undefined,
|
||||
templatePath: isNative ? this.getTemplatePath(pagePath) : undefined,
|
||||
skeletonPath: isNative ? this.getSkeletonExtraPath(pagePath) : undefined,
|
||||
};
|
||||
}),
|
||||
|
@ -690,10 +691,10 @@ export default class MiniPlugin {
|
|||
}
|
||||
this.addEntry(path.resolve(__dirname, '..', 'template/custom-wrapper'), 'custom-wrapper', META_TYPE.STATIC);
|
||||
|
||||
const resolveComponentStyleEntry = (name: string, stylePaths: string[]) => {
|
||||
const resolveComponentStyleEntry = (name: string, stylePaths: string[], ext = this.options.fileType.style) => {
|
||||
for (const stylePath of stylePaths) {
|
||||
if (fs.existsSync(stylePath)) {
|
||||
this.addEntry(stylePath, this.getTargetFilePath(name, this.options.fileType.style), META_TYPE.NORMAL);
|
||||
this.addEntry(stylePath, this.getTargetFilePath(name, ext), META_TYPE.NORMAL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -709,12 +710,10 @@ export default class MiniPlugin {
|
|||
this.addEntry(item.templatePath, this.getTemplatePath(item.name), META_TYPE.NORMAL);
|
||||
}
|
||||
|
||||
if (item.skeletonPath) {
|
||||
if (item.skeletonPath.template) {
|
||||
this.addEntry(item.skeletonPath.template, this.getTargetFilePath(item.name, `${this.options.fileType.skeletonMidExt}${this.options.fileType.templ}`), META_TYPE.NORMAL);
|
||||
}
|
||||
if (item.skeletonPath && item.skeletonPath.template && fs.existsSync(item.skeletonPath.template)) {
|
||||
this.addEntry(item.skeletonPath.template, this.getTargetFilePath(item.name, `${this.options.fileType.skeletonMidExt}${this.options.fileType.templ}`), META_TYPE.NORMAL);
|
||||
if (item.skeletonPath.style) {
|
||||
resolveComponentStyleEntry(this.getTargetFilePath(item.name, this.options.fileType.skeletonMidExt), item.skeletonPath.style);
|
||||
resolveComponentStyleEntry(item.name, item.skeletonPath.style, `${this.options.fileType.skeletonMidExt}${this.options.fileType.style}`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @ice/rspack-config
|
||||
|
||||
## 1.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4130611d: fix: update splitChunk config
|
||||
|
||||
## 1.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/rspack-config",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"repository": "alibaba/ice",
|
||||
"bugs": "https://github.com/alibaba/ice/issues",
|
||||
"homepage": "https://v3.ice.work",
|
||||
|
|
|
@ -87,8 +87,9 @@ export const getVendorStrategy = (options: Configuration['splitChunks']) => {
|
|||
|
||||
const getSplitChunks = (_: string, strategy: string | boolean) => {
|
||||
if (strategy === false) {
|
||||
// Empty splitChunks configuration if strategy is false.
|
||||
return {};
|
||||
// Set minChunks to a large number to disable the splitChunks feature.
|
||||
// the value of Infinity is not work properly for this version of rspack.
|
||||
return { minChunks: 100000, cacheGroups: { default: false } };
|
||||
} else if (typeof strategy === 'string' && ['page-vendors', 'vendors'].includes(strategy)) {
|
||||
const splitChunksOptions = strategy === 'page-vendors' ? { chunks: 'all' } : {};
|
||||
return getVendorStrategy(splitChunksOptions);
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
# @ice/runtime
|
||||
|
||||
## 1.5.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 2e274966: feat: support hook of onBeforeHydrate
|
||||
- Updated dependencies [2e274966]
|
||||
- @ice/jsx-runtime@0.3.1
|
||||
|
||||
## 1.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/runtime",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "Runtime module for ice.js",
|
||||
"type": "module",
|
||||
"types": "./esm/index.d.ts",
|
||||
|
@ -54,7 +54,7 @@
|
|||
"./esm/polyfills/abortcontroller.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ice/jsx-runtime": "^0.3.0",
|
||||
"@ice/jsx-runtime": "^0.3.1",
|
||||
"@ice/shared": "^1.1.0",
|
||||
"@remix-run/router": "1.14.2",
|
||||
"abortcontroller-polyfill": "1.7.5",
|
||||
|
|
|
@ -120,6 +120,9 @@ export default async function runClientApp(options: RunClientAppOptions) {
|
|||
reportRecoverableError(error, errorInfo, { ignoreRuntimeWarning: revalidate });
|
||||
}),
|
||||
};
|
||||
if (appConfig?.app?.onBeforeHydrate) {
|
||||
appConfig?.app?.onBeforeHydrate();
|
||||
}
|
||||
return ReactDOM.hydrateRoot(container, element, hydrateOptions);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ type App = Partial<{
|
|||
strict: boolean;
|
||||
errorBoundary: boolean;
|
||||
onRecoverableError: (error: unknown, errorInfo: ErrorStack) => void;
|
||||
onBeforeHydrate: () => void;
|
||||
} & Record<AppLifecycle, VoidFunction>>;
|
||||
|
||||
export interface ErrorStack {
|
||||
|
|
|
@ -1813,6 +1813,9 @@ importers:
|
|||
|
||||
packages/jsx-runtime:
|
||||
dependencies:
|
||||
'@swc/helpers':
|
||||
specifier: ^0.5.13
|
||||
version: 0.5.13
|
||||
style-unit:
|
||||
specifier: ^3.0.4
|
||||
version: 3.0.5
|
||||
|
@ -1987,7 +1990,7 @@ importers:
|
|||
packages/plugin-i18n:
|
||||
dependencies:
|
||||
'@ice/jsx-runtime':
|
||||
specifier: ^0.3.0
|
||||
specifier: ^0.3.1
|
||||
version: link:../jsx-runtime
|
||||
'@swc/helpers':
|
||||
specifier: ^0.5.1
|
||||
|
@ -2154,10 +2157,10 @@ importers:
|
|||
version: 1.2.4
|
||||
devDependencies:
|
||||
'@ice/app':
|
||||
specifier: ^3.5.0
|
||||
specifier: ^3.5.1
|
||||
version: link:../ice
|
||||
'@ice/runtime':
|
||||
specifier: ^1.5.0
|
||||
specifier: ^1.5.1
|
||||
version: link:../runtime
|
||||
webpack:
|
||||
specifier: ^5.88.0
|
||||
|
@ -2398,7 +2401,7 @@ importers:
|
|||
packages/runtime:
|
||||
dependencies:
|
||||
'@ice/jsx-runtime':
|
||||
specifier: ^0.3.0
|
||||
specifier: ^0.3.1
|
||||
version: link:../jsx-runtime
|
||||
'@ice/shared':
|
||||
specifier: ^1.1.0
|
||||
|
@ -8575,6 +8578,12 @@ packages:
|
|||
dependencies:
|
||||
tslib: 2.5.0
|
||||
|
||||
/@swc/helpers@0.5.13:
|
||||
resolution: {integrity: sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==}
|
||||
dependencies:
|
||||
tslib: 2.5.0
|
||||
dev: false
|
||||
|
||||
/@swc/types@0.1.4:
|
||||
resolution: {integrity: sha512-z/G02d+59gyyUb7KYhKi9jOhicek6QD2oMaotUyG+lUkybpXoV49dY9bj7Ah5Q+y7knK2jU67UTX9FyfGzaxQg==}
|
||||
|
||||
|
|
Loading…
Reference in New Issue