Skip to content

Releases: callstack/repack

5.0.0-rc.0

29 Oct 17:17
069107f
Compare
Choose a tag to compare
5.0.0-rc.0 Pre-release
Pre-release

Minor Changes

  • #674 9f4ad85 Thanks @jbroma! - Add support for Module Federation V2

  • #765 efff0c2 Thanks @jbroma! - Add default rules for transpiling popular flow typed packages

  • #702 495203d Thanks @jbroma! - Enable dev-server to serve source assets alongside build artifacts

  • #763 e433584 Thanks @thiagobrez! - Add getModulePaths utility to generate include and exclude paths for modules in the bundler config

  • #757 8a90731 Thanks @artus9033! - Display list of available interactions on dev server startup & add support for 'j' to debug

  • #753 176324a Thanks @artus9033! - Add support for React Native 0.76

  • #750 c4a3235 Thanks @jbroma! - Normalize filepath & ensure path exists when writing stats to a file

  • #734 b455503 Thanks @hexboy! - Add a mechanism for retrying downloads of scripts through retry and retryDelay properties

Patch Changes

4.3.3

12 Sep 09:59
039acb7
Compare
Choose a tag to compare

Patch Changes

5.0.0-alpha.0

12 Sep 13:46
849db95
Compare
Choose a tag to compare
5.0.0-alpha.0 Pre-release
Pre-release

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/[email protected]

Upgrading from Version 4:

  1. Open react-native.config.js and update the line:

    require('callstack/repack/commands')

    to:

    require('callstack/repack/commands/rspack')
  2. Install the necessary Rspack dependencies:

    npm install @rspack/core @rspack/plugin-react-refresh @swc/helpers --save-dev
  3. 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

28 Aug 12:26
e4e2fbe
Compare
Choose a tag to compare

Patch Changes

4.3.1

26 Aug 16:32
b7d8e6d
Compare
Choose a tag to compare

Important updates

--reset-cache flag is kept only for compatibility and has no effect.

Patch Changes

  • #714 bad76d7 Thanks @jbroma! - Fix missing --reset-cache flag for both start and bundle CLI commands

4.3.0

26 Aug 11:41
8c4f2d1
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #710 a467bb5 Thanks @jbroma! - Use compile-time check to determine React-Native version in WebpackHMRClient

  • #697 14550ab Thanks @jbroma! - Align CLI options for start and bundle commands with @react-native/community-cli-plugin.

  • #703 4de5305 Thanks @hexboy! - Fix LoadingView import in WebpackHMRClient for React Native >=0.75

4.2.0

12 Aug 10:40
Compare
Choose a tag to compare

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 b936d63 Thanks @jbroma! - Fix bundle caching after invalidating scripts

  • #683 8b07027 Thanks @jbroma! - Fix bundle naming collisions when using device filesystem cache

  • #641 c9eaef8 Thanks @jbroma! - Fix typing for methods exposed in native module

  • #651 a385b2b Thanks @adammruk! - Added 'assetPath' field to remote assets config, enabling granular control over the generated URL and server location to the asset

Patch Changes

4.1.1

07 Jun 11:25
Compare
Choose a tag to compare

Patch Changes

4.1.0

05 Jun 11:49
Compare
Choose a tag to compare

Important updates

This update brings full support for bridgeless mode when using new architecture of React Native 🎉

Minor Changes

Patch Changes

4.0.0

09 May 13:44
Compare
Choose a tag to compare

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! - Remove ReactRefreshPlugin in favor of DevelopmentPlugin

  • #435 63d973f Thanks @jbroma! - CodeSigningPlugin no longer accepts outputPath property as configuration option, performs the code-signing in-place and integrates nicely with OutputPlugin

  • #537 6fa32cb Thanks @jbroma! - Override the default start and bundle CLI commands for enhanced functionality and compatibility with react-native versions >= 0.74. Additionally, this update ensures that running react-native run-ios or react-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 with metro-resolver and @react-native/metro-config

    1. getResolveOptions now accepts a second optional parameter called options with the following properties:
      • enablePackageExports - defaults to false
      • preferNativePlatform - defaults to true
    2. Order of extensions was changed to match the order from @react-native/metro-config.
    3. Resolution via Package Exports (exports field in package.json) is now optional and disabled by default.
      It can now be enabled via getResolveOptions options parameter. This change was introduced to match metro defaults.
    4. 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

Minor Changes

  • #539 8270cb7 Thanks @jbroma! - OutputPlugin now supports configuration with empty object as compilation entry

  • #582 24585c0 Thanks @jbroma! - Use localhost as a defined default for the dev-server

  • #508 fec8962 Thanks @RafikiTiki! - Added pass-through experimentalDebugger flag to CLI commands to ensure compatibility with Metro and new experimental debugger for React Native

Patch Changes