Skip to content

Commit

Permalink
module-first setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Apr 27, 2024
1 parent 31fab06 commit a88bf5f
Show file tree
Hide file tree
Showing 44 changed files with 3,029 additions and 8,004 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* eslint-env node */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
],
ignorePatterns: ['dist/'],
settings: {
'import/resolver': {
typescript: true,
},
react: { version: 'detect' },
},
rules: {
'import/no-unresolved': ['error', { ignore: ['use-context-selector'] }],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
};
46 changes: 0 additions & 46 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/pnpm-lock.yaml
/dist
83 changes: 83 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,170 +3,253 @@
## [Unreleased]

### Removed

- Breaking: drop react < 18 support

## [1.4.4] - 2024-03-08

### Changed

- fix(react-native): metro without exports support #118

## [1.4.3] - 2024-03-06

### Changed

- fix: react-native entry point #116

## [1.4.2] - 2024-03-02

### Changed

- fix: unimplemented scheduler like RN #114

## [1.4.1] - 2022-06-07

### Changed

- fix(build): build script for React Native #83

## [1.4.0] - 2022-05-17

### Added

- experimental suspense/transition support #80

## [1.3.10] - 2022-04-12

### Changed

- Fix types for @types/react@18 (#75)

## [1.3.9] - 2021-09-20

### Changed

- Fix build config (obsoleting v1.3.8 which isn't built correctly)

## [1.3.8] - 2021-09-18

### Changed

- Fix package.json properly for ESM
- Refactor version check with triple equal (#54)

## [1.3.7] - 2021-01-24

### Changed

- Fix extra commits introduced in v1.3.6 (#39)

## [1.3.6] - 2021-01-23

### Changed

- Fix cases rendered from parent (#38)

## [1.3.5] - 2021-01-06

### Changed

- More strict type for useContextUpdate return value

### Added

- Preact support with scheduler=false (#36)

## [1.3.4] - 2020-12-12

### Changed

- Refactor useBridgeValue because it does not depend on changedBits=0

## [1.3.3] - 2020-12-11

### Changed

- Fix an edge case with render bail out (with useContextUpdate)

## [1.3.2] - 2020-12-03

### Changed

- Fix useBridgeValue typing

## [1.3.1] - 2020-12-03

### Changed

- Refactor for efficiency and bundle size
- Check typeof process for `NODE_ENV`

## [1.3.0] - 2020-12-01

### Changed

- No longer depends on changedBits=0 behavior
- Tearing with parent can't be avoided
- Migrate to TypeScript

## [1.2.12] - 2020-11-29

### Changed

- Re-implement without latest ref for value/selected to fix edge cases

## [1.2.11] - 2020-11-09

### Changed

- Fix default context value

## [1.2.10] - 2020-10-17

### Added

- Peer dependencies for React Native

## [1.2.9] - 2020-10-16

### Changed

- Fix compile script for ESM build

## [1.2.8] - 2020-10-08

### Changed

- Fix incomplete useBridgeValue implementation

## [1.2.7] - 2020-10-08

### Changed

- Fix missing useBridgeValue type

## [1.2.6] - 2020-10-08

### Added

- useBridgeValue for BridgeProvider

## [1.2.5] - 2020-10-03

### Changed

- Again fix bundle for React Native (#27)

## [1.2.4] - 2020-10-03

### Changed

- Fix bundle for React Native (#26)

## [1.2.3] - 2020-10-03

### Changed

- Fix back porting bug in v1.2.0-v1.2.2

## [1.2.2] - 2020-10-02

### Added

- useIsomorphicLayoutEffect for SSR (#25)

## [1.2.1] - 2020-10-01

### Added

- Type definition for useContextUpdate

## [1.2.0] - 2020-10-01

### Added

- useContextUpdate for state branching support

## [1.1.4] - 2020-09-22

### Added

- BridgeProvider for multiple react roots

## [1.1.3] - 2020-09-17

### Changed

- useIsoLayoutEffect for SSR

## [1.1.2] - 2020-07-02

### Changed

- Modern build

## [1.1.1] - 2020-03-02

### Changed

- Avoid React render warning in test (#15)

## [1.1.0] - 2020-02-24

### Changed

- A workaround for React render warning (#13)

## [1.0.1] - 2019-09-27

### Changed

- Shave more bytes in the production environment (#6)

## [1.0.0] - 2019-08-02

### Changed

- Fix API v1

## [0.4.0] - 2019-07-23

### Changed

- Shave bytes (#2)

## [0.3.0] - 2019-07-20

### Changed

- No useLayoutEffect for invoking listeners (which leads de-opt sync mode)

## [0.2.0] - 2019-07-07

### Changed

- Use microbundle

## [0.1.0] - 2019-07-05

### Added

- Initial release

0 comments on commit a88bf5f

Please sign in to comment.