水澜
7d7296975c
fix: stream render ( #5956 )
...
* fix: resolve after render
* fix: basename without /
* fix: request path
* fix: error order
* feat: support pass manifest
* feat: exports analyze
* chore: update lock
* fix: should keep state when rerender
* feat: request ctx for suspense
* fix: type
* feat: support pass server data
* revert: version
* chore: add changeset
* fix: lint
* fix: type
* chore: add comments
* chore: add comments
* chore: print error separately
* refactor: support runtime public path
* revert: export assets manifest
2023-03-01 18:02:39 +08:00
ClarkXia
56fb406e8a
fix: import path of types and runtime ( #5981 )
...
* fix: import path of types and runtime
* chore: package.json
* chore: add changelog
* fix: typings
* fix: type declare
2023-02-28 15:08:10 +08:00
ClarkXia
b8e974393f
feat: support routes config ( #5968 )
...
* feat: support routes config
* fix: compatible with win32
* feat: add test case
* fix: optimize code
* fix: compatible with path
* Update routes.ts
* Update routes.ts
2023-02-28 10:00:43 +08:00
ClarkXia
071a627dac
feat: support code spiliting strategy ( #5957 )
...
* feat: support code spiliting strategy
* fix: optimize code
* fix: compatible with splitChunks
* fix: compatible with splitChunks
* chore: default value chunks
* Update config.md
* Update routes.ts
2023-02-24 17:22:18 +08:00
ClarkXia
1b6c57832a
feat: on-demand compilation for server ( #5824 )
...
* feat: node runner
* feat: node transform
* fix: unexpected modification
* fix: node runner
* test: test case
* test: test case
* test: test case
* fix: add dependencies
* fix: optimize code
* feat: server runner
* feat: optimize code
* fix: test case
* fix: test case
* feat: support on demand pre bundle
* chore: lint warning
* fix: optimize code
* fix: compile options
* fix: optimize code
* fix: add file
* fix: optimize code
* fix: test case
* fix: optimize code
* fix: test
* fix: compile target
* fix: optimize code
* fix: lint
* fix: optimize code
2023-02-22 12:17:31 +08:00
ClarkXia
c893a64a1c
chore: changeset config ( #5909 )
...
* chore: reset version
* fix: changeset
* chore: publish beta
* chore: update pre
* chore: custom version
* chore: remove test
* fix: version
* chore: test case
* chore: version
* fix: reset changelog
* fix: update lock
* fix: changelog
* chore: release beta version
* chore: add changeset
* chore: release beta version
* chore: update @ice/app version
* chore: update version and lock
---------
Co-authored-by: luhc228 <luhengchang228@126.com>
2023-02-16 16:11:49 +08:00
ClarkXia
537d154899
fix: optimize webpack config ( #5891 )
...
* fix: optimize webpack config
* chore: version
* fix: lock file
2023-02-13 14:58:06 +08:00
luhc228
db495382b2
feat: use changeset to publish and version ( #5864 )
...
* feat: add changesets config
* chore: remove version publish scripts
* chore: update ci workflow
* chore: update checkout branch step
* chore: lock
* fix: lost scripts
* fix: ts type error
* chore: remove scripts
* chore: update README
* chore: update lock
* chore: update dependency and script
* chore: remove version check
* chore: add publishConfig to package.json
* chore: update ci step
* chore: update release:beta script
* chore: add private field to examples
* chore: remove registry
* chore: update lock
* chore: update ci workflow
* chore: update workflow
* chore: update README
* chore: update changeset README
* chore: update cache key
* feat: update cache
* chore: update cache config
2023-02-13 14:48:34 +08:00
ZeroLing
7c07f1654a
fix: data-loader using serverCompiler with renderer client ( #5856 )
...
* fix: data-loader using serverCompiler with renderer client
* fix: renderer
2023-02-02 20:07:49 +08:00
水澜
412311a750
fix: esbuild target ( #5857 )
...
* fix: filter browser for esbuild
* fix: esbuild target
2023-02-02 19:54:15 +08:00
水澜
d2f0b7e5c7
feat: suspense ssr ( #5584 )
...
* feat: suspense ssr demo
* chore: rename global variable
* chore: update lock
* feat: suspense demo
* chore: delete dead code
* refactor: rename to data context
* fix: error triggered in steam, should not downgrade
* feat: suspense ssr
* fix: should async script when suspense
* feat: support suspense for common components
* feat: support suspense for common components
* fix: style type lint
* fix: typings
* feat: remove server data loader for suspense component
* feat: disable dataLoader for suspense
* chore: add style
* chore: add changelog
* chore: add changelog
* chore: add comments
* refactor: check suspense data
* fix: type
* test: suspnese
* fix: compat with ssg
* feat: fallback for suspense
* feat: suspense fallback
* refactor: pass id as props
* refactor: pass fallback as element
* fix: type
* docs: suspense
* docs: suspense
* refactor: support suspense in components
* fix: changelog
* fix: lint
* fix: should not replace env to string
* chore: add changelog
* chore: remove dead code
* revert: dataloader for ssr
* fix: lint
* refactor: rename
* docs: hide suspense ssr
* refactor: remove internal error boundary
* refactor: merge if condition
* fix: type
* refactor: suspense api
---------
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-02-02 16:00:04 +08:00
ZeroLing
acfc88427e
fix: dynamic import works in app.tsx ( #5840 )
...
* fix: dynamic import works in app.tsx
* fix: test case
* chore: update depenedency version of @ice/webpack-config
* chore: pnpm lock up-to-date
2023-02-02 14:22:35 +08:00
ClarkXia
234e6cb170
feat: support lifecycle of bootstrap ( #5825 )
2023-02-01 16:08:51 +08:00
ZeroLing
0817129fd3
Fix/rax-compat jsx runtime ( #5803 )
...
* fix: jsx runtime for rax-compat
* fix: optional children
* fix: array key validation
* fix: eslint check
* fix: add default commandArgs target
* fix: createElement children args
* docs: add changelog and bump version
2023-01-12 12:04:06 +08:00
ClarkXia
66cd9df104
feat: enhance memory router ( #5800 )
...
* feat: enhance memory router
* fix: optimize code
* fix: error syntax
* fix: remove unused statement
2023-01-11 17:36:28 +08:00
ClarkXia
7b686f4f82
fix: default value of ssr ( #5805 )
...
* fix: default value of ssr
* fix: test case
Co-authored-by: ZeroLing <i@zeroling.com>
2023-01-10 22:47:24 +08:00
ZeroLing
f46d0e7204
feat: support target and renderer ( #5700 )
...
* feat: support target and renderMode
* fix: test case and renderer
* Update build.ts
* refactor: constant
* fix: eslint
* fix: remove empty line
* fix: remove useless code
* feat: add import.meta.env
* fix: type webpack
* fix: server compiler defines
2023-01-06 15:07:39 +08:00
长喆
fc408b9235
Fix(plugin-pha): getRouteIdByPage ( #5753 )
...
* feat: map route page to page id
* feat: map route page to page id
* feat: finish examples
* fix: route key
* feat: add layout to dataloader
* Update manifestHelpers.ts
* feat: name staticDataLoaders
2023-01-03 22:58:14 -08:00
水澜
f62ec86c50
fix: rerender ssg after hydrate ( #5755 )
...
* feat: update ssg data after hydrate
* v1.0.4
* test: ssg
* test: ssg
* chore: changelog
* revert: no optional
* fix: update app context
* refactor: call data loader in useEffect
2022-12-27 14:33:03 +08:00
ClarkXia
8b98d8a8cc
refactor: server bundle alias ( #5736 )
...
* fix: refactor server bundle alias
* chore: update lock
* fix: test case
* fix: test case
* chore: changelog
* fix: optimize code
* fix: compatible with win32
* fix: compatible with win32
* fix: compatible with win32
* fix: optimize code
Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-27 10:58:18 +08:00
ClarkXia
05aeb94f6b
feat: plugin for icestark ( #5695 )
...
* feat: plugin icestark arch
* feat: icestark child app
* chore: update type
* fix: icestark child
* feat: icestark layout
* feat: icestark framework
* feat: test case for icestark
* chore: changelog
* fix: optimize code
* fix: optimize code
2022-12-15 14:35:07 +08:00
ClarkXia
497b1f333f
fix: config polyfill of usage ( #5663 )
...
* fix: config polyfill of usage
* test: add test case
* fix: compatible with win32
* test: test case
2022-12-08 10:21:01 +08:00
ClarkXia
6e28b672a1
fix: load env before resolve user config ( #5665 )
...
* fix: load env before resolve user config
* chore: changelog
* chore: add env file
* Delete ice.config.mts.mjs
Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-08 10:11:43 +08:00
ClarkXia
46ddc52428
fix: format core-js path ( #5648 )
...
* fix: format core-js path
* chore: test
* chore: update version
* fix: remove path import
2022-12-06 14:31:35 +08:00
ClarkXia
6bcc955876
fix: file resolve when use css module in server compiling ( #5632 )
...
* fix: file resolve of css module in server compiling
* test: add test case
2022-11-29 10:45:19 +08:00
水澜
71bce7719c
fix: app data loader ( #5569 )
...
* fix: call data loader by data-loader.js in csr
* chore: add comment
2022-11-17 11:45:45 +08:00
luhc228
c7ff8e3fff
fix: render empty html content in prod ( #5560 )
...
* fix: render empty html content in prod
* feat: basename example
* fix: ci
2022-11-16 18:00:48 +08:00
luhc228
ee8963886b
feat: modify store to storeConfig ( #688 )
2022-11-15 19:04:24 +08:00
luhc228
2000774dfa
chore: add AppData type ( #692 )
2022-11-15 19:04:00 +08:00
NK
8a60304b0b
Fix/miniapp problems ( #671 )
...
* fix(miniapp): page load after getAppData
* docs(miniapp): update miniapp-runtime readme
* feat(miniapp): support turn off rpx2vw using enableRpx2Vw
* chore(miniapp): update example
* fix(miniapp): outputDir is wrong in command line
* fix(miniapp): no log in build command
* fix(miniapp): history type
* chore(miniapp): update example
* feat(miniapp): support enableCache to disable cache in miniapp task
* fix(miniapp): throw error if no getConfig function in page component
* feat(miniapp): add params to specify getData and getConfig
* fix(miniapp): getData/getAppData existence situation
* feat(miniapp): normalize route in history
* fix: lint warning
* feat(miniapp): align Link to props and history.push props
* docs(miniapp): add more articles
* feat(miniapp): support nativeConfig in plugin-miniapp
* feat(miniapp): rename getConfig to pageConfig
* feat(miniapp): rename getData to dataLoader
* fix: lint warning
* docs: fix broken links
* docs(miniapp): update miniapp location and relative links
* Update start.md
Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 16:31:24 +08:00
水澜
6ce0835d9b
refactor: app data loader ( #689 )
...
* refactor: getAppData to dataLoader
* refactor: merge data loader logic in one file
* fix: comments
2022-11-15 16:31:09 +08:00
染陌同学
36475937e8
Feat/define data loader ( #643 )
...
* feat: modify dataLoader
* feat: add type
* feat: add DataLoaderConfig
* feat: modify getData to defineDataLoader
* chore: remove defineDataLoader
* fix: fetcher shoule return promise
* fix: loader may be undefined
* fix: err loader config
* chore: modify example of pha
* feat: modify getData
* chore: modify type and mofiy options of init
* feat: modify fetcher to dataLoaderFetcher and add dataLoaderImport to entry
* chore: modify defaultDataLoaderFetcher
* chore: load data by route id
* feat: modify serverDataLoader and staticDataLoader
* feat: add fetcher when route change
* fix: deal with window undefined
* chore: modify type
* feat: try get data from cache
* feat: support useData
* feat: add defineStaticDataLoader and defineServerDataLoader
* chore: modify getData of example
* fix: should load data
* fix: fix ssg err
* fix: fix dataloader for ssg
* test: modify env of test
* fix: shoule clear cache when route changed
* fix: fix renderMode and add defult remder mode
* fix: add window
* test: add jsdom
* test: modify getData to dataLoader
* test: modify test of clientApp
* test: clear window after each test
* test: remove only
* test: remove only
* chore: modify appear
* fix: Try get data from cache when CSR
* chore: update lock
* chore: remove unused
* refactor: data loader (#685 )
* refactor: set global fetcher
* refactor: set global fetcher
* fix: should not build react in data loader
* fix: test
* test: modify test
Co-authored-by: 水澜 <shuilan.cj@taobao.com>
Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 10:33:11 +08:00
ClarkXia
f9a3829e63
fix: rename getConfig as pageConfig ( #684 )
...
* fix: rename getConfig as pageConfig
* chore: optimize code
* fix: type
* fix: optimzie code
2022-11-15 10:33:11 +08:00
ZeroLing
d2c7e0696d
chore: optimize ( #676 )
...
* chore: optimize with rax-compat docs
* refactor: add mock express types dependency
* refactor: change usage for definePageConfig
* chore: change docs
* docs: ICE to ice.js
* fix: templorary remove the type
* chore: handle with lint problems
* fix: lock file
2022-11-15 10:33:11 +08:00
ZeroLing
2d0a38ba9e
Docs/add request ( #670 )
...
* chore: close announcement
* docs: add doc for request
* docs: rename title for request
* docs: add.tsx
* docs: request doc
* refactor: change request to requestConfig
* chore: change usage and documentation
* docs: optimize doc
* docs: update
2022-11-15 10:33:11 +08:00
水澜
413c6edfb5
docs: nested routes ( #679 )
...
* docs: nested routes
* docs: add example
* chore: update lock
* docs: custom route path
* fix: use max width
* fix: add file path
* revert: to width
* fix: duplicate text
* fix: description
* fix: rename
* fix: file path
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:33:11 +08:00
水澜
80e6c059a4
docs: data loader ( #667 )
...
* refactor: data loader docs
* refactor: request.md
* refactor: img
* fix: incoherent sentence
* refactor: request to data loader
* refactor: app data loader docs
* chore: demo for data loader
* docs: multi data loader
* docs: data loader
* fix: remove dead code
* fix: video
* fix: video
* fix: height
* chore: update lock
* fix: use gif replace video
* fix: img width
* fix: link
* feat: add demo
* refactor: demo path
* fix: description
* docs: add return value type
* refactor: flow chart
* fix: link
* fix: flow chart
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:33:11 +08:00
ZeroLing
c1b773e74a
Docs/jsx plus ( #672 )
...
* chore: rename with-plugin-request to with-request
* docs: add jsx plus documentation
2022-11-15 10:33:11 +08:00
ClarkXia
f0e3d570e2
feat: support query loader of raw and url ( #674 )
2022-11-15 10:33:11 +08:00
ClarkXia
6c34133040
fix: add process support for undefined env variables ( #668 )
2022-11-15 10:33:11 +08:00
luhc228
af24b565a1
feat: support postcss user config ( #626 )
...
* feat: support postcss in userConfig
* feat: support postcss.config.js
* docs: optimize config
* docs: postcss
* feat: add tailwindcss example
* chore: export postcss
* docs: update postcss
* docs: update browsers desc
2022-11-15 10:33:11 +08:00
luhc228
e88c291ad1
fix: useAuth error ( #661 )
...
* chore: example
* chore: with-auth example
* docs: update auth
* test: add with-auth test
* chore: format
* fix: lock
2022-11-15 10:33:11 +08:00
NK
5ec2523e01
feat(miniapp): add miniapp html styles package ( #555 )
2022-11-15 10:33:11 +08:00
水澜
3a672c387e
fix: request in data loader ( #662 )
...
* fix: support request in data loader
* fix: type
* fix: type
* fix: ts error
* fix: type
* feat: support config exports in plugin
* fix: filter static modules
* refactor: rename
2022-11-15 10:33:11 +08:00
luhc228
1b38b5eb43
refactor: app provider ( #644 )
...
* refactor: app Provider
* feat: add example
* fix: example warning
* fix: AppProvider to AppRuntimeProvider
* feat: miniapp AppRuntimeProvider
* fix: miniapp provider order
* chore: remove type
2022-11-15 10:33:11 +08:00
luhc228
d9ff53302b
fix: plugin-store will transform image ( #639 )
...
* fix: plugin-store will transform image
* feat: use regexp to filter module id
2022-11-15 10:33:10 +08:00
luhc228
1c8815fdad
feat: web-worker example ( #627 )
...
* docs: refactor assets
* feat: web-worker example
2022-11-15 10:33:08 +08:00
ClarkXia
3c5866e533
feat: support static runtime ( #609 )
...
* feat: support static runtime
* fix: optimize code
* fix: optimize code
* fix: update app data
* fix: optimize code and add test case
2022-11-15 10:32:49 +08:00
ClarkXia
5b61d8acbd
feat: support route config type ( #595 )
...
* feat: support route config type
* fix: type
* fix: optimize code
2022-11-15 10:32:49 +08:00
luhc228
2e57000afc
feat: keep-alive ( #556 )
...
* feat: init keep-alive plugin
* chore: update lock
* feat: add api
* chore: remove plugin
* chore: not modify code
* fix: lock
* feat: support keep-alive
* chore: lock
* chore: update component name
* chore: add ref
* chore: import name
* docs: keep-alive
* chore: line break
* chore: remove unstable prefix
2022-11-15 10:32:49 +08:00