Граф коммитов

864 Коммитов

Автор SHA1 Сообщение Дата
Tommy Nguyen 015a2b3a1c
chore(align-deps): bump jest-diff to 27.5.1 (#2114) 2023-01-17 15:02:45 +01:00
Tommy Nguyen 1b080e9b01
fix(react-native-test-app-msal): bump dependencies (#2112)
- `androidx.activity:activity-ktx` 1.5.1 -> 1.6.1
- `com.google.android.material:material` 1.6.1 -> 1.7.0
- `com.microsoft.identity.client:msal` 4.0.4 -> 4.1.3
2023-01-17 15:02:18 +01:00
Tommy Nguyen 776addd0ad
chore: bump npm dependencies (#2111) 2023-01-17 15:02:06 +01:00
Tommy Nguyen f4094996f1
chore(metro-config): bump type-fest to 3.5.1 (#2113) 2023-01-17 15:01:51 +01:00
github-actions[bot] d8cd2135cc
RELEASING: Releasing 1 package(s) (#2109)
Releases:
  @rnx-kit/metro-resolver-symlinks@0.1.24

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-17 12:36:52 +01:00
Tommy Nguyen e5aff35152
fix(metro-resolver-symlinks): also load `require` if `default` and `node` are missing (#2108) 2023-01-17 12:27:51 +01:00
github-actions[bot] bfcad00c7b
RELEASING: Releasing 3 package(s) (#2107)
Releases:
  @rnx-kit/cli@0.15.4
  @rnx-kit/esbuild-plugin-import-path-remapper@2.0.0
  @rnx-kit/metro-serializer-esbuild@0.1.18

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-16 15:34:11 +01:00
Tommy Nguyen 909b3d0d3a
fix(cli): fix broken bundle when `dev=true` `treeShake=true` (#2106) 2023-01-16 15:08:45 +01:00
Tommy Nguyen e1a215d069
chore: bump esbuild to 0.17.0 (#2105) 2023-01-16 15:08:29 +01:00
github-actions[bot] a0a0ed2178
RELEASING: Releasing 2 package(s) (#2096)
Releases:
  @rnx-kit/metro-service@3.0.3
  @rnx-kit/align-deps@2.0.3

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-13 13:45:58 +01:00
Tommy Nguyen dcb3158e7c
chore: remove unused 'expo-app' (#2099)
It doesn't look like it was testing any rnx-kit packages (besides
calling `@rnx-kit/scripts`). We've also not seen any significant usage
among Expo users. Removing it to reduce maintenance overhead.
2023-01-13 11:58:46 +00:00
Tommy Nguyen f3ec2994bc
fix(align-deps): add profile for react-native 0.71 (#2032) 2023-01-13 12:24:45 +01:00
Tommy Nguyen febf2c4c17
chore: remove deprecated dep-check (#2097) 2023-01-13 09:39:05 +01:00
Tommy Nguyen 775ef91de4
fix(metro-service): our try-catch is catching too many things (#2094) 2023-01-12 12:33:23 +00:00
Tommy Nguyen 70b9bd84e9
chore: remove deprecated typescript-react-native-compiler (#2093) 2023-01-11 14:49:33 +01:00
github-actions[bot] 6135bea8a5
RELEASING: Releasing 4 package(s) (#2092)
Releases:
  @rnx-kit/typescript-react-native-compiler@0.0.10
  @rnx-kit/typescript-react-native-resolver@0.3.1
  @rnx-kit/metro-plugin-typescript@0.2.0
  @rnx-kit/cli@0.15.3

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-11 12:02:51 +01:00
Adam Foxman f01bdef696
Delegate RN module resolution directly to TypeScript (4.7+ only), rather than our own resolver (#2071)
* Add note to set experimentalImportSupport in metro.config.js when turning on tree shaking.

* Revert "Add note to set experimentalImportSupport in metro.config.js when turning on tree shaking."

This reverts commit 3b7ab97e2a.

* Explicitly fail when our custom resolver encounters TS path-remapping. It can't handle this, and will do the wrong thing.

* Add an export

* docs(changeset): Explicitly fail when our custom resolver encounters TS path-remapping. It can't handle this, and will do the wrong thing. Also, export an existing function as part of the public interface.

* Add a new TypeScript module resolver for React Native projects which uses the `moduleSuffixes` compiler option. All resolution is delegated to TypeScript, rather than run through our custom resolvers, since TypeScript's resolvers are more feature-rich and in sync with the node ecosystem.

* docs(changeset): Add a new TypeScript module resolver for React Native projects which uses the `moduleSuffixes` compiler option. All resolution is delegated to TypeScript, rather than run through our custom resolvers, since TypeScript's resolvers are more feature-rich and in sync with the node ecosystem.

* Add a blank file extension to the list of platform extensions when using the TS 47 delegating resolver. This ensures that we fall back to "no extension" when resolving modules using TS.

* add tests

* Add deprecation notes/messages to the typescrpit-react-native-compiler/-resolver packages.

* docs(changeset): Mark this package as depcrecated.

* Add code/test to ensure moduleSuffixes when resolving type reference directives.

* Allow packages which set moduleSuffixes to use the convention of omitting the platform name.

* typos

* use `import type`

Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
2023-01-11 10:45:06 +00:00
github-actions[bot] c2c01d82f7
RELEASING: Releasing 1 package(s) (#2083)
Releases:
  @rnx-kit/align-deps@2.0.2

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-04 11:48:43 +01:00
Tommy Nguyen ceb635874b
fix(align-deps): fix `--exclude-packages` not working with plain check (#2081) 2023-01-04 11:09:23 +01:00
Tommy Nguyen d2468c3d2c
fix(align-deps): improve requirements check (#2082) 2023-01-04 11:09:03 +01:00
github-actions[bot] 42577ce873
RELEASING: Releasing 2 package(s) (#2070)
Releases:
  @rnx-kit/cli@0.15.2
  @rnx-kit/metro-plugin-typescript@0.1.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-05 12:22:38 -08:00
Tommy Nguyen 2f0c782e1f
refactor(cli): extract TypeScript plugin to separate package (#2046)
* refactor(cli): extract TypeScript plugin to separate package

* formatting

* don't export createProjectCache

* add entry under docsite

* Fix dependency version

* Remove unused dependencies brough in during merge from main

Co-authored-by: Adam Foxman <5109471+afoxman@users.noreply.github.com>
2022-12-05 20:08:51 +00:00
github-actions[bot] 068cd385ef
RELEASING: Releasing 4 package(s) (#2069)
Releases:
  @rnx-kit/jest-preset@0.1.13
  @rnx-kit/typescript-react-native-resolver@0.3.0
  @rnx-kit/typescript-react-native-compiler@0.0.9
  @rnx-kit/cli@0.15.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-05 08:10:08 -08:00
Adam Foxman 94aeb460a0
Revert specialized trace logging in our React Native TypeScript resolver (#2062)
* Add note to set experimentalImportSupport in metro.config.js when turning on tree shaking.

* Revert "Add note to set experimentalImportSupport in metro.config.js when turning on tree shaking."

This reverts commit 3b7ab97e2a.

* Remove the specialized trace logging that exists in our custom TypeScript module resolver. Revert to using TypeScript's trace() function for logging, and only invoking it when the compiler option traceResolution is true. This matches the convention in TypeScript itself.

This impacts our TypeScript resolver, our "rn-tsc" TypeScript compiler wrapper, and our CLI (no client-facing impacts).

* docs(changeset): BREAKING: update the public method 'changeHostToUseReactNativeResolver'. Remove trace logging parameters. From this version onward, standard TypeScript module resolution tracing applies. Set the compiler option 'traceResolution' to true, and you will see trace messages appear in the console. Logging to a file is no longer supported.

* docs(changeset): BREAKING: remove command-line parameters 'traceReactNativeModuleResolutionErrors' and 'traceResolutionLog' which were used for configuring custom trace logging. From this version onward, standard TypeScript trace logging should be used. This amounts to setting the compiler option 'traceResolution' to true. Trace messages will appear on the console. Logging to a file is no longer supported.

* Update change files
2022-12-05 07:57:51 -08:00
Andrew Coates 6c59f781c9
fix(jest-preset): add support for react-native-windows (#2061) 2022-12-05 10:37:06 +01:00
github-actions[bot] a9fd54dedc
RELEASING: Releasing 3 package(s) (#2052)
Releases:
  @rnx-kit/tools-language@1.4.2
  @rnx-kit/react-native-auth@0.2.1
  @rnx-kit/metro-resolver-symlinks@0.1.23

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-01 11:23:40 +01:00
Tommy Nguyen 80e6557d33
feat(metro-resolver-symlinks): experimental option to retry resolving from disk (#2044) 2022-11-30 18:35:36 +01:00
Tommy Nguyen 62b188767c
fix(react-native-auth): add TurboModule spec (#2024) 2022-11-29 19:38:20 +01:00
Tommy Nguyen 786e24c746
docs: replace tsdoc with typedoc (#2048) 2022-11-28 10:26:56 +01:00
renovate[bot] 2b11d7984c
chore(deps): update expo monorepo (#2015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
2022-11-17 18:34:34 +01:00
Tommy Nguyen 790b915bc8
chore: bump typescript to 4.9.3 (#2042) 2022-11-17 13:48:33 +00:00
github-actions[bot] 50e823183b
RELEASING: Releasing 2 package(s) (#2041)
Releases:
  @rnx-kit/babel-preset-metro-react-native@1.1.3
  @rnx-kit/metro-serializer-esbuild@0.1.17

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17 12:19:05 +01:00
Tommy Nguyen a1fcd9eb1c
fix: fix modules not being resolved in pnpm-like setups (#2040) 2022-11-17 11:05:06 +00:00
Tommy Nguyen 3d738d8c00
docs: update code examples for more clarity (#2038) 2022-11-16 10:23:44 +00:00
github-actions[bot] 88276b4d6f
RELEASING: Releasing 2 package(s) (#2030)
Releases:
  @rnx-kit/dep-check@1.14.0
  @rnx-kit/cli@0.15.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-11 09:58:24 +01:00
Tommy Nguyen d563e22fa3
feat(cli): migrate to `align-deps` (#1976) 2022-11-11 09:40:37 +01:00
Tommy Nguyen 93b480ab8e
feat(dep-check): add migration message (#1941) 2022-11-11 08:53:04 +01:00
github-actions[bot] 0956e7de57
RELEASING: Releasing 1 package(s) (#2028)
Releases:
  @rnx-kit/align-deps@2.0.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 21:55:16 +01:00
Tommy Nguyen 430dd69a24
fix(align-deps): fix not being able to load `microsoft/react-native` (#2026)
We can't dynamically load the preset because we ship a bundled JS.
2022-11-10 20:44:08 +00:00
github-actions[bot] 7dfee00fec
RELEASING: Releasing 3 package(s) (#2025)
Releases:
  @rnx-kit/metro-resolver-symlinks@0.1.22
  @rnx-kit/align-deps@2.0.0
  @rnx-kit/tools-react-native@1.2.3

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 20:01:25 +01:00
Tommy Nguyen fbff74c8a5
feat(align-deps)!: release 2.0 (#1981) 2022-11-10 17:53:08 +01:00
Tommy Nguyen b73738428e
fix(align-deps): remove ability for partial config (#2023)
Partially reverts 8cd4405997.
2022-11-10 17:52:26 +01:00
Tommy Nguyen 53df63dd47
fix(metro-resolver-symlinks): use `extraNodeModules` if present (#1988) 2022-11-10 17:17:20 +01:00
github-actions[bot] 011e040b40
RELEASING: Releasing 7 package(s) (#2009)
Releases:
  @rnx-kit/metro-config@1.3.3
  @rnx-kit/react-native-test-app-msal@2.0.1
  @rnx-kit/cli@0.14.10
  @rnx-kit/dep-check@1.13.5
  @rnx-kit/tools-workspaces@0.1.3
  @rnx-kit/tools-language@1.4.1
  @rnx-kit/golang@0.2.3

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-08 13:41:40 +01:00
Tommy Nguyen c14e998e49
fix(metro-config): add support for Rush + pnpm setup (#2019) 2022-11-08 13:24:47 +01:00
Tommy Nguyen 80f823dfdb
fix(cli): fail gracefully if `jest-cli` is missing (part 2) (#2018) 2022-11-08 13:24:35 +01:00
Tommy Nguyen d87656e139
docs(metro-serializer-esbuild): correct dev server workaround (#2017)
I forgot to account for the additional changes made to
`metro.config.js`, applying `esbuildTransformerConfig`. This config does
not work with dev server. We still need two separate config files (or
some other mechanism to conditionally apply `esbuildTransformerConfig`).
2022-11-07 19:01:19 +01:00
renovate[bot] bfba7dffa1
fix(deps): update dependency react-native to v0.68.5 (#2016)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
2022-11-07 13:19:15 +00:00
Tommy Nguyen ed9936e8c3
chore: extract preset from `rnx-align-deps.js` (#2013) 2022-11-04 12:00:24 +01:00
Tommy Nguyen 8ab4a45a58
chore: bump react-native-test-app to 2.0.1 (#2011) 2022-11-03 20:43:26 +01:00