Skip to content

Commit e1b82ab

Browse files
committed
release: 4.0.0-rc.0
1 parent a9eb974 commit e1b82ab

9 files changed

Lines changed: 125 additions & 7 deletions

File tree

.changeset/pre.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"mode": "pre",
3+
"tag": "rc",
4+
"initialVersions": {
5+
"metro-compat-test": "0.0.1",
6+
"testerapp": "0.1.7",
7+
"@callstack/repack-debugger-app": "1.0.2",
8+
"@callstack/repack-dev-server": "1.1.0",
9+
"@callstack/repack-init": "1.1.0",
10+
"@callstack/repack": "3.7.0",
11+
"website": "0.0.1"
12+
},
13+
"changesets": [
14+
"bright-pillows-argue",
15+
"dry-trains-join",
16+
"early-carrots-travel",
17+
"early-radios-grow",
18+
"fast-geckos-wonder",
19+
"good-planes-confess",
20+
"grumpy-tigers-eat",
21+
"honest-wolves-act",
22+
"kind-scissors-kick",
23+
"shiny-planes-hope",
24+
"warm-numbers-doubt",
25+
"yellow-spiders-smash"
26+
]
27+
}

packages/TesterApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"serve-remote-assets:ios": "pnpm http-server -p 9999 build/output/ios/remote"
1515
},
1616
"dependencies": {
17-
"@callstack/repack": "3.7.0",
17+
"@callstack/repack": "4.0.0-rc.0",
1818
"@react-native-async-storage/async-storage": "^1.21.0",
1919
"lodash.throttle": "^4.1.1",
2020
"react": "18.2.0",

packages/dev-server/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @callstack/repack-dev-server
22

3+
## 4.0.0-rc.0
4+
5+
### Major Changes
6+
7+
- [#430](https://github.com/callstack/repack/pull/430) [`0d96b11`](https://github.com/callstack/repack/commit/0d96b11ff3a6e2c21eb622e21ff7947db29a3272) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE: Upgrade to Node 18, drop support for Node 16.
8+
9+
### Patch Changes
10+
11+
- [#464](https://github.com/callstack/repack/pull/464) [`72c770b`](https://github.com/callstack/repack/commit/72c770bb4ac5540a3c73cf244ca861069a37b045) Thanks [@jbroma](https://github.com/jbroma)! - chore: upgrade TypeScript, ESLint, TypeDoc
12+
313
## 1.1.0
414

515
### Minor Changes

packages/dev-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@callstack/repack-dev-server",
33
"description": "A bundler-agnostic development server for React Native applications as part of @callstack/repack.",
44
"license": "MIT",
5-
"version": "1.1.0",
5+
"version": "4.0.0-rc.0",
66
"type": "module",
77
"main": "./dist/index.js",
88
"types": "./dist/index.d.ts",

packages/init/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @callstack/repack-init
22

3+
## 4.0.0-rc.0
4+
5+
### Major Changes
6+
7+
- [#430](https://github.com/callstack/repack/pull/430) [`0d96b11`](https://github.com/callstack/repack/commit/0d96b11ff3a6e2c21eb622e21ff7947db29a3272) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE: Upgrade to Node 18, drop support for Node 16.
8+
9+
### Patch Changes
10+
11+
- [#464](https://github.com/callstack/repack/pull/464) [`72c770b`](https://github.com/callstack/repack/commit/72c770bb4ac5540a3c73cf244ca861069a37b045) Thanks [@jbroma](https://github.com/jbroma)! - chore: upgrade TypeScript, ESLint, TypeDoc
12+
313
## 1.1.0
414

515
### Minor Changes

packages/init/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Automates the integration of the @callstack/repack into React-Native projects",
44
"author": "Jakub Romańczyk <jakub.romanczyk@callstack.com>",
55
"license": "MIT",
6-
"version": "1.1.0",
6+
"version": "4.0.0-rc.0",
77
"homepage": "https://github.com/callstack/repack",
88
"repository": "github:callstack/repack",
99
"keywords": [

packages/repack/CHANGELOG.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,76 @@
11
# @callstack/repack
22

3+
## 4.0.0-rc.0
4+
5+
### Major Changes
6+
7+
- [#430](https://github.com/callstack/repack/pull/430) [`0d96b11`](https://github.com/callstack/repack/commit/0d96b11ff3a6e2c21eb622e21ff7947db29a3272) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE:
8+
9+
Upgrade to Node 18, drop support for Node 16.
10+
11+
- [#530](https://github.com/callstack/repack/pull/530) [`470a7c1`](https://github.com/callstack/repack/commit/470a7c1da6043904c82f53c2a0c82e73c438299a) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE:
12+
13+
`ReactRefreshPlugin` was removed.
14+
15+
If you were using `ReactRefreshPlugin`, please switch to `DevelopmentPlugin` moving forward.
16+
Users of `RepackPlugin` can continue as is, with no changes required.
17+
18+
- [#435](https://github.com/callstack/repack/pull/435) [`63d973f`](https://github.com/callstack/repack/commit/63d973ff4bae6f30f50a39a9f49095be4ce52967) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE:
19+
20+
CodeSigningPlugin no longer accepts `outputPath` property as configuration option. Instead, it performs the code-signing in-place and integrates nicely with OutputPlugin.
21+
22+
- [#537](https://github.com/callstack/repack/pull/537) [`6fa32cb`](https://github.com/callstack/repack/commit/6fa32cb575ea2c845a700511669fdcb5124acc4d) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE:
23+
24+
Re.Pack commands now override the default `start` and `bundle` CLI commands for enhanced functionality and compatibility with `react-native` versions >= 0.74. For earlier versions of `react-native` (< 0.74), the traditional commands `webpack-start` and `webpack-bundle` remain available and recommended.
25+
26+
This change primarily impacts setups where both Metro and Re.Pack are used simultaneously.
27+
28+
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:
29+
30+
```js
31+
// react-native.config.js
32+
const commands = require('@callstack/repack/commands');
33+
34+
module.exports = {
35+
commands: commands.filter((command) => command.name.startsWith('webpack')),
36+
};
37+
```
38+
39+
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.
40+
41+
- [#525](https://github.com/callstack/repack/pull/525) [`a74930b`](https://github.com/callstack/repack/commit/a74930bd4b5d704d35e182f7ddfea340a0a07793) Thanks [@jbroma](https://github.com/jbroma)! - BREAKING CHANGE:
42+
43+
`getResolveOptions` is now way more compatible with `metro-resolver` and `@react-native/metro-config`
44+
45+
1. `getResolveOptions` now accepts a second optional parameter called options with the following properties:
46+
- `enablePackageExports` - defaults to `false`
47+
- `preferNativePlatform` - defaults to `true`
48+
2. Order of extensions was changed to match the order from `@react-native/metro-config`.
49+
3. Resolution via Package Exports (`exports` field in package.json) is now optional and disabled by default.
50+
It can now be enabled via `getResolveOptions` options parameter. This change was introduced to match `metro` defaults.
51+
4. Default `conditionNames` are now: `['require', 'import', 'react-native']` and match `@react-native/metro-config` defaults.
52+
53+
- [#495](https://github.com/callstack/repack/pull/495) [`50a7257`](https://github.com/callstack/repack/commit/50a7257f1da9af44c5b6690c31408607d358b2e5) Thanks [@troZee](https://github.com/troZee)! - Support for New Architecture
54+
55+
### Minor Changes
56+
57+
- [#539](https://github.com/callstack/repack/pull/539) [`8270cb7`](https://github.com/callstack/repack/commit/8270cb7e2ccce9e2020517216e72302b6ba5833a) Thanks [@jbroma](https://github.com/jbroma)! - OutputPlugin now supports configuration with empty object as compilation entry.
58+
59+
### Patch Changes
60+
61+
- [#491](https://github.com/callstack/repack/pull/491) [`ebf1b19`](https://github.com/callstack/repack/commit/ebf1b19976edc603ebe4de992665d10a5bc30eaa) Thanks [@hosseinmd](https://github.com/hosseinmd)! - log error before exit when compilation has error
62+
63+
- [#499](https://github.com/callstack/repack/pull/499) [`15ffcba`](https://github.com/callstack/repack/commit/15ffcbabd9c9f0dadc3d91489d3b76c4cd80155f) Thanks [@jbroma](https://github.com/jbroma)! - Support non-classic(pnpm) paths to HMRClient from react-native
64+
65+
- [#496](https://github.com/callstack/repack/pull/496) [`a59b8ed`](https://github.com/callstack/repack/commit/a59b8ed4adab99f5e10024ae6f24ad18cdad791e) Thanks [@krozniata](https://github.com/krozniata)! - Remove duplicated React-Core dependency from podspec
66+
67+
- [#515](https://github.com/callstack/repack/pull/515) [`ee1cc79`](https://github.com/callstack/repack/commit/ee1cc7994cd1ae75d7a35faae6e0ac3ea36059b8) Thanks [@jbroma](https://github.com/jbroma)! - Use `done` hook inside of `OutputPlugin`
68+
69+
- [#464](https://github.com/callstack/repack/pull/464) [`72c770b`](https://github.com/callstack/repack/commit/72c770bb4ac5540a3c73cf244ca861069a37b045) Thanks [@jbroma](https://github.com/jbroma)! - chore: upgrade TypeScript, ESLint, TypeDoc
70+
71+
- Updated dependencies [[`0d96b11`](https://github.com/callstack/repack/commit/0d96b11ff3a6e2c21eb622e21ff7947db29a3272), [`72c770b`](https://github.com/callstack/repack/commit/72c770bb4ac5540a3c73cf244ca861069a37b045)]:
72+
- @callstack/repack-dev-server@4.0.0-rc.0
73+
374
## 3.7.0
475

576
### Minor Changes

packages/repack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@callstack/repack",
3-
"version": "3.7.0",
3+
"version": "4.0.0-rc.0",
44
"description": "A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -58,7 +58,7 @@
5858
"webpack": "5.x"
5959
},
6060
"dependencies": {
61-
"@callstack/repack-dev-server": "^1.1.0",
61+
"@callstack/repack-dev-server": "^4.0.0-rc.0",
6262
"@discoveryjs/json-ext": "^0.5.7",
6363
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
6464
"colorette": "^1.2.2",

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)