Commit Graph

2126 Commits

Author SHA1 Message Date
ClarkXia 0fdaeae871 Merge branch 'release/next' into chore/beta 2023-04-25 11:11:35 +08:00
水澜 f56497f694
feat: async data loader (#6137)
* chore: refactor unfinished

* feat: support create router

* refactor: render mode

* fix: code splitting false

* feat: add location for icestark

* chore: remove console

* test: examples

* fix: dataloader is undefined

* fix: test

* fix: test case

* fix: test case

* fix: types

* fix: test case

* fix: lock

* feat: async data loader

* fix: update lock

* fix: hydration

* fix: router

* fix: router

* chore: log

* fix: hmr

* fix: test

* fix: test

* feat: await

* fix: await component

* fix: lint

* refactor: type

* fix: type

* fix: app data loader

* fix: test

* fix: test

* test: async data

* test: async data

* docs: async data loader

* fix: lint

* refactor: loader config

* fix: test

* fix: compat with old useage

---------

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-04-25 10:47:40 +08:00
ClarkXia 51620f75f3 chore: temp 2023-04-25 10:40:01 +08:00
ClarkXia fe5da61c8e fix: coerce beta version into semver 2023-04-25 10:15:21 +08:00
ClarkXia 8f97e538d6
chore: bump build-scripts version to unify esbuild version (#6179) 2023-04-24 14:27:07 +08:00
luhc228 1c3d3fec6c
feat: i18n plugin (#6149)
* feat: antd5 example with i18n

* feat: fusion example with i18n

* feat: init plugin-i18n

* feat: init i18n example

* chore: lock

* feat: add language selector

* feat: i18n route

* feat: getAllLocales and getDefaultLocale API

* fix: ssr render error

* feat: support auto redirect

* fix: redirect without url param

* feat: support add response handler

* chore: lock

* feat: support blockCookie option

* fix: route test

* fix: ssg error

* fix: i18n response

* feat: add server example

* chore: add basename

* chore: add headers

* feat: i18n docs

* fix: i18n plugin

* feat: enhance disable cookie

* docs: update disabledCookie documentation

* chore: update desc

* fix: param not defined

* fix: generate routes.ts

* fix: remove todo

* test: i18n

* test: i18n

* fix: lint warning

* fix: addDefineRoutesFunc to addRoutesDefinition

* chore: i18n plugin version

* chore: changelog

* feat: use modifyRenderData instead of runtimeOptions.raw

* chore: update changelog

* chore: rename param

* fix: comment

* feat: use createLogger instead of consola directly

* feat: change customRuntimeOptions type from string to object

* refactor: route id

* chore: remove unused console.log

* chore: add comment

* fix: win32 test fail

* chore: changelog
2023-04-24 10:18:53 +08:00
luhc228 3ede3c5a2a
feat: enable type=module to rax-compat (#6176)
* chore: add type module

* chore: changeset

* chore: add .js suffix
2023-04-23 19:00:48 -07:00
ClarkXia 467dc56b5a
fix: only create esbuild context when dev (#6181) 2023-04-23 17:44:31 +08:00
luhc228 13770d53e7
fix: compatible with runtime absolute path on win32 (#6172)
* fix: compatible-with-runtime-abso-path-on-win32

* chore: changelog

* fix: rootDir param is not passed
2023-04-23 14:53:47 +08:00
NK 71bd7926a2
feat: upgrade esbuild version to v0.17 (#6146)
* feat: upgrade esbuild version to v0.17

* chore: update lock file && add registry

* fix: lint warning
2023-04-20 16:31:33 +08:00
水澜 da7c733c53
fix: data loader format (#6168)
* fix: use iife format stands

* chore: add changeset
2023-04-18 18:10:42 +08:00
ClarkXia 5dd3c86ed7
Refactor: use swc plugin to remove code (#6144)
* refactor: use swc plugin to remove code

* chore: update version
2023-04-18 17:01:37 +08:00
染陌同学 ce94e05489
fix: fix frames error with multiple (#6154)
* fix: fix frames error with multiple

* chore: add changeset
2023-04-16 23:07:56 -07:00
染陌同学 b1e89bc73c
fix: PHA plugin can only run in web (#6155) 2023-04-16 21:06:23 -07:00
染陌同学 d4f943fb42
feat: support downgradeUrl (#6161) 2023-04-16 21:06:09 -07:00
ClarkXia 9de09ee8da
feat: support version check between @ice/app and @ice/runtime (#6151)
* feat: support version check between @ice/app and @ice/runtime

* fix: update lock
2023-04-14 11:04:53 +08:00
ClarkXia 4763bc7666
Refactor: router (#6123)
* chore: refactor unfinished

* feat: support create router

* refactor: render mode

* fix: code splitting false

* feat: add location for icestark

* chore: remove console

* test: examples

* fix: dataloader is undefined

* fix: test

* fix: test case

* fix: test case

* fix: types

* fix: test case

* fix: lock

* fix: update lock

* fix: hydration

* fix: router

* fix: router

* chore: log

* fix: hmr

* fix: test

* fix: test

* chore: optimize code

* Update singleRoute.test.tsx

* fix: types
2023-04-13 12:01:16 +08:00
ClarkXia 7b04ca7ed7
fix: remove all exports of routes when render mode is csr (#6140) 2023-04-11 12:00:48 +08:00
ClarkXia 48c40ea04e
chore: update versions (#6128) 2023-03-31 11:14:01 +08:00
ClarkXia deda06de7a
fix: revert the upgrade of @swc/core (#6127) 2023-03-31 10:55:07 +08:00
ClarkXia be9816f996
chore: update versions (#6089)
* chore: update versions

* Update CHANGELOG.md

* Update CHANGELOG.md
2023-03-30 13:22:49 +08:00
水澜 4e1d906560
fix: resue route paths (#6074)
* refactor: resue route paths

* chore: add changeset

* fix: type

* refactor: don't pass data cache

* fix: lint

* fix: should include layout file
2023-03-29 19:34:06 -07:00
染陌同学 83af2887c8
Feat/support pullfresh (#6121)
* feat: support page of pullrefresh

* feat: support pull refresh

* chore: add changeset and test
2023-03-29 19:05:58 -07:00
luhc228 97f8a80142
feat: disable compress config in dev server for streaming render (#6116)
* feat: disable compress config in dev-server

* chore: changeset
2023-03-28 17:02:50 +08:00
ClarkXia 42d185390a
fix: micro app render in qiankun (#6106)
* fix: micro app render in qiankun

* fix: compatible with qiankun
2023-03-27 10:06:54 +08:00
ClarkXia 764ef0b612
fix: get route assets by route manifest (#6083) 2023-03-23 14:42:16 +08:00
ClarkXia 085498aa8a
feat: support plugin API of excuteServerEntry (#6097)
* feat: support plugin API of excuteServerEntry

* fix: build error

* chore: optimize code

* fix: remove cache for excute server entry
2023-03-22 17:53:24 +08:00
ClarkXia ee4141d5c3
chore: update dependencies (#6026)
* chore: update dependencies

* chore: remove empty line

* chore: update swc version

* Revert "chore: update swc version"

This reverts commit 47c62bbe56.

* fix: update lock

* chore: update lock

* fix: bump @swc/core and swc plugins version

* chore: update changelog

* chore: update changelog

* fix: update lock
2023-03-21 17:00:31 +08:00
ZeroLing baacf8d0e9
chore: env compatible with default export (#6095) 2023-03-21 01:01:55 -07:00
染陌同学 2debc7f700
Fix/rax compat appear (#6076)
* fix: appear should not work on component

* test: add test for appear of component

* feat: modify Dom to DOM

* test: remove consol

* chore: modify major to minor
2023-03-20 14:08:06 +08:00
染陌同学 f519338c0a
Fix/parse template undefined (#6082)
* fix: parse template should return emply string when can't find

* chore: add changeset
2023-03-20 11:02:21 +08:00
ClarkXia 2f50802691
chore: update versions (#6080) 2023-03-20 10:34:36 +08:00
ClarkXia 1ef827b173
fix: external node builtin modules (#6088)
* fix: external node builtin modules

* fix: external node builtin modules
2023-03-20 09:58:34 +08:00
ClarkXia 4a73cb2ad2
fix: redirect named import (#6061)
* fix: redirect named import

* fix: test case

* fix: redirect request

* test: redirect request

* chore: add changeset

* feat: support get exports by target

* fix: type

---------

Co-authored-by: shuilan.cj <shuilan.cj@taobao.com>
2023-03-17 17:29:55 +08:00
染陌同学 4671cbe7f3
fix: static resources should not render (#6070) 2023-03-16 19:39:23 -07:00
ClarkXia 4e3849b9d6
chore: bump version for rax-compat (#6068) 2023-03-16 15:00:28 +08:00
ClarkXia b119e346e7
chore: update versions (#6005)
* chore: update versions

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2023-03-16 13:29:42 +08:00
luhc228 d3f3e6849e
feat: use latest @iceworks/generate-project to generate scaffold (#6025)
* feat: use latest @iceworks/generate-project package

* feat: upgrade @iceworks/generate-project version

* feat: use latest @iceworks/generate-project

* chore: add changeset
2023-03-15 17:56:25 +08:00
ClarkXia 0fb80639cc
fix: improve performance by using async function (#6053)
* fix: improve performance by using async function

* Update ServerRunner.ts

* Update analyze.ts
2023-03-15 17:47:36 +08:00
ClarkXia 5486810915
fix: add leading slash for basename (#6058)
* fix: add leading slash for basename

* chore: changelog

* chore: changelog

* fix: test case

* fix: optimize code
2023-03-15 17:47:25 +08:00
ClarkXia dec56a3306
fix: avoid remount when app mount in other micro app framework (#6036)
* fix: avoid remount when app mount in other micro app framework

* chore: changelog
2023-03-15 15:49:53 +08:00
染陌同学 2f4e64b26f
Fix/data loader err await (#6056)
* fix: getData should not block a reject state request

* chore: add changeset

* chore: modify message of error
2023-03-15 12:08:11 +08:00
水澜 754e28b452
fix: data loader error (#6039)
* fix: should not transform module config with false

* fix: should break build if data loader has error

* chore: add changelog
2023-03-14 16:40:47 +08:00
水澜 dbff4d0b9d
fix: data loader error during navigate (#6044)
* fix: should reload data after navigate

* fix: lint

* chore: add changelog
2023-03-14 11:43:30 +08:00
ClarkXia 6c8d2e467d
fix: set platform node for compile project config (#6041)
* fix: set platform node for compile project config

* fix: name conflict error
2023-03-13 18:26:28 +08:00
ClarkXia 021ceb91c0
fix: remove resolve field of jsnext:main (#6045)
* fix: context replacement for moment

* fix: regex rule

* fix: changelog

* fix: optimize webpack config

* fix: optimize webpack config

* fix: optimize code
2023-03-13 17:44:21 +08:00
ClarkXia 0096f5c01e
fix: make sure server env variable is always false (#6002) 2023-03-10 10:01:13 +08:00
水澜 0c61f469af
fix: pha with data loader (#6029)
* fix: prevent data loader side effect code to breack pha

* chore: add changeset

* fix: campat build manifest

* fix: changelog

* fix: replace envs

* fix: build options

* fix: changelog

* fix: type
2023-03-09 03:53:28 -08:00
ZeroLing 8cfdfd96c3
fix: useState parameter initialState can be function, which should be… (#6033)
* fix: useState parameter initialState can be function, which should be self executed when initilzing

* test: useState can be function

---------

Co-authored-by: answershuto <answershuto@gmail.com>
2023-03-09 03:52:43 -08:00
染陌同学 e096c671b7
fix: declarationType of dataLoaderImport should be normal (#6035)
* fix: declarationType of dataLoaderImport should be normal

* chore: add changeset
2023-03-09 01:44:32 -08:00