Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module-first setup #125

Merged
merged 4 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/pnpm-lock.yaml
/dist
/README.md
89 changes: 88 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,171 +2,258 @@

## [Unreleased]

### Changed

- Module-first setup #125

### Removed
- Breaking: drop react < 18 support

- Breaking: drop react < 18 support #124

## [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
Loading
Loading