Commit Graph

183 Commits

Author SHA1 Message Date
dependabot[bot] 9cb3a3f56f
chore(deps): bump micromatch from 4.0.5 to 4.0.8 (#6982)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-06 10:36:29 +08:00
ClarkXia fbeaf932cb
chore: update versions (#6509) 2023-09-14 10:58:37 +08:00
luhc228 b8b1d5e41f
fix: source map url in prod files but the sourceMap files not published (#6511)
* fix: source map url in prod files

* chore: changeset
2023-09-06 10:09:59 +08:00
ClarkXia 542d86c75a
chore: update versions (#6250)
* chore: update versions

* Update CHANGELOG.md
2023-05-23 16:04:53 +08:00
ClarkXia 68a95ab8c6
chore: update versions (#6147) 2023-05-16 16:06:21 +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
github-actions[bot] e3ca513f56
chore: update versions (#5949)
* chore: update versions

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-03-02 13:55:59 +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
luhc228 8eee4f0dc9
fix: prebundle esm module error (#5935)
* fix: prebundle esm module error

* fix: test case error

* chore: changeset

* chore: release beta version

* chore: remove unused code and deps

* chore: update comment

* chore: remove debugger

* chore: changeset

* chore: release beta version
2023-02-20 10:22:46 +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
ClarkXia 68a7d2056c
chore: bump verison of plugin-store (#5868) 2023-02-07 10:13:23 +08:00
ClarkXia bbabb0ebd5
chore: tag version (#5760)
* chore: tag version

* chore: lock
2022-12-27 17:07:56 +08:00
ZeroLing 31eb662648
chore: update repo and changelog (#5618)
* chore: add changelog and docs update

* docs: update docs repo

* Update CHANGELOG.md
2022-11-24 19:11:13 +08:00
ClarkXia 7b1cb86299 refactor: type dependencies (#638)
* refactor: types dependencies

* chore: types

* fix: tsconfig

* chore: optimize code

* fix: conflict
2022-11-15 10:33:00 +08:00
luhc228 9208dae707 refactor: import app store (#596)
* fix: throw error when no app store

* fix: ts type

* refactor: import app store

* refactor: change extraContext to runtimeOptions

* feat: call render in plugin

* refactor: optimize code

* chore: remove log
2022-11-15 10:32:49 +08:00
luhc228 3f54369bff feat: store initialStates (#435)
* feat: store initialStates

* chore: update README

* chore: add file comment

* chore: rename type

* fix: peer dependencies

* fix: defineStoreConfig not found

* feat: support get the appData

* fix: test case

* fix: lock
2022-11-15 10:32:48 +08:00
luhc228 bcbf6b5804 feat: support runtime relative path (#537)
* feat: support runtime relative path

* chore: line break

* fix: not compatible with relative path

* feat: support absolute path

* docs: update plugin-dev

* docs: optimize config

* refactor: runtime staticRuntime and name

* fix: type

* chore: remove file path exists check
2022-11-15 10:32:43 +08:00
luhc228 c273035c2f fix: can not read store api from ice (#476) 2022-11-15 10:27:18 +08:00
luhc228 2ca66f5857 feat: store plugin (#431)
* feat: app store

* chore: store example

* chore: lock

* feat: init page store

* feat: update page store

* fix: disable reset page state

* feat: createModel

* test: with-store test

* fix: comment

* chore: lock
2022-11-15 10:23:01 +08:00
ClarkXia dae88cd271 fix: remove useless folder 2022-11-14 17:38:17 +08:00
luhc228 0f8b11f400 chore: temp 2022-11-14 17:37:37 +08:00
ClarkXia ac910ed2dc refactor: remove 2.x code 2022-11-14 17:17:45 +08:00
dependabot[bot] 2368a5b273
chore(deps): bump loader-utils from 2.0.2 to 2.0.3 (#5529)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 16:04:03 +08:00
luhc228 01e8390fb2
feat: createModel API (#5443)
* feat: createModel API

* chore: plugin-store version
2022-08-09 12:12:46 +08:00
ClarkXia 4f833cfe86
chore: version and changelog (#5133)
* chore: changelog

* fix: dts generation

* chore: update lock

* chore: version
2022-01-17 13:57:08 +08:00
Hengchang Lu 61b767a944
fix: plugin-store use the incorrect alias (#5113)
* fix: get alias from userConfig object directly

* fix: can't get correct alias

* fix: layout nested store not work

* fix: mpa store

* chore: version

* chore: remove default alias value
2022-01-12 16:48:26 +08:00
ClarkXia 61a3e037ef
chore: update dependencies version (#4986) 2021-12-02 11:38:58 +08:00
ClarkXia 0d2ba65249
chore: version (#4927) 2021-11-18 15:06:31 +08:00
ClarkXia ba90e005c2
fix: redirect import from ice in mode vite (#4919) 2021-11-17 17:09:35 +08:00
luhc228 0e2fb6d76f feat: support redirect other API in store 2021-11-10 20:15:39 +08:00
luhc228 857778e01a fix: store error in vite HMR 2021-11-10 16:37:26 +08:00
ClarkXia dcf5351145
chore: version (#4812)
* chore: version

* chore: version
2021-10-28 11:44:55 +08:00
Hengchang Lu 40ef97ff66
Fix: nested routes not render in vite (#4787)
* feat: fix: nested router not render in vite

* feat: optimize regexp

* chore: version and changelog
2021-10-26 11:10:51 +08:00
ClarkXia 36ae85073d
chore: version and changelog (#4775)
* chore: version and changelog

* chore: version

* chore: rename package

* chore: lock verison of plugin-pwa

* chore: version of webpack-dev-mock

* chore: version
2021-10-21 12:23:19 +08:00
Hengchang Lu 2161a08244
Fix: can run project normally when first use store (#4708)
* fix: not restart after init store

* feat: add cache id

* fix: ci error

* chore: add webpack cache type

* chore: remove onHooks

* chore: add onHook

* feat: update webpack cache version

* chore: lock

* chore: temp remove webpack cache

* chore: sync run jest

* chore: add ignore pattern

* chore: add more ignore test case

* chore: remove ignore pattern

* chore: remove ignore pattern

* chore: add basic-spa test case

* chore: add mpa test

* fix: comment

* chore: add log heap usage

* chore: remove expose-gc

* chore: ignore basic-store test

* chore: update webpack config cache version

* chore: update  cache config

* chore: update cache id

* chore: ignore spa example

* chore: not use merge cache

* chore: remove cache

* feat: disable swc

* chore: remove store test case

* chore: disable cache

* chore: upgrade puppeteer version

* fix: yarn-lock

* chore: update cache version

* feat: add cache merge condition

* chore: remove unnecessary code

* chore: version and changelog

* chore: version and changelog

* chore: upgrade app-core version in icejs package

* feat: use hash format webpack cache id

* feat: add jsx-runtime option to webpack cache id

* chore: lint

* fix: jest test

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-10-20 14:55:16 +08:00
ClarkXia e1b2a9c114 chore: version 2021-09-26 14:41:41 +08:00
Hengchang Lu d25641d4c0
fix: display warning message but the page has no store (#4693) 2021-09-26 11:58:48 +08:00
Hengchang Lu d5a051601f
feat: add immer usage example (#4633) 2021-09-16 11:37:13 +08:00
ClarkXia d639c67863
feat: vite mode of icejs (#4481)
* feat: upgrade build-scripts

* chore: bump build-scripts version

* feat: add vite-service and example

* feat: property priority & build command

* fix: bump version

* feat: build dist html entry

* fix: build service

* fix: registry of setup

* fix: dependencies

* feat: add basic option tranformer (#4488)

* feat: add basic option tranformer

* fix: change get webpack plugin option to get args

* fix: chain new plugin

* fix: devServer.watchOptions -> devServer.watchOptions.static.watch

* fix: clear logs

* chore: version

* fix: fs api

* fix: hooks

* chore: tag version

* 🎉 Feat: runtime and runApp (#4498)

* fix: friendly-type-imports

* fix: inline require & ice develop deps optimize

* fix: runtime module load error

* fix: same React instance

* fix: vite build service

* fix: clear unused deps

* fix: revert add isKraken env in create-app-share

* fix: webpack dev sever ts error

* fix: friendlyTypeImports tranfrom other files (such as html and css)

* fix: change hook sequence

* fix: change extra config to vite config

* fix: ts and tsx file ext and add some comment

* fix: 'count' is already declared in the upper scope in example

* fix: runtime lazy import

* fix: global is not defined

* fix: avoid defined global in ssr

* fix: window is not defined

* fix: cannot access 'createStore' before initialization

* fix: optimize code

* fix: remove renderInServer async/await

* feat: add vite plugins for babel transform (#4500)

* feat: add vite plugins for babel transform

* fix: resolve id

* chore: bump verison

* fix: vite plugins

* fix: support mpa store

* fix: remove log

Co-authored-by: Fuzzy Fade <1339184537@qq.com>
2021-07-28 17:15:48 +08:00
Hengchang Lu 6ec8ebe0fa
feat: enhance debug package (#4505)
* feat: enhance debug package

* fix: build error
2021-07-28 16:47:11 +08:00
ClarkXia 40a4d84f78
chore: tag next version and changelog (#4447)
* chore: tag next version and changelog

* chore: versions

* chore: version

* chore: fix version

* chore: remove deprecate package

* chore: remove useless dependencies

* chore: fix demo

* chore: version

* chore: bump version

* chore: add dependencies
2021-07-12 19:48:09 +08:00
Hengchang Lu 51af9c37d3
feat: upgrade @ice/store (#4451)
* refactor: plugin-store

* chore: version

* fix: not use PROJECT_TYPE

* chore: update example

* fix: ci

* chore: update example

* fix: ci

* chore: version and changelog

* chore: version

* fix: store dir

* feat: support reset page state

* chore: version

* fix: remove getPageModelPath

* fix: tempPath
2021-07-12 16:32:55 +08:00
ClarkXia d562586c3f
chore: add repository (#4220)
* chore: add repository

* chore: update package.json of plugin-fusion (#4218)

add repo

* chore: fix repository type

Co-authored-by: 游鹿 <njuzhaoguoyan@foxmail.com>
2021-04-20 15:30:21 +08:00
Hengchang Lu dcc2d34fea
Chore: bump version (#4232) 2021-04-15 15:21:44 +08:00
ClarkXia fb06b2fd7c
chore: version (#4206)
* chore: version

* chore: update lock file

* chore: version
2021-04-08 16:11:27 +08:00
Hengchang Lu 7f748fb3e9
Feat: support page store state reset (#4167)
* feat: support page store state reset

* chore: update example name

* chore: add example case

* feat: add resetPageInitialStates param

* fix: test

* fix: store test

* chore: example

* fix: restPageState

* fix: name

* fix: comment

* fix: deps

* chore: changelog

* chore: changelog

* chore: store.ts change changelog
2021-04-08 12:08:44 +08:00
ClarkXia 57ac1f7297
chore: verison and changelog (#4148)
* chore: verison and changelog

* chore: bump version

* chore: verison

* chore: plugin-antd version
2021-03-10 18:07:39 +08:00
ClarkXia cc2db2090f
refactor: generate runtime module (#4132)
* refactor: generate runtime module

* fix: npm files

* feat: debug runtime as default

* fix: remove moduleName

* fix: ts lint of runtime

* fix: ts error
2021-03-09 18:12:30 +08:00
ClarkXia 1d9923403f
chore: changelog and version (#4094)
* chore: version

* chore: update version

* chore: version

* chore: changelog
2021-02-24 13:59:33 +08:00
Hengchang Lu 0d156d2e98
Hotfix: store provider in ssr lazy (#4064) 2021-01-28 14:37:16 +08:00