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

Improve treeshakeability of build artifacts #2176

Merged
merged 26 commits into from
Dec 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9f81f91
Fix `tsup` config
aryaemami59 May 31, 2024
157e6c9
Bring all of `devModeChecks` underneath `process.env.NODE_ENV` checks
aryaemami59 May 31, 2024
fd88816
Add `getUseIsomorphicLayoutEffect` with `@__PURE__` annotation
aryaemami59 May 31, 2024
b14e12a
Add `@__PURE__` to `ContextKey` creation site
aryaemami59 May 31, 2024
4e2479b
Add `@__PURE__` annotations to all `react-is` symbols
aryaemami59 May 31, 2024
c838d4c
Convert `isReactNative` and `canUseDOM` to functions with `@__PURE__`s
aryaemami59 Jun 1, 2024
3d2f07f
Do not export `isRunningInReactNative` as it's usage is internal
aryaemami59 Jun 1, 2024
02de09a
Replace `define` with `env` as it is the same thing.
aryaemami59 Jun 4, 2024
2cc0eef
Fix `valid-jsdoc` rule options to not require parameter or return types
aryaemami59 Jun 10, 2024
35858b1
Emit type definitions with `cjs` format
aryaemami59 Jun 10, 2024
853c462
Fix `React` namespace import
aryaemami59 Jun 10, 2024
fc63d04
Add `src` to `files`
aryaemami59 Jun 25, 2024
d0f5a9c
Remove unused `types\index.d.ts` file
aryaemami59 Jun 25, 2024
b07d821
Remove `initializeConnect` and `initializeUseSelector`
aryaemami59 Jun 25, 2024
61e1950
Remove duplicate `default` export of `ReactReduxContext`
aryaemami59 Jun 26, 2024
fe6eba1
Undo unused export of `getDependsOnOwnProps`
aryaemami59 Jun 26, 2024
8d939ba
Undo unused export of `pureFinalPropsSelectorFactory`
aryaemami59 Jun 26, 2024
198253e
Undo unused export of `defaultMergeProps`
aryaemami59 Jun 26, 2024
a1b526c
Undo unused export of `wrapMergePropsFunc`
aryaemami59 Jun 26, 2024
278d61a
Replace `prepare` script with `prepack`
aryaemami59 Aug 6, 2024
2fc58b1
Fix imports in `connect.tsx`
aryaemami59 Aug 13, 2024
146dd92
Fix imports in `Context.ts`
aryaemami59 Aug 13, 2024
f7fa960
Fix imports in `mergeProps.ts`
aryaemami59 Aug 13, 2024
912bdce
Add JSDoc `@returns` tag for `isRunningInReactNative`
aryaemami59 Sep 17, 2024
5f64c8b
Bring dev mode checks underneath `process.env.NODE_ENV` references
aryaemami59 Oct 11, 2024
49f8136
Bump `tsup` to version 8.3.5
aryaemami59 Jul 17, 2024
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
Prev Previous commit
Next Next commit
Do not export isRunningInReactNative as it's usage is internal
  • Loading branch information
aryaemami59 committed Nov 11, 2024
commit 3d2f07f96005730176516636085d43e1f89b28fa
2 changes: 1 addition & 1 deletion src/utils/useIsomorphicLayoutEffect.ts
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ const isDOM = /* @__PURE__ */ canUseDOM()
*
* @see {@link https://github.com/facebook/react-native/issues/1331 Reference}
*/
export const isRunningInReactNative = () =>
const isRunningInReactNative = () =>
typeof navigator !== 'undefined' && navigator.product === 'ReactNative'

const isReactNative = /* @__PURE__ */ isRunningInReactNative()