Skip to content

Commit ad2ffd4

Browse files
authored
module-first setup (#125)
* module-first setup * update apidoc * update README * keep apidoc format
1 parent 31fab06 commit ad2ffd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3031
-8001
lines changed

.eslintrc.cjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
root: true,
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:import/recommended',
10+
'plugin:import/typescript',
11+
'plugin:react/recommended',
12+
'plugin:react/jsx-runtime',
13+
'plugin:react-hooks/recommended',
14+
'plugin:jsx-a11y/recommended',
15+
'prettier',
16+
],
17+
ignorePatterns: ['dist/'],
18+
settings: {
19+
'import/resolver': {
20+
typescript: true,
21+
},
22+
react: { version: 'detect' },
23+
},
24+
rules: {
25+
'import/no-unresolved': ['error', { ignore: ['use-context-selector'] }],
26+
'@typescript-eslint/no-unused-vars': [
27+
'error',
28+
{
29+
args: 'all',
30+
argsIgnorePattern: '^_',
31+
caughtErrors: 'all',
32+
caughtErrorsIgnorePattern: '^_',
33+
destructuredArrayIgnorePattern: '^_',
34+
varsIgnorePattern: '^_',
35+
ignoreRestSiblings: true,
36+
},
37+
],
38+
},
39+
};

.eslintrc.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/pnpm-lock.yaml
2+
/dist
3+
/README.md

CHANGELOG.md

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,171 +2,258 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Module-first setup #125
8+
59
### Removed
6-
- Breaking: drop react < 18 support
10+
11+
- Breaking: drop react < 18 support #124
712

813
## [1.4.4] - 2024-03-08
14+
915
### Changed
16+
1017
- fix(react-native): metro without exports support #118
1118

1219
## [1.4.3] - 2024-03-06
20+
1321
### Changed
22+
1423
- fix: react-native entry point #116
1524

1625
## [1.4.2] - 2024-03-02
26+
1727
### Changed
28+
1829
- fix: unimplemented scheduler like RN #114
1930

2031
## [1.4.1] - 2022-06-07
32+
2133
### Changed
34+
2235
- fix(build): build script for React Native #83
2336

2437
## [1.4.0] - 2022-05-17
38+
2539
### Added
40+
2641
- experimental suspense/transition support #80
2742

2843
## [1.3.10] - 2022-04-12
44+
2945
### Changed
46+
3047
- Fix types for @types/react@18 (#75)
3148

3249
## [1.3.9] - 2021-09-20
50+
3351
### Changed
52+
3453
- Fix build config (obsoleting v1.3.8 which isn't built correctly)
3554

3655
## [1.3.8] - 2021-09-18
56+
3757
### Changed
58+
3859
- Fix package.json properly for ESM
3960
- Refactor version check with triple equal (#54)
4061

4162
## [1.3.7] - 2021-01-24
63+
4264
### Changed
65+
4366
- Fix extra commits introduced in v1.3.6 (#39)
4467

4568
## [1.3.6] - 2021-01-23
69+
4670
### Changed
71+
4772
- Fix cases rendered from parent (#38)
4873

4974
## [1.3.5] - 2021-01-06
75+
5076
### Changed
77+
5178
- More strict type for useContextUpdate return value
79+
5280
### Added
81+
5382
- Preact support with scheduler=false (#36)
5483

5584
## [1.3.4] - 2020-12-12
85+
5686
### Changed
87+
5788
- Refactor useBridgeValue because it does not depend on changedBits=0
5889

5990
## [1.3.3] - 2020-12-11
91+
6092
### Changed
93+
6194
- Fix an edge case with render bail out (with useContextUpdate)
6295

6396
## [1.3.2] - 2020-12-03
97+
6498
### Changed
99+
65100
- Fix useBridgeValue typing
66101

67102
## [1.3.1] - 2020-12-03
103+
68104
### Changed
105+
69106
- Refactor for efficiency and bundle size
70107
- Check typeof process for `NODE_ENV`
71108

72109
## [1.3.0] - 2020-12-01
110+
73111
### Changed
112+
74113
- No longer depends on changedBits=0 behavior
75114
- Tearing with parent can't be avoided
76115
- Migrate to TypeScript
77116

78117
## [1.2.12] - 2020-11-29
118+
79119
### Changed
120+
80121
- Re-implement without latest ref for value/selected to fix edge cases
81122

82123
## [1.2.11] - 2020-11-09
124+
83125
### Changed
126+
84127
- Fix default context value
85128

86129
## [1.2.10] - 2020-10-17
130+
87131
### Added
132+
88133
- Peer dependencies for React Native
89134

90135
## [1.2.9] - 2020-10-16
136+
91137
### Changed
138+
92139
- Fix compile script for ESM build
93140

94141
## [1.2.8] - 2020-10-08
142+
95143
### Changed
144+
96145
- Fix incomplete useBridgeValue implementation
97146

98147
## [1.2.7] - 2020-10-08
148+
99149
### Changed
150+
100151
- Fix missing useBridgeValue type
101152

102153
## [1.2.6] - 2020-10-08
154+
103155
### Added
156+
104157
- useBridgeValue for BridgeProvider
105158

106159
## [1.2.5] - 2020-10-03
160+
107161
### Changed
162+
108163
- Again fix bundle for React Native (#27)
109164

110165
## [1.2.4] - 2020-10-03
166+
111167
### Changed
168+
112169
- Fix bundle for React Native (#26)
113170

114171
## [1.2.3] - 2020-10-03
172+
115173
### Changed
174+
116175
- Fix back porting bug in v1.2.0-v1.2.2
117176

118177
## [1.2.2] - 2020-10-02
178+
119179
### Added
180+
120181
- useIsomorphicLayoutEffect for SSR (#25)
121182

122183
## [1.2.1] - 2020-10-01
184+
123185
### Added
186+
124187
- Type definition for useContextUpdate
125188

126189
## [1.2.0] - 2020-10-01
190+
127191
### Added
192+
128193
- useContextUpdate for state branching support
129194

130195
## [1.1.4] - 2020-09-22
196+
131197
### Added
198+
132199
- BridgeProvider for multiple react roots
133200

134201
## [1.1.3] - 2020-09-17
202+
135203
### Changed
204+
136205
- useIsoLayoutEffect for SSR
137206

138207
## [1.1.2] - 2020-07-02
208+
139209
### Changed
210+
140211
- Modern build
141212

142213
## [1.1.1] - 2020-03-02
214+
143215
### Changed
216+
144217
- Avoid React render warning in test (#15)
145218

146219
## [1.1.0] - 2020-02-24
220+
147221
### Changed
222+
148223
- A workaround for React render warning (#13)
149224

150225
## [1.0.1] - 2019-09-27
226+
151227
### Changed
228+
152229
- Shave more bytes in the production environment (#6)
153230

154231
## [1.0.0] - 2019-08-02
232+
155233
### Changed
234+
156235
- Fix API v1
157236

158237
## [0.4.0] - 2019-07-23
238+
159239
### Changed
240+
160241
- Shave bytes (#2)
161242

162243
## [0.3.0] - 2019-07-20
244+
163245
### Changed
246+
164247
- No useLayoutEffect for invoking listeners (which leads de-opt sync mode)
165248

166249
## [0.2.0] - 2019-07-07
250+
167251
### Changed
252+
168253
- Use microbundle
169254

170255
## [0.1.0] - 2019-07-05
256+
171257
### Added
258+
172259
- Initial release

0 commit comments

Comments
 (0)