Commit Graph

22100 Commits

Author SHA1 Message Date
Rostislav Wolny
a55725838d Update list of dependencies skipped by the update script
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
03b50bd2f5 Add mock for @woocommerce/settings module
Previously this module was mocked as an empty module, but
after updating @woocommerce/currency we need to provide at
least getSetting function.

The function is called only once with the parameter 'currency'.

I tried installing the full @woocommerce/settings, but it requires
complex initialization (e.g. passing some data from PHP). I find it
better to provide this simple mock and throw an error if it is used more than expected.
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
836772b5bb Pnpm dedupe
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
b83a2188e0 Remove deprecated @babel/plugin-proposal-nullish-coalescing-operator
It was replaced by @babel/plugin-transform-nullish-coalescing-operator
and it is already part of  @babel/preset-env
https://babeljs.io/docs/babel-plugin-transform-nullish-coalescing-operator

[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
922dd93961 Remove deprecated @babel/plugin-proposal-class-properties
It was replaced by @babel/plugin-transform-class-properties
Which is already part of  @babel/preset-env
See https://babeljs.io/docs/babel-plugin-transform-class-properties
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
1d32461b3d Workaround for the issue with chai v5 and ES modules
I couldn't make it work with the Babel loader. There is a possible
solution using ts-node as a loader. I didn't want to install another
package, so I chose a different workaround.
mocha-env.mjs is processed as a module thanks to the suffix, and it
sets chai. expect globally, and then I updated tests to use the global expect.

Please see https://github.com/chaijs/chai/issues/1568
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
73434e1ef7 Workaround for legacy newsletter editor tests after updating chai
Chain newly has to be imported as module and doesn't support CommonJs
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
ca8f6c64d6 Copy buildLocalizeFn into the place of usage
After 3.0.0 the date-fn's package.json contains 'exports' propperty
which prevents us from including the buildLocalizeFn function via direct import form it's file.
Because everything that is not listed in 'exports' throws ModuleNotFound error.
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
bde68b868d Update @babel/preset-env from 7.16.11 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
fd8fd8560e Update url from 0.11.1 to 0.11.3
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
706bf3cf2a Update storybook-addon-performance from 0.17.1 to 0.17.3
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
89948771ad Update stylelint-scss from 5.1.0 to 6.3.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
e5a27dc466 Update sinon from 15.2.0 to 18.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
9e102c0eef Update react-datepicker from 4.16.0 to 6.9.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
24b0f1ba09 Update postcss-cli from 10.1.0 to 11.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
5eaa16c286 Update jsdom from 22.1.0 to 24.1.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
556c0d479b Update imports-loader from 4.0.1 to 5.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
9d349dad84 Update husky from 8.0.3 to 9.0.11
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
ccaaea40c4 Update expose-loader from 4.1.0 to 5.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
1417bd87d5 Update exports-loader from 4.0.0 to 5.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
be369a87ac Update date-fns from 2.30.0 to 3.6.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
39d34ac14a Update copy-webpack-plugin from 11.0.0 to 12.0.2
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
4bdfb91480 Update chai from 4.3.8 to 5.1.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
7aab32cdf3 Update @storybook/react from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
4010c196ce Update @storybook/builder-webpack5 from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
d974f55068 Update @storybook/addon-storysource from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
896962c7d1 Update @storybook/addon-links from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
ca0d1cf95a Update @storybook/addon-actions from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
22d7722bce Update wp-types from 3.62.4 to 3.65.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
f2dd6bdf2c Update webpack from 5.88.2 to 5.92.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
2eed2a7eb0 Update ts-loader from 9.4.4 to 9.5.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
2b98b79414 Update sass from 1.66.1 to 1.77.5
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
846f2d042e Update react-select from 5.7.4 to 5.8.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
90407a1791 Update react-dom from 18.2.0 to 18.3.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
8e14bceb88 Update react from 18.2.0 to 18.3.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
f15b0bc3a2 Update moment from 2.29.4 to 2.30.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
5c25f2c0b8 Update mocha from 10.2.0 to 10.4.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
2326197214 Update eslint-plugin-check-file from 2.6.2 to 2.8.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
e22bf254be Update core-js from 3.32.1 to 3.37.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
213a426c02 Update classnames from 2.3.2 to 2.5.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
5bfef4e765 Update browserslist from 4.21.10 to 4.23.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
0c05b36976 Update @woocommerce/date from 4.2.0 to 4.3.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
82ff431304 Update @woocommerce/currency from 4.2.0 to 4.3.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
a69eb0245b Update @storybook/addons from 7.3.2 to 7.6.17
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
06e330dd41 Update @babel/runtime-corejs3 from 7.22.11 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
1d44bd7cc6 Update @babel/runtime from 7.22.11 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
13929a841c Update @babel/register from 7.22.5 to 7.24.6
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
03b9a5665c Update @babel/preset-typescript from 7.22.11 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
e37517ed52 Update @babel/preset-react from 7.22.5 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
3551604d13 Update @babel/plugin-transform-runtime from 7.22.10 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00