Skip to content

Commit d7166c6

Browse files
committed
minor #1348 chore: Rewrite changelog for 5.0.0 (Kocal)
This PR was merged into the main branch. Discussion ---------- chore: Rewrite changelog for 5.0.0 | Q | A | ------------- | --- | Bug fix? | yes/no | New feature? | yes/no <!-- please update CHANGELOG.md file --> | Deprecations? | yes/no <!-- please update CHANGELOG.md file --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility. --> Commits ------- dc91cf8 chore: Rewrite changelog for 5.0.0
2 parents 15ad6a9 + dc91cf8 commit d7166c6

File tree

1 file changed

+57
-32
lines changed

1 file changed

+57
-32
lines changed

CHANGELOG.md

+57-32
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## UNRELEASED
3+
## 5.0.0
44

55
This is a new major version that contains several backwards-compatibility breaks.
66

@@ -16,35 +16,6 @@ This is a new major version that contains several backwards-compatibility breaks
1616

1717
* #1307 Drop `webpack-cli` 4 support, only `webpack-cli` ^5.1.4 is supported (@Kocal)
1818

19-
* #1308 Drop Vue 2 support (End-Of-Life), only Vue 3 is supported (@Kocal)
20-
21-
* #1309 Drop ESLint integration (@Kocal)
22-
23-
* #1313 Drop `clean-webpack-plugin` in favor of webpack's `output.clean` configuration. The
24-
configuration settings supported by `Encore.cleanupOutputBeforeBuild` have changed (@stof)
25-
26-
* #1317 Drop support of sass-loader ^13 and ^14, add support for sass-loader ^16 (@Kocal)
27-
28-
The sass-loader's options have changed, [the `modern` options](https://sass-lang.com/documentation/js-api/interfaces/options) are now used by default.
29-
Though not recommended,
30-
you must specify the option `api: 'legacy'`
31-
if you want to keep [the `legacy` options](https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/).
32-
For example:
33-
```js
34-
// With the legacy API:
35-
Encore.enableSassLoader((options) => {
36-
options.api = 'legacy';
37-
options.includePaths = [/*...*/];
38-
});
39-
40-
// With the modern API (default):
41-
Encore.enableSassLoader((options) => {
42-
options.loadPaths = [/*...*/];
43-
});
44-
```
45-
46-
* #1324 Drop css-minimizer-webpack-plugin 5 support, only css-minimizer-webpack-plugin 7 is supported (@Kocal)
47-
4819
* #1318 Drop webpack-dev-server 4 support, only webpack-dev-server 5 is supported (@Kocal)
4920

5021
The dev-server options have changed between versions 4 and 5, see [the official migration guide to v5](https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md).
@@ -78,9 +49,9 @@ Encore.configureDevServerOptions((options) => {
7849
});
7950
```
8051

81-
* #1336 Make webpack-dev-server optional (@Kocal)
52+
* #1336 Make `webpack-dev-server` dependency optional (@Kocal)
8253

83-
The `webpack-dev-server` package is now an optional peer dependency.
54+
The `webpack-dev-server` package is now an optional peer dependency.
8455
It has been removed because some projects may not use it, and it was installing a bunch of unnecessary dependencies.
8556

8657
Removing the `webpack-dev-server` dependency from Encore reduces the number of dependencies from **626** to **295** (**-331**!),
@@ -95,8 +66,37 @@ yarn add webpack-dev-server --dev
9566
pnpm install webpack-dev-server --save-dev
9667
```
9768

69+
* #1308 Drop Vue 2 support (End-Of-Life), only Vue 3 is supported (@Kocal)
70+
71+
* #1309 Drop ESLint integration (@Kocal)
72+
73+
* #1313 Drop `clean-webpack-plugin` in favor of webpack's `output.clean` configuration. The
74+
configuration settings supported by `Encore.cleanupOutputBeforeBuild` have changed (@stof)
75+
76+
* #1324 Drop `css-minimizer-webpack-plugin` 5 support, only `css-minimizer-webpack-plugin` 7 is supported (@Kocal)
77+
9878
* #1342 Replace [`assets-webpack-plugin`](https://github.com/ztoben/assets-webpack-plugin) dependency by an internal plugin, to generate `entrypoints.json` file (@Kocal)
9979

80+
* #1317 Drop support of sass-loader ^13 and ^14, add support for sass-loader ^16 (@Kocal)
81+
82+
The sass-loader's options have changed, [the `modern` options](https://sass-lang.com/documentation/js-api/interfaces/options) are now used by default.
83+
Though not recommended,
84+
you must specify the option `api: 'legacy'`
85+
if you want to keep [the `legacy` options](https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/).
86+
For example:
87+
```js
88+
// With the legacy API:
89+
Encore.enableSassLoader((options) => {
90+
options.api = 'legacy';
91+
options.includePaths = [/*...*/];
92+
});
93+
94+
// With the modern API (default):
95+
Encore.enableSassLoader((options) => {
96+
options.loadPaths = [/*...*/];
97+
});
98+
```
99+
100100
* #1319 Drop support of css-loader ^6, add support for css-loader ^7.1 (@Kocal)
101101

102102
Since [`css-loader` 7.0.0](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#700-2024-04-04),
@@ -129,6 +129,31 @@ config.configureCssLoader(options => {
129129
> until https://github.com/vuejs/vue-loader/pull/1909 is merged and released, you will need to restore the previous
130130
> behavior by configuring Encore with the code above.
131131
132+
* #1333 Replace `chalk` by `picocolors` (@Kocal)
133+
134+
### Internal
135+
136+
* #1325 Remove no-op argument (@stof)
137+
138+
* #1327 Fix compat with configuring the devserver server as a string (@stof)
139+
140+
* #1328 Remove non-existent option in our package-up utility (@stof)
141+
142+
* #1329 Read the controllers.json as string rather than Buffer (@stof)
143+
144+
* #1330 Add some types in the internal implementation of Encore (@stof)
145+
146+
* #1331 test(deps): replace Zombie by Puppeteer (@Kocal)
147+
148+
* #1332 Upgrade locked dependencies (@stof)
149+
150+
* #1334 Upgrade the version of stylus used in dev (@stof)
151+
152+
* #1335 Fix ESLint warning (@stof)
153+
154+
* #1339 Add PR template (@Kocal)
155+
156+
* #1343 Add tests for CSS Modules with React and Preact (@Kocal)
132157

133158
## 4.7.0
134159

0 commit comments

Comments
 (0)