Releases: callstack/repack
4.1.0
Important updates
This update brings full support for bridgeless mode when using new architecture of React Native 🎉
Minor Changes
Patch Changes
4.0.0
Important updates
Re.Pack 4.0.0 is here 🎉
Check out Migration Guide in our fresh new docs at https://re-pack.dev
This release also marks the beginning of unified versioning for all Re.Pack packages
Special thanks to everyone involved in this release! 🙏
@thymikee @RafikiTiki @szymonrybczak @teneeto @troZee @kerm1it @krozniata @hosseinmd @lukemorawski
Major Changes
-
#430
0d96b11
Thanks @jbroma! - Upgrade to Node 18, drop support for Node 16 -
#530
470a7c1
Thanks @jbroma! - RemoveReactRefreshPlugin
in favor ofDevelopmentPlugin
-
#435
63d973f
Thanks @jbroma! -CodeSigningPlugin
no longer acceptsoutputPath
property as configuration option, performs the code-signing in-place and integrates nicely with OutputPlugin -
#537
6fa32cb
Thanks @jbroma! - Override the defaultstart
andbundle
CLI commands for enhanced functionality and compatibility withreact-native
versions >= 0.74. Additionally, this update ensures that runningreact-native run-ios
orreact-native run-android
will launch the Re.Pack dev server by default instead of the Metro dev server. -
#525
a74930b
Thanks @jbroma! -getResolveOptions
is now way more compatible withmetro-resolver
and@react-native/metro-config
getResolveOptions
now accepts a second optional parameter called options with the following properties:enablePackageExports
- defaults tofalse
preferNativePlatform
- defaults totrue
- Order of extensions was changed to match the order from
@react-native/metro-config
. - Resolution via Package Exports (
exports
field in package.json) is now optional and disabled by default.
It can now be enabled viagetResolveOptions
options parameter. This change was introduced to matchmetro
defaults. - Default
conditionNames
are now:['require', 'import', 'react-native']
and match@react-native/metro-config
defaults.
-
#495
50a7257
Thanks @troZee! - Add support for New Architecture -
#508
fec8962
Thanks @RafikiTiki! - Fixed deprecated remote debugger integration:- Removed vendored code and used middlewares from
@react-native-community/cli-server-api
- Removed
package/debugger-app
and replaced it with@react-native-community/cli-debugger-ui
- Removed vendored code responsible for integration with Flipper debugger & custom implementation of the Hermes Inspector Proxy
- Added integration with
@react-native/dev-middleware
which enables us to use both Flipper and new experimental debugger
- Removed vendored code and used middlewares from
Minor Changes
-
#539
8270cb7
Thanks @jbroma! - OutputPlugin now supports configuration with empty object as compilation entry -
#582
24585c0
Thanks @jbroma! - Uselocalhost
as a defined default for the dev-server -
#508
fec8962
Thanks @RafikiTiki! - Added pass-throughexperimentalDebugger
flag to CLI commands to ensure compatibility with Metro and new experimental debugger for React Native
Patch Changes
-
#580
b6c68dc
Thanks @jbroma! - Make Re.Pack compatible with use_frameworks! -
#491
ebf1b19
Thanks @hosseinmd! - Log error before exit during bundling -
#499
15ffcba
Thanks @jbroma! - Support non-classic(e.g. pnpm) paths to HMRClient from react-native -
#496
a59b8ed
Thanks @krozniata! - Remove duplicated React-Core dependency from podspec -
#588
b30bca0
Thanks @jbroma! - Keep separate logs for compilation stats specific to each platform -
#612
b6eb0ea
Thanks @jbroma! - Update templates to include.cjs
and.mjs
extensions -
#579
06a4da8
Thanks @jbroma! - IncludeNativeScriptManger.ts
in distributed files for codegen -
#574
bab94bf
Thanks @jbroma! - Fix dev server crash caused by uninitialized progress senders -
#555
8fe92be
Thanks @jbroma! - FixgetDirname
utility function on Windows -
#596
b5ae6ac
Thanks @jbroma! - Fix crash when using Node >= 21 for bundling in development -
#556
6c09015
Thanks @jbroma! - Updatewebpack.config
templates -
#515
ee1cc79
Thanks @jbroma! - Usedone
hook inside ofOutputPlugin
-
#572
b134936
Thanks @jbroma! - Always match .json extension last during module resolution -
#464
72c770b
Thanks @jbroma! - Upgrade TypeScript, ESLint, TypeDoc in the repository -
#567
6417da7
Thanks @kerm1it! - Notify clients on all platforms when sending an HMR event update -
#554
ed82e29
Thanks @jbroma! - Fix path tofavicon.ico
on Windows
4.0.0-rc.2
Minor Changes
Patch Changes
-
#580
b6c68dc
Thanks @jbroma! - makecallstack-repack
pod compatible with use_frameworks! -
#579
06a4da8
Thanks @jbroma! - includeNativeScriptManger.ts
for codegen -
#574
bab94bf
Thanks @jbroma! - fix dev server crash caused by uninitialized progress senders -
#572
b134936
Thanks @jbroma! - always match .json extension last
4.0.0-rc.1
Important Updates
You can now use @callstack/repack-init
to use pre-releases like this one:
npx @callstack/repack-init@rc --custom-version 4.0.0-rc.1
Minor Changes
Patch Changes
4.0.0-rc.0
Important Updates
- We are deprecating
@callstack/repack-debugger-app
in this version and plan to remove it entirely in the next major release. We are currently working on supporting the new debugger. - Unified Package Versioning: This release marks the beginning of unified versioning for all Re.Pack packages
Major Changes
-
#430
0d96b11
Thanks @jbroma! - BREAKING CHANGE:Upgrade to Node 18, drop support for Node 16.
-
#530
470a7c1
Thanks @jbroma! - BREAKING CHANGE:ReactRefreshPlugin
was removed.If you were using
ReactRefreshPlugin
, please switch toDevelopmentPlugin
moving forward.
Users ofRepackPlugin
can continue as is, with no changes required. -
#435
63d973f
Thanks @jbroma! - BREAKING CHANGE:CodeSigningPlugin no longer accepts
outputPath
property as configuration option. Instead, it performs the code-signing in-place and integrates nicely with OutputPlugin. -
#537
6fa32cb
Thanks @jbroma! - BREAKING CHANGE:Re.Pack commands now override the default
start
andbundle
CLI commands for enhanced functionality and compatibility withreact-native
versions >= 0.74. For earlier versions ofreact-native
(< 0.74), the traditional commandswebpack-start
andwebpack-bundle
remain available and recommended.This change primarily impacts setups where both Metro and Re.Pack are used simultaneously.
To maintain your current workflow without adopting these overrides, especially to avoid conflicts in projects using both Metro and Re.Pack, you can opt out by filtering out the new command names and reverting to the legacy
webpack
prefixed commands:// react-native.config.js const commands = require('@callstack/repack/commands'); module.exports = { commands: commands.filter((command) => command.name.startsWith('webpack')), };
Additionally, this update ensures that running
react-native run-ios
orreact-native run-android
will launch the Re.Pack dev server by default instead of the Metro dev server. -
#525
a74930b
Thanks @jbroma! - BREAKING CHANGE:getResolveOptions
is now way more compatible withmetro-resolver
and@react-native/metro-config
getResolveOptions
now accepts a second optional parameter called options with the following properties:enablePackageExports
- defaults tofalse
preferNativePlatform
- defaults totrue
- Order of extensions was changed to match the order from
@react-native/metro-config
. - Resolution via Package Exports (
exports
field in package.json) is now optional and disabled by default.
It can now be enabled viagetResolveOptions
options parameter. This change was introduced to matchmetro
defaults. - Default
conditionNames
are now:['require', 'import', 'react-native']
and match@react-native/metro-config
defaults.
-
#495
50a7257
Thanks @troZee and @teneeto for prior work! - Support for New Architecture
Minor Changes
- #539
8270cb7
Thanks @jbroma! - OutputPlugin now supports configuration with empty object as compilation entry.
Patch Changes
-
#491
ebf1b19
Thanks @hosseinmd! - log error before exit when compilation has error -
#499
15ffcba
Thanks @jbroma! - Support non-classic(pnpm) paths to HMRClient from react-native -
#496
a59b8ed
Thanks @krozniata! - Remove duplicated React-Core dependency from podspec -
#515
ee1cc79
Thanks @jbroma! - Usedone
hook inside ofOutputPlugin
-
#464
72c770b
Thanks @jbroma! - chore: upgrade TypeScript, ESLint, TypeDoc -
Updated dependencies [
0d96b11
,72c770b
]:- @callstack/[email protected]
3.7.0
3.7.0
Summary
This release has two main changes:
- compatibility with the latest React Native release (0.73.x)
- improvement in terms of webpack builds caching
Minor Changes
- #477
e1476e6
Thanks @szymonrybczak! - fix: get commands options and description from new package (support RN>=0.73)
Patch Changes
-
#479
b1ad518
Thanks @ambar! - Added the ability to fully leverage the webpack built-in caching mechanism to optimise cold build times. -
Updated dependencies [
cc997a2
]:- @callstack/[email protected]
repack-dev-server 1.1.0
1.1.0
Minor Changes
- #475
cc997a2
Thanks @szymonrybczak! - Added X-React-Native-Project-Root header, so the RN CLI picks up the running bundler correctly
3.6.0
3.6.0
📖 Learn more about what Lazy Compilation is and how to use it:
https://re-pack.netlify.app/docs/configuration/guides/lazy-compilation
Minor Changes
3.5.1
3.5.0
3.5.0
Minor Changes
- #265
a288e1a
Thanks @justusburger! - Ensure file lists in manifests are sorted
- #421
7deea25
Thanks @jbroma! - Add builtin support for react-native deep imports when using Module Federation
Patch Changes
-
#343
0141fc1
Thanks @piccinnigius! - Fix ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows -
Updated dependencies [
a66785d
,719c2ef
]:- @callstack/[email protected]