Commit Graph

53 Commits

Author SHA1 Message Date
ClarkXia 44e4665f87
chore: update versions (#7063)
* chore: update versions

* Update CHANGELOG.md

* Update package.json

* Update CHANGELOG.md
2025-03-13 16:07:39 +08:00
ClarkXia 2616c68325
chore: update versions (#6906) 2024-06-26 10:28:56 +08:00
luhc228 9926faae88
feat: add es2021 target (#6899)
* feat: add es2021 target

* chore:  add lint ignore

* fix: not define main field in exports field

* chore: changeset
2024-06-05 10:24:10 +08:00
ClarkXia 8ebd64e04e
chore: update versions (#6884) 2024-05-30 10:08:41 +08:00
ClarkXia 277518dd7f
chore: update versions (#6826) 2024-03-20 16:20:41 +08:00
Linbudu 886c4de8af
fix(rax-compat): fix createElement (#6814) 2024-03-11 11:18:44 +08:00
ClarkXia 38f7aa08c7
chore: update versions (#6740) 2024-01-18 14:44:38 +08:00
ClarkXia 951ca6c5fa
chore: update versions (#6655) 2023-11-30 14:04:04 +08:00
ClarkXia fbeaf932cb
chore: update versions (#6509) 2023-09-14 10:58:37 +08:00
ClarkXia 66689409eb Merge branch 'master' into release/next 2023-09-13 15:35:09 +08:00
ClarkXia 97cecb7951
chore: update versions (#6526) 2023-09-13 15:09:34 +08:00
ZeroLing b70bba1efd
Refactor/rax compat (#6493)
* refactor: rax compat

1. update @swc/helpers version to latest.
2. relplace create react class with simple impl.

* test: add specs for createReactClass

* chore: rename to createReactClass
2023-09-11 10:53:58 +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 1dbcfa51a6
chore: bump version of dependencies (#6472)
* chore: bump version of dependencies

* fix: update transform rule

* fix: test case

* chore: update core-js
2023-08-21 16:26:00 +08:00
ClarkXia 61a6908f68
chore: update versions (#6448) 2023-08-10 17:05:55 +08:00
ClarkXia 8ef8384696
chore: update versions (#6415) 2023-08-03 14:45:10 +08:00
ClarkXia a55bc97711
chore: update versions (#6292) 2023-06-02 10:17:00 +08:00
ClarkXia 87be462139
chore: update versions (#6275) 2023-05-31 10:40:26 +08:00
ClarkXia 15a96cc7fd
chore: update versions (#6252) 2023-05-17 19:07:04 +08:00
ClarkXia 68a95ab8c6
chore: update versions (#6147) 2023-05-16 16:06:21 +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 be9816f996
chore: update versions (#6089)
* chore: update versions

* Update CHANGELOG.md

* Update CHANGELOG.md
2023-03-30 13:22:49 +08: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
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
ZeroLing f46241fe75
Fix/compat rax element (#5847)
* fix: dynamic import works in app.tsx

* fix: test case

* chore: update depenedency version of @ice/webpack-config

* refactor: rax-compat jsx-runtime

* chore: add CHANGELOG and update version of rax-compat

* chore: pnpm lock up-to-date

* fix: puppteer update
2023-02-01 23:12:21 -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
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
染陌同学 37b4df9efa
Fix/fix ref input compat (#5605)
* feat: use forwardRef to forwarding ref

* chore: update version

* test: add test for ref of inputCompat

* fix: forwardref should wrapped to InputCompat avoid to refresh dom
2022-11-22 04:02:04 -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
染陌同学 bb75385bdf Feat/compat props (#540)
* feat: add possibleStandardNames

* chore: remove transform maxlength from createElement

* chore: modify version of package

* feat: select part of possibleStandardNames

* test: add test for transfrom props

* chore: dealwith warning
2022-11-15 10:32:43 +08:00
染陌同学 99fc777c68 Feat/support appear (#517)
* feat: support appear component

* chore: modify version

* fix: should disappear

* chore: export VisibilityChangeEvent

* feat: rax-compat use @ice/appear

* feat: need not give childref

* chore: update lock

* chore: update README and package

* chore: update README

* test: add test for appear

* chore: update lock
2022-11-15 10:31:38 +08:00
染陌同学 147876fbec Fix/input onchange (#507)
* fix: fix input onchange is invalid

* fix: onChange event is SyntheticEvent in React but it is dom event in Rax

* fix: prevent INPUT from being created repeatedly

* fix: should update value when props update

* test: add test for input value

* chore: update version

* test: add test for inputElement should not recreate when update props

* feat: modify useCallback

* test: add test for onchange

* feat: modify useCallback

* fix: usecallback should not use in createElement

* chore: remove line

* chore: remove onChange

* chore: dealwith lint

* chore: modify transformPrototypes to transformPrototype
2022-11-15 10:30:56 +08:00
染陌同学 910c534f07 Feat/support event transform (#496)
* feat: add events to transform event

* feat: add events

* feat: support transform event

* chore: delete events file

* feat: modify transformPrototypes

* test: add test for onclick

* test: add test for events

* chore: update version

* chore: add CHANGELOG

* chore: update CHANGELOG
2022-11-15 10:30:37 +08:00
ClarkXia 11a58ed9ae fix: compatible with win32 system (#477)
* fix: compatible with win32

* fix: lint

* chore: optimize code

* fix: test case

* fix: build-scripts version

* chore: update version

* chore: update lock file

* feat: add test case of win

* fix: node matrix

* fix: format path

* fix: win32 compatible

* fix: format path
2022-11-15 10:27:42 +08:00
answershuto 2a518e932d chore: modify type 2022-11-15 10:23:38 +08:00
answershuto 61fec0fede chore: update version 2022-11-15 10:22:42 +08:00
luhc228 304c2aa112 fix: peer depenencies warning (#420)
* fix: peer depenencies warning

* chore: update pkg plugin to latest version

* chore: remove typescript package
2022-11-15 10:22:38 +08:00
染陌同学 9e3203c3de chore: update version of style-unit (#409)
* chore: update version of style-unit

* chore: update lock

* chore: update lock
2022-11-15 10:15:15 +08:00
ClarkXia 48603cdf8f feat: support swc options for plugin-rax-compat and onappear on rax-compat (#349)
* feat: support swc options for plugin-rax-compat

* chore: example

* test: fix test case

* test: fix test case

* test: fix test case

* fix: outputdir

* fix: onappear for no ref cases

* fix: merge options

* fix: appear polyfill

* chore: remove appear polyfill dependency

* fix: add swc helpers

* fix: onappear on rax-compat

* refactor: format code and not to use react.frowardRef

Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2022-11-14 19:55:00 +08:00
luhc228 5b651061ae feat: package watch (#267)
* feat: package watch

* feat: watch

* chore: remove package watch

* feat: watch and build

* fix: build

* chore: remove prebundle from build

* chore: rename
2022-11-14 19:23:02 +08:00
ZeroLing bf812fc6ea chore: version check 2022-11-14 19:21:33 +08:00
ZeroLing 874dcae3ac chore: publish beta 2022-11-14 19:21:33 +08:00
ZeroLing 82d5ba6605 fix: remove swc helper 2022-11-14 19:21:15 +08:00
ZeroLing 0ba0b861fb chore: fix lint 2022-11-14 19:20:45 +08:00
ZeroLing c28f4132e3 chore: create-react-class as dependency 2022-11-14 19:20:29 +08:00
ZeroLing a4fc59055f feat: add style compat 2022-11-14 19:17:53 +08:00
ZeroLing 68fdcf8bc0 feat: impl onAppear and onDisappear 2022-11-14 19:17:53 +08:00
ZeroLing 8aa8764d06 feat: add dependency 2022-11-14 19:17:53 +08:00
answershuto 983066f94d feat: add react-dom to peerDependencies. 2022-11-14 19:17:50 +08:00