Releases: callstack/repack
5.0.0-rc.0
Minor Changes
-
#674
9f4ad85Thanks @jbroma! - Add support for Module Federation V2 -
#765
efff0c2Thanks @jbroma! - Add default rules for transpiling popular flow typed packages -
#702
495203dThanks @jbroma! - Enable dev-server to serve source assets alongside build artifacts -
#763
e433584Thanks @thiagobrez! - Add getModulePaths utility to generate include and exclude paths for modules in the bundler config -
#757
8a90731Thanks @artus9033! - Display list of available interactions on dev server startup & add support for 'j' to debug -
#753
176324aThanks @artus9033! - Add support for React Native 0.76 -
#750
c4a3235Thanks @jbroma! - Normalize filepath & ensure path exists when writing stats to a file -
#734
b455503Thanks @hexboy! - Add a mechanism for retrying downloads of scripts throughretryandretryDelayproperties
Patch Changes
-
#711
7af6d5bThanks @jbroma! - fix: always use URL from Script config assourceUrlwhen evaluating bundles on Android -
#766
206d76fThanks @jbroma! - Fix handling of cjs,mjs,cts,mts files when transpiling node modules with swc -
#755
90faeebThanks @jbroma! - Disable package imports by default -
#756
f119ab3Thanks @hosseinmd! - Prevent to loadScript which is already is loading
issue: #749 -
#771
df1d587Thanks @hosseinmd! - script should be cached after successfully loaded
4.3.3
5.0.0-alpha.0
Important Notes
This release introduces long-awaited support for Rspack while maintaining full compatibility with webpack.
Try it Out:
To bootstrap a new project or migrate an existing project from Metro, run:
npx @callstack/repack-init@5.0.0-alpha.0
Upgrading from Version 4:
-
Open
react-native.config.jsand update the line:require('callstack/repack/commands')
to:
require('callstack/repack/commands/rspack')
-
Install the necessary Rspack dependencies:
npm install @rspack/core @rspack/plugin-react-refresh @swc/helpers --save-dev
-
Check out the new Rspack templates for configuration and migrate your existing Webpack configurations to Rspack:
MJS Template: rspack.config.mjs
CJS Template: rspack.config.cjs
Migration Guide: if you are migrating from Webpack to Rspack, refer to the official guide: Rspack Migration Guide
Major Changes
4.3.2
4.3.1
4.3.0
Minor Changes
Patch Changes
-
#710
a467bb5Thanks @jbroma! - Use compile-time check to determine React-Native version inWebpackHMRClient -
#697
14550abThanks @jbroma! - Align CLI options forstartandbundlecommands with@react-native/community-cli-plugin. -
#703
4de5305Thanks @hexboy! - FixLoadingViewimport inWebpackHMRClientfor React Native >=0.75
4.2.0
Important updates
This release includes fixes for bundle caching, naming collisions, and typing in the native module, along with the addition of an assetPath field for more control over remote assets.
You can read more about customising assetPath here: https://re-pack.dev/docs/guides/remote-assets#customizing-asset-path
Minor Changes
-
#680
b936d63Thanks @jbroma! - Fix bundle caching after invalidating scripts -
#683
8b07027Thanks @jbroma! - Fix bundle naming collisions when using device filesystem cache -
#641
c9eaef8Thanks @jbroma! - Fix typing for methods exposed in native module -
#651
a385b2bThanks @adammruk! - Added 'assetPath' field to remote assets config, enabling granular control over the generated URL and server location to the asset
Patch Changes
-
#679
d8924c6Thanks @jbroma! - Fix infinite loop when traversing the chunk graph in OutputPlugin -
#647
e51b7a6Thanks @jhso-dev! - Correctly parse platform from file URL -
#656
1e27ae5Thanks @barttom! - Improved descriptions of start and bundle command options -
#678
46f1eb4Thanks @jbroma! - Refactor OutputPlugin's chunk categorization algorithm -
#646
9c119dbThanks @jbroma! - Prevent infinite recursion when tracking down initial chunks in Output Plugin
4.1.1
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
0d96b11Thanks @jbroma! - Upgrade to Node 18, drop support for Node 16 -
#530
470a7c1Thanks @jbroma! - RemoveReactRefreshPluginin favor ofDevelopmentPlugin -
#435
63d973fThanks @jbroma! -CodeSigningPluginno longer acceptsoutputPathproperty as configuration option, performs the code-signing in-place and integrates nicely with OutputPlugin -
#537
6fa32cbThanks @jbroma! - Override the defaultstartandbundleCLI commands for enhanced functionality and compatibility withreact-nativeversions >= 0.74. Additionally, this update ensures that runningreact-native run-iosorreact-native run-androidwill launch the Re.Pack dev server by default instead of the Metro dev server. -
#525
a74930bThanks @jbroma! -getResolveOptionsis now way more compatible withmetro-resolverand@react-native/metro-configgetResolveOptionsnow accepts a second optional parameter called options with the following properties:enablePackageExports- defaults tofalsepreferNativePlatform- defaults totrue
- Order of extensions was changed to match the order from
@react-native/metro-config. - Resolution via Package Exports (
exportsfield in package.json) is now optional and disabled by default.
It can now be enabled viagetResolveOptionsoptions parameter. This change was introduced to matchmetrodefaults. - Default
conditionNamesare now:['require', 'import', 'react-native']and match@react-native/metro-configdefaults.
-
#495
50a7257Thanks @troZee! - Add support for New Architecture -
#508
fec8962Thanks @RafikiTiki! - Fixed deprecated remote debugger integration:- Removed vendored code and used middlewares from
@react-native-community/cli-server-api - Removed
package/debugger-appand 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-middlewarewhich enables us to use both Flipper and new experimental debugger
- Removed vendored code and used middlewares from
Minor Changes
-
#539
8270cb7Thanks @jbroma! - OutputPlugin now supports configuration with empty object as compilation entry -
#582
24585c0Thanks @jbroma! - Uselocalhostas a defined default for the dev-server -
#508
fec8962Thanks @RafikiTiki! - Added pass-throughexperimentalDebuggerflag to CLI commands to ensure compatibility with Metro and new experimental debugger for React Native
Patch Changes
-
#580
b6c68dcThanks @jbroma! - Make Re.Pack compatible with use_frameworks! -
#491
ebf1b19Thanks @hosseinmd! - Log error before exit during bundling -
#499
15ffcbaThanks @jbroma! - Support non-classic(e.g. pnpm) paths to HMRClient from react-native -
#496
a59b8edThanks @krozniata! - Remove duplicated React-Core dependency from podspec -
#588
b30bca0Thanks @jbroma! - Keep separate logs for compilation stats specific to each platform -
#612
b6eb0eaThanks @jbroma! - Update templates to include.cjsand.mjsextensions -
#579
06a4da8Thanks @jbroma! - IncludeNativeScriptManger.tsin distributed files for codegen -
#574
bab94bfThanks @jbroma! - Fix dev server crash caused by uninitialized progress senders -
#555
8fe92beThanks @jbroma! - FixgetDirnameutility function on Windows -
#596
b5ae6acThanks @jbroma! - Fix crash when using Node >= 21 for bundling in development -
#556
6c09015Thanks @jbroma! - Updatewebpack.configtemplates -
#515
ee1cc79Thanks @jbroma! - Usedonehook inside ofOutputPlugin -
#572
b134936Thanks @jbroma! - Always match .json extension last during module resolution -
#464
72c770bThanks @jbroma! - Upgrade TypeScript, ESLint, TypeDoc in the repository -
#567
6417da7Thanks @kerm1it! - Notify clients on all platforms when sending an HMR event update -
#554
ed82e29Thanks @jbroma! - Fix path tofavicon.icoon Windows