[8.5] Upgrade loader-utils dependency (1.1.32.0.3). (#144879) (#144917)

# Backport

This will backport the following commits from `main` to `8.5`:
- [Upgrade `loader-utils` dependency (`1.1.3` → `2.0.3`).
(#144879)](https://github.com/elastic/kibana/pull/144879)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Aleh
Zasypkin","email":"aleh.zasypkin@elastic.co"},"sourceCommit":{"committedDate":"2022-11-09T16:25:15Z","message":"Upgrade
`loader-utils` dependency (`1.1.3` → `2.0.3`). (#144879)\n\n##
Summary\r\n\r\nUpgrade `loader-utils` dependency (`1.1.3` →
`2.0.3`).\r\n\r\nChange log
(`loader-utils`):\r\nhttps://github.com/webpack/loader-utils/blob/master/CHANGELOG.md#200-2020-03-17\r\n\r\n__Note
to reviewers:__ Change log isn't really helpful, and not all\r\nversions
are covered. The only important part is the list of the\r\nbreaking
changes in `2.0.0`:\r\n\r\n* 🟢 minimum required Node.js
version is 8.9.0 (sounds good)\r\n* 🟡 the `getOptions`
method returns empty object on empty\r\nquery (would be great if code
owners validate if it's okay, it looks\r\nlike theme_loader is the only
place where _we_ directly use this method)\r\n* 🟡 Use md4
by default (would be great if code owners\r\nvalidate if it's
okay)\r\n\r\ncc
@elastic/kibana-security","sha":"1213fa0bcd544e940f8d0add8886a7fa84777f7b","branchLabelMapping":{"^v8.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","backport:all-open","v8.6.0"],"number":144879,"url":"https://github.com/elastic/kibana/pull/144879","mergeCommit":{"message":"Upgrade
`loader-utils` dependency (`1.1.3` → `2.0.3`). (#144879)\n\n##
Summary\r\n\r\nUpgrade `loader-utils` dependency (`1.1.3` →
`2.0.3`).\r\n\r\nChange log
(`loader-utils`):\r\nhttps://github.com/webpack/loader-utils/blob/master/CHANGELOG.md#200-2020-03-17\r\n\r\n__Note
to reviewers:__ Change log isn't really helpful, and not all\r\nversions
are covered. The only important part is the list of the\r\nbreaking
changes in `2.0.0`:\r\n\r\n* 🟢 minimum required Node.js
version is 8.9.0 (sounds good)\r\n* 🟡 the `getOptions`
method returns empty object on empty\r\nquery (would be great if code
owners validate if it's okay, it looks\r\nlike theme_loader is the only
place where _we_ directly use this method)\r\n* 🟡 Use md4
by default (would be great if code owners\r\nvalidate if it's
okay)\r\n\r\ncc
@elastic/kibana-security","sha":"1213fa0bcd544e940f8d0add8886a7fa84777f7b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.6.0","labelRegex":"^v8.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/144879","number":144879,"mergeCommit":{"message":"Upgrade
`loader-utils` dependency (`1.1.3` → `2.0.3`). (#144879)\n\n##
Summary\r\n\r\nUpgrade `loader-utils` dependency (`1.1.3` →
`2.0.3`).\r\n\r\nChange log
(`loader-utils`):\r\nhttps://github.com/webpack/loader-utils/blob/master/CHANGELOG.md#200-2020-03-17\r\n\r\n__Note
to reviewers:__ Change log isn't really helpful, and not all\r\nversions
are covered. The only important part is the list of the\r\nbreaking
changes in `2.0.0`:\r\n\r\n* 🟢 minimum required Node.js
version is 8.9.0 (sounds good)\r\n* 🟡 the `getOptions`
method returns empty object on empty\r\nquery (would be great if code
owners validate if it's okay, it looks\r\nlike theme_loader is the only
place where _we_ directly use this method)\r\n* 🟡 Use md4
by default (would be great if code owners\r\nvalidate if it's
okay)\r\n\r\ncc
@elastic/kibana-security","sha":"1213fa0bcd544e940f8d0add8886a7fa84777f7b"}}]}]
BACKPORT-->
This commit is contained in:
Aleh Zasypkin 2022-11-09 19:17:53 +01:00 committed by GitHub
parent a6db757b62
commit 6c72909ab6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 12 deletions

View file

@ -1133,7 +1133,7 @@
"@types/kbn__yarn-lock-validator": "link:bazel-bin/packages/kbn-yarn-lock-validator/npm_module_types",
"@types/license-checker": "15.0.0",
"@types/listr": "^0.14.0",
"@types/loader-utils": "^1.1.3",
"@types/loader-utils": "^2.0.3",
"@types/lodash": "^4.14.159",
"@types/lru-cache": "^5.1.0",
"@types/lz-string": "^1.3.34",
@ -1324,7 +1324,7 @@
"license-checker": "^25.0.1",
"listr": "^0.14.1",
"lmdb-store": "^1.6.11",
"loader-utils": "^1.2.3",
"loader-utils": "^2.0.3",
"marge": "^1.0.1",
"micromatch": "^4.0.5",
"mini-css-extract-plugin": "1.1.0",

View file

@ -20,7 +20,7 @@ export default function (this: webpack.loader.LoaderContext) {
this.cacheable(true);
const options = getOptions(this);
const bundleId: string = options.bundleId!;
const bundleId = options.bundleId as string;
const themeTags = parseThemeTags(options.themeTags);
const cases = ALL_THEMES.map((tag) => {

View file

@ -7994,13 +7994,13 @@
"@types/node" "*"
rxjs "^6.5.1"
"@types/loader-utils@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@types/loader-utils/-/loader-utils-1.1.3.tgz#82b9163f2ead596c68a8c03e450fbd6e089df401"
integrity sha512-euKGFr2oCB3ASBwG39CYJMR3N9T0nanVqXdiH7Zu/Nqddt6SmFRxytq/i2w9LQYNQekEtGBz+pE3qG6fQTNvRg==
"@types/loader-utils@^2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@types/loader-utils/-/loader-utils-2.0.3.tgz#fbc2337358f8f4a7dc532ac0a3646c74275edf2d"
integrity sha512-sDXXzZnTLXgdso54/iOpAFSDgqhVXabCvwGAt77Agadh/Xk0QYgOk520r3tpOouI098gyqGIFywx8Op1voc3vQ==
dependencies:
"@types/node" "*"
"@types/webpack" "*"
"@types/webpack" "^4"
"@types/lodash@^4.14.159":
version "4.14.159"
@ -8802,7 +8802,7 @@
"@types/source-list-map" "*"
source-map "^0.6.1"
"@types/webpack@*", "@types/webpack@^4.4.31", "@types/webpack@^4.41.26", "@types/webpack@^4.41.3", "@types/webpack@^4.41.8":
"@types/webpack@*", "@types/webpack@^4", "@types/webpack@^4.4.31", "@types/webpack@^4.41.26", "@types/webpack@^4.41.3", "@types/webpack@^4.41.8":
version "4.41.32"
resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.32.tgz#a7bab03b72904070162b2f169415492209e94212"
integrity sha512-cb+0ioil/7oz5//7tZUSwbrSAN/NWHrQylz5cW8G0dWTcF/g+/dSdMlKVZspBYuMAN1+WnwHrkxiRrLcwd0Heg==
@ -19013,14 +19013,23 @@ loader-utils@2.0.0, loader-utils@^2.0.0:
json5 "^2.1.2"
loader-utils@^1.0.0, loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613"
integrity sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==
version "1.4.1"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.1.tgz#278ad7006660bccc4d2c0c1578e17c5c78d5c0e0"
integrity sha512-1Qo97Y2oKaU+Ro2xnDMR26g1BwMT29jNbem1EvcujW2jqt+j5COXyscjM7bLQkM9HaxI7pkWeW7gnI072yMI9Q==
dependencies:
big.js "^5.2.2"
emojis-list "^3.0.0"
json5 "^1.0.1"
loader-utils@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.3.tgz#d4b15b8504c63d1fc3f2ade52d41bc8459d6ede1"
integrity sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==
dependencies:
big.js "^5.2.2"
emojis-list "^3.0.0"
json5 "^2.1.2"
locate-path@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"