Skip to content

Releases: callstack/repack

3.1.1

07 Mar 08:46
0b8884b
Compare
Choose a tag to compare

All packages

Patch Changes

Repack

Patch Changes

Dashboard

Patch Changes

TesterApp

Patch Changes

3.1.0

25 Jan 11:29
Compare
Choose a tag to compare

Minor Changes

  • #287 47bdd09 Thanks @andrewworld!

    A new optional callback shouldUpdateScript was added. It could be passed into so-called locator config in addResolver callback function return statement. Its main usage would be to ask a user whether they want to download the latest update of Federated Scripts or not (for example – if they are not connected to wifi and they would rather save their cellular data).

    shouldUpdateScript?: (
        scriptId?: string,
        caller?: string,
        isScriptCacheOutdated?: boolean
    ) => Promise<boolean> | boolean;
    

    More info and a set of examples describing what are the intended usages of this API will be published soon in a form of a guide in Repack docs. For now, if you're interested in playing with this API please refer to the linked PR or to the API docs

Patch Changes

  • #288 7e0092e Thanks @RafikiTiki! - Fix #258 – previously entryName config value was not passed from RepackPlugin to the OutputPlugin.

3.0.1

13 Dec 11:47
48631d1
Compare
Choose a tag to compare

Summary

This release resolves two issues related to Windows platform and adds two QoL improvements.

Windows related issues:

  • Fix for path formatting on Windows platform breaking assetsCache in development Compiler

  • #255 d974069 Thanks @meypod! - Fix v3 debugger-app not working on Windows platform

Quality of life improvements:

Release 3.0.0

16 Sep 12:13
Compare
Choose a tag to compare

Highlights

  • support Module Federation out of the box inside @callstack/repack package - see detailed CHANGELOG
  • introduce ScriptManager which handles loading local and remote scripts
  • custom ModuleFederationPlugin which support for remote@location syntax
  • support for CJS and ESM versions of Webpack config
  • introduce @callstack/repack-dev-server package - see detailed CHANGELOG
  • introduce @callstack/repack-debugger-app package - see detailed CHANGELOG

Breaking changes

  • Webpack configuration in webpack.config
  • refactored ChunkManager into ScriptManager

To see how to migrate from V2 check migration guide

Changelog

See detailed changelog

@callstack/repack

  • 1c29413 [email protected] (detailed CHANGELOG)

    • Expose --reverse-port argument in start command to fix dev server on Android 9960a7b
    • Pass SHARE_ENV to Worker to keep process envs from parent process 4bfeab1
    • TesterApp was refactored to ephasize relavant logic as clear as possible 3b5eb32
  • eadd108 [email protected] (detailed CHANGELOG)

    • Custom Module Federation plugin - Repack.plugins.ModuleFederationPlugin b588690:
      • Add custom ModuleFederationPlugin plugin with defaults for React Native
      • automatic remotes conversion to promise new Promise (via Federated.createRemote)
      • support for remote@location syntax
    • Priority for resolvers in ScriptManager b588690
  • 884e614 [email protected] (detailed CHANGELOG)

    • Prevent importModule from crashing with cannot read property __isInitialized of undefined ecf7829
    • Fix bi-directional imports in Module Federation 4e15c38
  • 1d70683 [email protected] (detailed CHANGELOG)

    • ScriptManager adjustments fa097f7:
      • Added ability to provide multiple resolvers to ScriptManager using ScriptManager.shared.addResolver
      • Removed ScriptManager.configure and split the functionality into ScriptManager.shared.setStore and ScriptManager.shared.addResolver
      • Added methods to remove a single resolver and to remove all resolvers
      • Returning undefined from a resolver will cause next resolver in line to be used (as long as other resolvers were added), if no resolver processed the request the error is thrown.
  • 6f560fd [email protected] (detailed CHANGELOG)

    • Module Federation 96a6b27:
      • Keep track of initialized remote containers to prevent performance degradation and crashes.
  • f544464 [email protected] (detailed CHANGELOG)

    • Assets loader b088203:
      • Add inline: boolean option to @callstack/repack/assets-loader.
      • Add support for calculating width, height and scale for inlined assets.
      • Add support for inlining multiple scales.
  • a067171 [email protected] (detailed CHANGELOG)

    • Added implementation for API functionalities in @callstack/repack-dev-server:
      • GET /api/platforms - List all platforms with active compilations
      • GET /api/:platform/assets - List all assets (name and size) for a given compilation
      • GET /api/:platform/stats - Get Webpack compilation stats
      • Websocket server under /api URI for logs and compilations events
  • 04fe409 [email protected] (detailed CHANGELOG)

    • HMR:
      • Upgraded @pmmmwh/react-refresh-webpack-plugin to 0.5.7 and added react-refresh@^0.14.0 as a @callstack/repack dependency.
      • RepackTargetPlugin now requires to pass hmr?: boolean property to a constructor - only relevant, if you're not using RepackPlugin
  • 05d126e [email protected] (detailed CHANGELOG)

    • ScriptManager:
    • Webpack improvements:
      • All Repack plugins are consolidated under single RepackPlugin, all sub-plugins are available under plugins
      • Added support for CJS and ESM versions of Webpack config
      • Added CJS and ESM templates for Webpack config
    • CLI:
      • Added --silent option to webpack-start command to silent all logs
      • Added --log-file <path> option to webpack-start command to log all messages to a file
      • Added --json webpack-start command to log all messages as JSON

@callstack/dev-server-repack

Release 2.5.2

14 Jan 16:44
Compare
Choose a tag to compare

2.5.2 (2022-01-14)

Bug Fixes

  • replace process.env.PUBLIC_PORT with PUBLIC_PORT (#145) (02f2614)

Release 2.5.1

15 Nov 16:06
Compare
Choose a tag to compare

2.5.1 (2021-11-15)

Bug Fixes

  • absolute flag and promise resolving inside the file system chunk loader (#134) (f62a307)
  • pointer to bool conversion in chunk config on iOS (#132) (e78640f)
  • scalable asset resolution (#133) (2000578)

Release 2.5.0

29 Oct 15:44
Compare
Choose a tag to compare

2.5.0 (2021-10-29)

Bug Fixes

  • add default value for the local chunk check (#124) (170ee96)
  • add missing remoteChunksOutput option to the template (#123) (083754f)

Features

  • add chunk request timeout and absolute flag for URL (#126) (21bfdd5)
  • advanced fetching options for remote chunks (#108) (b11bc23)

Release 2.4.2

21 Oct 09:49
Compare
Choose a tag to compare

2.4.2 (2021-10-21)

Bug Fixes

  • source map for main bundle (#120) (d5549cb)
  • updated links in readme to rebranded repack/ repo (#118) (8213303)

Release 2.4.1

12 Oct 14:30
Compare
Choose a tag to compare

2.4.1 (2021-10-12)

Bug Fixes

  • add missing events dependency (6c48f06)
  • update require_relative path to node_modules in TesterApp (#117) (b14d5ce)

Release 2.4.0

08 Oct 11:13
Compare
Choose a tag to compare

2.4.0 (2021-10-08)

Bug Fixes

  • prevent crash when using custom Webpack path (#109) (472f830)
  • source map output for remote chunks (#113) (7f55283)

Features

  • add repack bootstrap code to await chunk loading (#101) (5785972)
  • adjust source mapping info in bundles, source maps and manifest files (#112) (ffdd941)
  • allow to trigger compilation from dashboard (#103) (ebc787b)
  • show actual server logs count (#102) (94fb5d1)