Skip to content

Commit 0bded1f

Browse files
Ikuni17elastic-renovate-prod[bot]kibanamachine
authored
[8.18] Update dependency ignore to v7 (main) (#203286) (#222708)
# Backport This will backport the following commits from `main` to `8.18`: - [Update dependency ignore to v7 (main) (#203286)](#203286) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-04T19:41:40Z","message":"Update dependency ignore to v7 (main) (#203286)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change | Pending |\n|---|---|---|---|---|\n| [ignore](https://github.com/kaelzhang/node-ignore) |\ndevDependencies | major | [`^5.3.0` ->\n`^7.0.4`](https://renovatebot.com/diffs/npm/ignore/5.3.2/7.0.4) |\n`7.0.5` |\n\n---\n\n### Release Notes\n\n<details>\n<summary>kaelzhang/node-ignore (ignore)</summary>\n\n###\n[`v7.0.4`](https://github.com/kaelzhang/node-ignore/releases/tag/7.0.4)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.3...7.0.4)\n\n- **PATCH** Allows files named `.{3,}`, such as `...` for Linux / macOS\n([#&#8203;68](https://github.com/kaelzhang/node-ignore/issues/68))\n\n```js\nig.ignores('...')\nig.ignores('....')\n// It will throw a RangeError in versions prior to 7.0.4, but it is ok if >= 7.0.4\n```\n\nAn upgrade is recommended for all dependents\n\n###\n[`v7.0.3`](https://github.com/kaelzhang/node-ignore/compare/52f8e855b6aca711579c008f38829f48e5a4c78b...7.0.3)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/52f8e855b6aca711579c008f38829f48e5a4c78b...7.0.3)\n\n###\n[`v7.0.2`](https://github.com/kaelzhang/node-ignore/compare/7.0.1...52f8e855b6aca711579c008f38829f48e5a4c78b)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.1...52f8e855b6aca711579c008f38829f48e5a4c78b)\n\n###\n[`v7.0.1`](https://github.com/kaelzhang/node-ignore/compare/7.0.0...7.0.1)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.0...7.0.1)\n\n###\n[`v7.0.0`](https://github.com/kaelzhang/node-ignore/releases/tag/7.0.0)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/ee70c66d32e900f6e793c733a4ca27a1dafb3819...7.0.0)\n\n#### Minor feature\n\nThe primary feature introduced by `7.0.0` is the `.checkIgnore()`\nmethod, which is most equivalent to `git check-ignore -v`. And also it\nallows to pass `{pattern, mark?}` as the parameter of `.add()` so that\nwe could imitate the mechanism of `git check-ignore` as:\n\n```js\nig.add({\n pattern: 'foo/*',\n mark: '60'\n})\n\nconst {\n ignored,\n rule\n} = checkIgnore('foo/')\n\nif (ignored) {\n console.log(`.gitignore:${result}:${rule.mark}:${rule.pattern} foo/`)\n}\n\n// .gitignore:60:foo/* foo/\n```\n\n#### Potential Incompatibilities\n\nThe only situation that `7.0.0` might bring incompatibility is to\n`.add()` a `< 7.0.0` instance into a `>= 7.0.0` instance, which might\noccur when the current workspace has multiple `node-ignore` versions\ninstalled, please be careful.\n\n```js\nconst {anotherIgnoreInstance} = require('./ignore-6.0-instance')\n\n// A 7.0.0 instance\nignore().add(anotherIgnoreInstance)\n\n// It will break your code\n```\n\nOtherwise, in most cases, if you never do something above or there is\nonly one version of `node-ignore` installed in the current workspace, it\nis quite safe to upgrade to `7.0.0`.\n\n###\n[`v6.0.2`](https://github.com/kaelzhang/node-ignore/compare/6.0.1...ee70c66d32e900f6e793c733a4ca27a1dafb3819)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/6.0.1...ee70c66d32e900f6e793c733a4ca27a1dafb3819)\n\n###\n[`v6.0.1`](https://github.com/kaelzhang/node-ignore/releases/tag/6.0.1):\n6.x (&#x3D;&#x3D; 5.3.2)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/6.0.0...6.0.1)\n\n### 6.x\n\n- The release of `6.x` is due to a mistake.\n- Making an upgrade from `5.x` to 6.x for now actually changes nothing\nand does no harm, everyone could just upgrade or ignore the version.\n - Actually `6.0.2` is `5.3.2`\n- The next major release will be `7.0.0`\n\n###\n[`v6.0.0`](https://github.com/kaelzhang/node-ignore/compare/5.3.2...6.0.0)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/5.3.2...6.0.0)\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by: Brad White <[email protected]>","sha":"2656cb4299663e94bdce4199ce7c48abb54521c1","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.1.0"],"title":"Update dependency ignore to v7 (main)","number":203286,"url":"https://github.com/elastic/kibana/pull/203286","mergeCommit":{"message":"Update dependency ignore to v7 (main) (#203286)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change | Pending |\n|---|---|---|---|---|\n| [ignore](https://github.com/kaelzhang/node-ignore) |\ndevDependencies | major | [`^5.3.0` ->\n`^7.0.4`](https://renovatebot.com/diffs/npm/ignore/5.3.2/7.0.4) |\n`7.0.5` |\n\n---\n\n### Release Notes\n\n<details>\n<summary>kaelzhang/node-ignore (ignore)</summary>\n\n###\n[`v7.0.4`](https://github.com/kaelzhang/node-ignore/releases/tag/7.0.4)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.3...7.0.4)\n\n- **PATCH** Allows files named `.{3,}`, such as `...` for Linux / macOS\n([#&#8203;68](https://github.com/kaelzhang/node-ignore/issues/68))\n\n```js\nig.ignores('...')\nig.ignores('....')\n// It will throw a RangeError in versions prior to 7.0.4, but it is ok if >= 7.0.4\n```\n\nAn upgrade is recommended for all dependents\n\n###\n[`v7.0.3`](https://github.com/kaelzhang/node-ignore/compare/52f8e855b6aca711579c008f38829f48e5a4c78b...7.0.3)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/52f8e855b6aca711579c008f38829f48e5a4c78b...7.0.3)\n\n###\n[`v7.0.2`](https://github.com/kaelzhang/node-ignore/compare/7.0.1...52f8e855b6aca711579c008f38829f48e5a4c78b)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.1...52f8e855b6aca711579c008f38829f48e5a4c78b)\n\n###\n[`v7.0.1`](https://github.com/kaelzhang/node-ignore/compare/7.0.0...7.0.1)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.0...7.0.1)\n\n###\n[`v7.0.0`](https://github.com/kaelzhang/node-ignore/releases/tag/7.0.0)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/ee70c66d32e900f6e793c733a4ca27a1dafb3819...7.0.0)\n\n#### Minor feature\n\nThe primary feature introduced by `7.0.0` is the `.checkIgnore()`\nmethod, which is most equivalent to `git check-ignore -v`. And also it\nallows to pass `{pattern, mark?}` as the parameter of `.add()` so that\nwe could imitate the mechanism of `git check-ignore` as:\n\n```js\nig.add({\n pattern: 'foo/*',\n mark: '60'\n})\n\nconst {\n ignored,\n rule\n} = checkIgnore('foo/')\n\nif (ignored) {\n console.log(`.gitignore:${result}:${rule.mark}:${rule.pattern} foo/`)\n}\n\n// .gitignore:60:foo/* foo/\n```\n\n#### Potential Incompatibilities\n\nThe only situation that `7.0.0` might bring incompatibility is to\n`.add()` a `< 7.0.0` instance into a `>= 7.0.0` instance, which might\noccur when the current workspace has multiple `node-ignore` versions\ninstalled, please be careful.\n\n```js\nconst {anotherIgnoreInstance} = require('./ignore-6.0-instance')\n\n// A 7.0.0 instance\nignore().add(anotherIgnoreInstance)\n\n// It will break your code\n```\n\nOtherwise, in most cases, if you never do something above or there is\nonly one version of `node-ignore` installed in the current workspace, it\nis quite safe to upgrade to `7.0.0`.\n\n###\n[`v6.0.2`](https://github.com/kaelzhang/node-ignore/compare/6.0.1...ee70c66d32e900f6e793c733a4ca27a1dafb3819)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/6.0.1...ee70c66d32e900f6e793c733a4ca27a1dafb3819)\n\n###\n[`v6.0.1`](https://github.com/kaelzhang/node-ignore/releases/tag/6.0.1):\n6.x (&#x3D;&#x3D; 5.3.2)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/6.0.0...6.0.1)\n\n### 6.x\n\n- The release of `6.x` is due to a mistake.\n- Making an upgrade from `5.x` to 6.x for now actually changes nothing\nand does no harm, everyone could just upgrade or ignore the version.\n - Actually `6.0.2` is `5.3.2`\n- The next major release will be `7.0.0`\n\n###\n[`v6.0.0`](https://github.com/kaelzhang/node-ignore/compare/5.3.2...6.0.0)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/5.3.2...6.0.0)\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by: Brad White <[email protected]>","sha":"2656cb4299663e94bdce4199ce7c48abb54521c1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203286","number":203286,"mergeCommit":{"message":"Update dependency ignore to v7 (main) (#203286)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change | Pending |\n|---|---|---|---|---|\n| [ignore](https://github.com/kaelzhang/node-ignore) |\ndevDependencies | major | [`^5.3.0` ->\n`^7.0.4`](https://renovatebot.com/diffs/npm/ignore/5.3.2/7.0.4) |\n`7.0.5` |\n\n---\n\n### Release Notes\n\n<details>\n<summary>kaelzhang/node-ignore (ignore)</summary>\n\n###\n[`v7.0.4`](https://github.com/kaelzhang/node-ignore/releases/tag/7.0.4)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.3...7.0.4)\n\n- **PATCH** Allows files named `.{3,}`, such as `...` for Linux / macOS\n([#&#8203;68](https://github.com/kaelzhang/node-ignore/issues/68))\n\n```js\nig.ignores('...')\nig.ignores('....')\n// It will throw a RangeError in versions prior to 7.0.4, but it is ok if >= 7.0.4\n```\n\nAn upgrade is recommended for all dependents\n\n###\n[`v7.0.3`](https://github.com/kaelzhang/node-ignore/compare/52f8e855b6aca711579c008f38829f48e5a4c78b...7.0.3)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/52f8e855b6aca711579c008f38829f48e5a4c78b...7.0.3)\n\n###\n[`v7.0.2`](https://github.com/kaelzhang/node-ignore/compare/7.0.1...52f8e855b6aca711579c008f38829f48e5a4c78b)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.1...52f8e855b6aca711579c008f38829f48e5a4c78b)\n\n###\n[`v7.0.1`](https://github.com/kaelzhang/node-ignore/compare/7.0.0...7.0.1)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/7.0.0...7.0.1)\n\n###\n[`v7.0.0`](https://github.com/kaelzhang/node-ignore/releases/tag/7.0.0)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/ee70c66d32e900f6e793c733a4ca27a1dafb3819...7.0.0)\n\n#### Minor feature\n\nThe primary feature introduced by `7.0.0` is the `.checkIgnore()`\nmethod, which is most equivalent to `git check-ignore -v`. And also it\nallows to pass `{pattern, mark?}` as the parameter of `.add()` so that\nwe could imitate the mechanism of `git check-ignore` as:\n\n```js\nig.add({\n pattern: 'foo/*',\n mark: '60'\n})\n\nconst {\n ignored,\n rule\n} = checkIgnore('foo/')\n\nif (ignored) {\n console.log(`.gitignore:${result}:${rule.mark}:${rule.pattern} foo/`)\n}\n\n// .gitignore:60:foo/* foo/\n```\n\n#### Potential Incompatibilities\n\nThe only situation that `7.0.0` might bring incompatibility is to\n`.add()` a `< 7.0.0` instance into a `>= 7.0.0` instance, which might\noccur when the current workspace has multiple `node-ignore` versions\ninstalled, please be careful.\n\n```js\nconst {anotherIgnoreInstance} = require('./ignore-6.0-instance')\n\n// A 7.0.0 instance\nignore().add(anotherIgnoreInstance)\n\n// It will break your code\n```\n\nOtherwise, in most cases, if you never do something above or there is\nonly one version of `node-ignore` installed in the current workspace, it\nis quite safe to upgrade to `7.0.0`.\n\n###\n[`v6.0.2`](https://github.com/kaelzhang/node-ignore/compare/6.0.1...ee70c66d32e900f6e793c733a4ca27a1dafb3819)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/6.0.1...ee70c66d32e900f6e793c733a4ca27a1dafb3819)\n\n###\n[`v6.0.1`](https://github.com/kaelzhang/node-ignore/releases/tag/6.0.1):\n6.x (&#x3D;&#x3D; 5.3.2)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/6.0.0...6.0.1)\n\n### 6.x\n\n- The release of `6.x` is due to a mistake.\n- Making an upgrade from `5.x` to 6.x for now actually changes nothing\nand does no harm, everyone could just upgrade or ignore the version.\n - Actually `6.0.2` is `5.3.2`\n- The next major release will be `7.0.0`\n\n###\n[`v6.0.0`](https://github.com/kaelzhang/node-ignore/compare/5.3.2...6.0.0)\n\n[Compare\nSource](https://github.com/kaelzhang/node-ignore/compare/5.3.2...6.0.0)\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by: Brad White <[email protected]>","sha":"2656cb4299663e94bdce4199ce7c48abb54521c1"}},{"url":"https://github.com/elastic/kibana/pull/222659","number":222659,"branch":"9.0","state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Co-authored-by: kibanamachine <[email protected]>
1 parent d0bf3f9 commit 0bded1f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@
17771777
"http-proxy": "^1.18.1",
17781778
"http2-proxy": "^5.0.53",
17791779
"http2-wrapper": "^2.2.1",
1780-
"ignore": "^5.3.0",
1780+
"ignore": "^7.0.4",
17811781
"jest": "^29.7.0",
17821782
"jest-canvas-mock": "^2.5.2",
17831783
"jest-cli": "^29.7.0",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21386,15 +21386,15 @@ ignore@^4.0.3:
2138621386
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
2138721387
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
2138821388

21389-
ignore@^5.0.5, ignore@^5.1.1, ignore@^5.2.0, ignore@^5.2.1, ignore@^5.3.0:
21389+
ignore@^5.0.5, ignore@^5.1.1, ignore@^5.2.0, ignore@^5.2.1:
2139021390
version "5.3.2"
2139121391
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
2139221392
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
2139321393

21394-
ignore@^7.0.0:
21395-
version "7.0.0"
21396-
resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.0.tgz#52da780b009bd0845d1f9dd4d8ae6a7569ae73c4"
21397-
integrity sha512-lcX8PNQygAa22u/0BysEY8VhaFRzlOkvdlKczDPnJvrkJD1EuqzEky5VYYKM2iySIuaVIDv9N190DfSreSLw2A==
21394+
ignore@^7.0.0, ignore@^7.0.4:
21395+
version "7.0.5"
21396+
resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9"
21397+
integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==
2139821398

2139921399
immediate@~3.0.5:
2140021400
version "3.0.6"

0 commit comments

Comments
 (0)