diff --git a/.changeset/babel-loader-flow-pragma-gate.md b/.changeset/babel-loader-flow-pragma-gate.md deleted file mode 100644 index 74a86fc9a..000000000 --- a/.changeset/babel-loader-flow-pragma-gate.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@callstack/repack": patch ---- - -Send only sources carrying an `@flow` pragma through hermes-parser in `babelLoader`, matching -`babel-plugin-syntax-hermes-parser` with the React Native preset's default -`parseLangTypes: 'flow'`. hermes-parser converts its own AST into a Babel AST, and that conversion -is quadratic in the number of sibling nodes, so a single prebuilt minified dependency could add -minutes to a build. Set `hermesParserOverrides.flow` to `'all'` to keep parsing every file with -hermes-parser. diff --git a/.changeset/declare-babel-syntax-typescript.md b/.changeset/declare-babel-syntax-typescript.md deleted file mode 100644 index 542a3cb65..000000000 --- a/.changeset/declare-babel-syntax-typescript.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@callstack/repack": patch ---- - -Fix `Cannot find module '@babel/plugin-syntax-typescript'` when bundling TypeScript with `babel-swc-loader` or the codegen rules. Re.Pack passed the plugin to Babel by name, so it only resolved when the project happened to have it installed. With pnpm, builds often worked only through the `NODE_PATH` set by script shims and failed when bundling from Xcode or Gradle. - -- `@babel/plugin-syntax-typescript` is now a dependency of Re.Pack and is passed to Babel as a resolved path. -- `@babel/core` is now declared as a peer dependency, since Re.Pack's loaders import it. diff --git a/.changeset/dev-entries-official-mf-plugin.md b/.changeset/dev-entries-official-mf-plugin.md deleted file mode 100644 index fc57ee175..000000000 --- a/.changeset/dev-entries-official-mf-plugin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@callstack/repack": patch ---- - -Fix `DevelopmentPlugin` crashing with `Cannot read properties of undefined (reading 'exposes')` when an official Module Federation plugin (from `@module-federation/enhanced`, or the built-in `container.ModuleFederationPlugin` of Rspack or webpack) is used with the dev server. The check for official plugins read `exposes` from `plugin.config`, which only Re.Pack's own Module Federation plugins have, instead of `plugin._options`. diff --git a/.changeset/dev-server-node18-close.md b/.changeset/dev-server-node18-close.md deleted file mode 100644 index 1b5b4f2f0..000000000 --- a/.changeset/dev-server-node18-close.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@callstack/repack-dev-server": patch ---- - -Fix dev server shutdown hanging on Node 18 with fastify 5.12+ by force-closing open connections on stop diff --git a/.changeset/module-federation-2-runtime-plugins.md b/.changeset/module-federation-2-runtime-plugins.md deleted file mode 100644 index a138c424f..000000000 --- a/.changeset/module-federation-2-runtime-plugins.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@callstack/repack": patch ---- - -Keep the options of Module Federation 2.x runtime plugins passed to `ModuleFederationPluginV2` as `[path, options]` in `runtimePlugins`. Such entries were silently dropped before. - -Fix the typings of the `@callstack/repack/mf/*` runtime plugins with `@module-federation/enhanced` 0.17 and newer, where `FederationRuntimePlugin` and `FederationHost` were renamed to `ModuleFederationRuntimePlugin` and `ModuleFederation`. The types are now derived from the installed runtime, so they work with every supported version. diff --git a/.changeset/nativewind-swc-oneof.md b/.changeset/nativewind-swc-oneof.md deleted file mode 100644 index 7e40d10b8..000000000 --- a/.changeset/nativewind-swc-oneof.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@callstack/repack-plugin-nativewind": patch ---- - -Configure the NativeWind JSX import source for `builtin:swc-loader` rules nested in `oneOf` or `rules`, such as the ones from `getJsTransformRules`. Previously only top-level rules were updated, so JSX kept importing from `react`. diff --git a/.changeset/security-dependency-updates.md b/.changeset/security-dependency-updates.md deleted file mode 100644 index ea828d116..000000000 --- a/.changeset/security-dependency-updates.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@callstack/repack": patch -"@callstack/repack-dev-server": patch ---- - -Update `image-size` to v2 and `fastify` to 5.12.5 to resolve security advisories diff --git a/.changeset/swc-jsx-development-mode.md b/.changeset/swc-jsx-development-mode.md deleted file mode 100644 index 54e1691ec..000000000 --- a/.changeset/swc-jsx-development-mode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@callstack/repack": patch ---- - -Make SWC JSX development transforms follow the build mode. `getSwcLoaderOptions` (and `getJsTransformRules`) tied `jsc.transform.react.development` to the JSX runtime, so development builds with the default `automatic` runtime emitted `jsx` instead of `jsxDEV` and lost `__source` / `__self`, accurate component stacks and "open in editor", while `classic` production builds kept them. `getSwcLoaderOptions` no longer sets `jsc.transform.react.development` by default, so Rspack's `builtin:swc-loader` derives it from `mode`, and development builds with the `automatic` runtime now import `/jsx-dev-runtime`. Both helpers accept a `development` option to override it, e.g. `getJsTransformRules({ swc: { development: false } })` when a custom `importSource` doesn't ship a `jsx-dev-runtime` entry. diff --git a/packages/dev-server/CHANGELOG.md b/packages/dev-server/CHANGELOG.md index 2f4a3f814..b4e1a6d5c 100644 --- a/packages/dev-server/CHANGELOG.md +++ b/packages/dev-server/CHANGELOG.md @@ -1,5 +1,13 @@ # @callstack/repack-dev-server +## 5.4.3 + +### Patch Changes + +- [#1495](https://github.com/callstack/repack/pull/1495) [`44431b3`](https://github.com/callstack/repack/commit/44431b3cea3bca36de9cfb493221f11f3892a1c8) Thanks [@dannyhw](https://github.com/dannyhw)! - Fix dev server shutdown hanging on Node 18 with fastify 5.12+ by force-closing open connections on stop + +- [#1486](https://github.com/callstack/repack/pull/1486) [`fd8e33e`](https://github.com/callstack/repack/commit/fd8e33e587e4a2866087aeea266b6f809562a5f2) Thanks [@dannyhw](https://github.com/dannyhw)! - Update `image-size` to v2 and `fastify` to 5.12.5 to resolve security advisories + ## 5.4.2 ## 5.4.1 diff --git a/packages/dev-server/package.json b/packages/dev-server/package.json index 43326ab3d..7fcc05a23 100644 --- a/packages/dev-server/package.json +++ b/packages/dev-server/package.json @@ -2,7 +2,7 @@ "name": "@callstack/repack-dev-server", "description": "A bundler-agnostic development server for React Native applications as part of @callstack/repack.", "license": "MIT", - "version": "5.4.2", + "version": "5.4.3", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/init/CHANGELOG.md b/packages/init/CHANGELOG.md index 11acd2a11..161c1be88 100644 --- a/packages/init/CHANGELOG.md +++ b/packages/init/CHANGELOG.md @@ -1,5 +1,9 @@ # @callstack/repack-init +## 5.4.3 + +No changes in this release. + ## 5.4.2 ### Patch Changes diff --git a/packages/init/package.json b/packages/init/package.json index 87f0e710d..d46e2d3d9 100644 --- a/packages/init/package.json +++ b/packages/init/package.json @@ -3,7 +3,7 @@ "description": "Automates the integration of the @callstack/repack into React-Native projects", "author": "Jakub Romańczyk ", "license": "MIT", - "version": "5.4.2", + "version": "5.4.3", "homepage": "https://github.com/callstack/repack", "repository": { "type": "git", diff --git a/packages/plugin-expo-modules/CHANGELOG.md b/packages/plugin-expo-modules/CHANGELOG.md index c52a53bbe..02632d049 100644 --- a/packages/plugin-expo-modules/CHANGELOG.md +++ b/packages/plugin-expo-modules/CHANGELOG.md @@ -1,5 +1,9 @@ # @callstack/repack-plugin-expo-modules +## 5.4.3 + +No changes in this release. + ## 5.4.2 ## 5.4.1 diff --git a/packages/plugin-expo-modules/package.json b/packages/plugin-expo-modules/package.json index 698475bbf..9230db3a2 100644 --- a/packages/plugin-expo-modules/package.json +++ b/packages/plugin-expo-modules/package.json @@ -1,6 +1,6 @@ { "name": "@callstack/repack-plugin-expo-modules", - "version": "5.4.2", + "version": "5.4.3", "description": "A plugin for @callstack/repack that integrates Expo Modules", "author": "Jakub Romańczyk ", "license": "MIT", diff --git a/packages/plugin-nativewind/CHANGELOG.md b/packages/plugin-nativewind/CHANGELOG.md index 21281c0b7..9d4c1809d 100644 --- a/packages/plugin-nativewind/CHANGELOG.md +++ b/packages/plugin-nativewind/CHANGELOG.md @@ -1,5 +1,11 @@ # @callstack/repack-plugin-nativewind +## 5.4.3 + +### Patch Changes + +- [#1494](https://github.com/callstack/repack/pull/1494) [`87db9a1`](https://github.com/callstack/repack/commit/87db9a17886140185787acb4f2f26b1d22b69d9d) Thanks [@whydidoo](https://github.com/whydidoo)! - Configure the NativeWind JSX import source for `builtin:swc-loader` rules nested in `oneOf` or `rules`, such as the ones from `getJsTransformRules`. Previously only top-level rules were updated, so JSX kept importing from `react`. + ## 5.4.2 ## 5.4.1 diff --git a/packages/plugin-nativewind/package.json b/packages/plugin-nativewind/package.json index 6dc68c9a4..7caccab68 100644 --- a/packages/plugin-nativewind/package.json +++ b/packages/plugin-nativewind/package.json @@ -1,6 +1,6 @@ { "name": "@callstack/repack-plugin-nativewind", - "version": "5.4.2", + "version": "5.4.3", "description": "A plugin for @callstack/repack that integrates NativeWind", "author": "Boris Yankov ", "contributors": [ diff --git a/packages/plugin-reanimated/CHANGELOG.md b/packages/plugin-reanimated/CHANGELOG.md index 273da4abc..f3043dc58 100644 --- a/packages/plugin-reanimated/CHANGELOG.md +++ b/packages/plugin-reanimated/CHANGELOG.md @@ -1,5 +1,9 @@ # @callstack/repack-plugin-reanimated +## 5.4.3 + +No changes in this release. + ## 5.4.2 ## 5.4.1 diff --git a/packages/plugin-reanimated/package.json b/packages/plugin-reanimated/package.json index afdaffead..c323f4d41 100644 --- a/packages/plugin-reanimated/package.json +++ b/packages/plugin-reanimated/package.json @@ -1,6 +1,6 @@ { "name": "@callstack/repack-plugin-reanimated", - "version": "5.4.2", + "version": "5.4.3", "description": "A plugin for @callstack/repack that integrates react-native-reanimated", "author": "Jakub Romańczyk ", "license": "MIT", diff --git a/packages/repack/CHANGELOG.md b/packages/repack/CHANGELOG.md index 20759efb2..9415a43fa 100644 --- a/packages/repack/CHANGELOG.md +++ b/packages/repack/CHANGELOG.md @@ -1,5 +1,33 @@ # @callstack/repack +## 5.4.3 + +### Patch Changes + +- [#1452](https://github.com/callstack/repack/pull/1452) [`a87b592`](https://github.com/callstack/repack/commit/a87b59247cb9595da7880cb8e8b1c6235cae94c7) Thanks [@elirangoshen](https://github.com/elirangoshen)! - Send only sources carrying an `@flow` pragma through hermes-parser in `babelLoader`, matching + `babel-plugin-syntax-hermes-parser` with the React Native preset's default + `parseLangTypes: 'flow'`. hermes-parser converts its own AST into a Babel AST, and that conversion + is quadratic in the number of sibling nodes, so a single prebuilt minified dependency could add + minutes to a build. Set `hermesParserOverrides.flow` to `'all'` to keep parsing every file with + hermes-parser. + +- [#1483](https://github.com/callstack/repack/pull/1483) [`37c25bb`](https://github.com/callstack/repack/commit/37c25bbb6ba14c0e7c6b628318e29f85038e40f7) Thanks [@CristiCeban](https://github.com/CristiCeban)! - Fix `Cannot find module '@babel/plugin-syntax-typescript'` when bundling TypeScript with `babel-swc-loader` or the codegen rules. Re.Pack passed the plugin to Babel by name, so it only resolved when the project happened to have it installed. With pnpm, builds often worked only through the `NODE_PATH` set by script shims and failed when bundling from Xcode or Gradle. + + - `@babel/plugin-syntax-typescript` is now a dependency of Re.Pack and is passed to Babel as a resolved path. + - `@babel/core` is now declared as a peer dependency, since Re.Pack's loaders import it. + +- [#1471](https://github.com/callstack/repack/pull/1471) [`c9dab5d`](https://github.com/callstack/repack/commit/c9dab5d00e4f1c12549c48eba4c432aa638aec99) Thanks [@giaBaoJS](https://github.com/giaBaoJS)! - Fix `DevelopmentPlugin` crashing with `Cannot read properties of undefined (reading 'exposes')` when an official Module Federation plugin (from `@module-federation/enhanced`, or the built-in `container.ModuleFederationPlugin` of Rspack or webpack) is used with the dev server. The check for official plugins read `exposes` from `plugin.config`, which only Re.Pack's own Module Federation plugins have, instead of `plugin._options`. + +- [#1484](https://github.com/callstack/repack/pull/1484) [`253d14b`](https://github.com/callstack/repack/commit/253d14bda27e3343aff4d5b01d853e3dfa69de57) Thanks [@whydidoo](https://github.com/whydidoo)! - Keep the options of Module Federation 2.x runtime plugins passed to `ModuleFederationPluginV2` as `[path, options]` in `runtimePlugins`. Such entries were silently dropped before. + + Fix the typings of the `@callstack/repack/mf/*` runtime plugins with `@module-federation/enhanced` 0.17 and newer, where `FederationRuntimePlugin` and `FederationHost` were renamed to `ModuleFederationRuntimePlugin` and `ModuleFederation`. The types are now derived from the installed runtime, so they work with every supported version. + +- [#1486](https://github.com/callstack/repack/pull/1486) [`fd8e33e`](https://github.com/callstack/repack/commit/fd8e33e587e4a2866087aeea266b6f809562a5f2) Thanks [@dannyhw](https://github.com/dannyhw)! - Update `image-size` to v2 and `fastify` to 5.12.5 to resolve security advisories + +- [#1493](https://github.com/callstack/repack/pull/1493) [`32c32c0`](https://github.com/callstack/repack/commit/32c32c0660650b559ed61312a9eb29fc5f328235) Thanks [@whydidoo](https://github.com/whydidoo)! - Make SWC JSX development transforms follow the build mode. `getSwcLoaderOptions` (and `getJsTransformRules`) tied `jsc.transform.react.development` to the JSX runtime, so development builds with the default `automatic` runtime emitted `jsx` instead of `jsxDEV` and lost `__source` / `__self`, accurate component stacks and "open in editor", while `classic` production builds kept them. `getSwcLoaderOptions` no longer sets `jsc.transform.react.development` by default, so Rspack's `builtin:swc-loader` derives it from `mode`, and development builds with the `automatic` runtime now import `/jsx-dev-runtime`. Both helpers accept a `development` option to override it, e.g. `getJsTransformRules({ swc: { development: false } })` when a custom `importSource` doesn't ship a `jsx-dev-runtime` entry. +- Updated dependencies [[`44431b3`](https://github.com/callstack/repack/commit/44431b3cea3bca36de9cfb493221f11f3892a1c8), [`fd8e33e`](https://github.com/callstack/repack/commit/fd8e33e587e4a2866087aeea266b6f809562a5f2)]: + - @callstack/repack-dev-server@5.4.3 + ## 5.4.2 ### Patch Changes diff --git a/packages/repack/package.json b/packages/repack/package.json index 09e1f32d6..6f4e856ac 100644 --- a/packages/repack/package.json +++ b/packages/repack/package.json @@ -1,6 +1,6 @@ { "name": "@callstack/repack", - "version": "5.4.2", + "version": "5.4.3", "description": "A toolkit to build your React Native application with Rspack or Webpack.", "type": "commonjs", "main": "./dist/index.js",