Releases: callstack/repack
3.2.0-rc.0
This Release candidate introduces a new feature – Code Signing. It allows you to sign your bundles during build time and verify them on the client side. This feature is currently in experimental mode and the implementation is subject to change. Once we are confident that the API is stable, we will release a stable version of this feature along with the documentation and examples.
Minor Changes
3.1.1
All packages
Patch Changes
Repack
Patch Changes
Dashboard
Patch Changes
- #306
0591da0
Thanks @grzegorzkruk! - Replace deprecated node-sass with sass package
TesterApp
Patch Changes
3.1.0
Minor Changes
-
#287
47bdd09
Thanks @andrewworld!A new optional callback
shouldUpdateScript
was added. It could be passed into so-called locator config inaddResolver
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
- #293
7eeca5e
Thanks @RafikiTiki! - Removed usage of deprecated jcenter repository frombuild.gradle
.
- #288
7e0092e
Thanks @RafikiTiki! - Fix #258 – previouslyentryName
config value was not passed fromRepackPlugin
to theOutputPlugin
.
- #294
28cc721
Thanks @RafikiTiki! - Updated kotlin-gradle-plugin version used by Repack to1.7.0
.
3.0.1
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 v3debugger-app
not working on Windows platform
Quality of life improvements:
Release 3.0.0
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 forremote@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 inwebpack.config
- refactored
ChunkManager
intoScriptManager
To see how to migrate from V2 check migration guide
Changelog
See detailed changelog
@callstack/repack
-
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 topromise new Promise
(viaFederated.createRemote
) - support for
remote@location
syntax
- Add custom
- Priority for resolvers in
ScriptManager
b588690
- Custom Module Federation plugin -
-
1d70683
[email protected] (detailed CHANGELOG)ScriptManager
adjustments fa097f7:- Added ability to provide multiple resolvers to
ScriptManager
usingScriptManager.shared.addResolver
Removed ScriptManager.configure
and split the functionality intoScriptManager.shared.setStore
andScriptManager.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.
- Added ability to provide multiple resolvers to
-
6f560fd
[email protected] (detailed CHANGELOG)- Module Federation 96a6b27:
- Keep track of initialized remote containers to prevent performance degradation and crashes.
- Module Federation 96a6b27:
-
f544464
[email protected] (detailed CHANGELOG)- Assets loader b088203:
- Add
inline: boolean
option to@callstack/repack/assets-loader
. - Add support for calculating
width
,height
andscale
for inlined assets. - Add support for inlining multiple scales.
- Add
- Assets loader b088203:
-
a067171
[email protected] (detailed CHANGELOG)- Added implementation for API functionalities in
@callstack/repack-dev-server
:GET /api/platforms
- List all platforms with active compilationsGET /api/:platform/assets
- List all assets (name
andsize
) for a given compilationGET /api/:platform/stats
- Get Webpack compilation stats- Websocket server under
/api
URI for logs and compilations events
- Added implementation for API functionalities in
-
04fe409
[email protected] (detailed CHANGELOG)- HMR:
- Upgraded
@pmmmwh/react-refresh-webpack-plugin
to0.5.7
and addedreact-refresh@^0.14.0
as a@callstack/repack
dependency. RepackTargetPlugin
now requires to passhmr?: boolean
property to a constructor - only relevant, if you're not usingRepackPlugin
- Upgraded
- HMR:
-
05d126e
[email protected] (detailed CHANGELOG)ScriptManager
:- Refactored
ChunkManager
intoScriptManager
- see detailed CHANGELOG for more details
- Refactored
Webpack
improvements:- All Repack plugins are consolidated under single
RepackPlugin
, all sub-plugins are available underplugins
- Added support for CJS and ESM versions of Webpack config
- Added CJS and ESM templates for Webpack config
- All Repack plugins are consolidated under single
- CLI:
- Added
--silent
option towebpack-start
command to silent all logs - Added
--log-file <path>
option towebpack-start
command to log all messages to a file - Added
--json
webpack-start
command to log all messages as JSON
- Added
@callstack/dev-server-repack
-
6f560fd
[email protected] ( detailed CHANGELOG)- Prevent server logger from emitting log to API WS server before WS servers are created c75cdc7
-
04fe409
[email protected] ( detailed CHANGELOG)- Added API endpoints to
@callstack/repack-dev-server
:GET /api/platforms
- List all platforms with active compilationsGET /api/:platform/assets
- List all assets (name
andsize
) for a given compilationGET /api/:platform/stats
- Get compilation stats- Websocket server under
/api
URI for logs and compilations events
- Added API endpoints to
-
05d126e
[email protected] ( detailed CHANGELOG)- Extracted development server from
@callstack/repack
into a separate package and made it bundler-agnostic.
- Extracted development server from