Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
52fcfad
pin dependencies from yarn.lock to package.json
delanni Nov 27, 2025
f2ee273
revert a few aliased dependencies
delanni Nov 27, 2025
a85807e
chore(NA): merge and solve conflicts with the upstream
mistic Dec 23, 2025
0633a6c
chore(NA): fix into a single yarn version
mistic Dec 23, 2025
961cf34
Changes from security: 3rd-party dependencies
kibanamachine Dec 23, 2025
0a4863b
feat(NA): introduce quick check to avoid no pkg semver ranges
mistic Dec 24, 2025
2b6607b
Merge remote-tracking branch 'delanni/pin-dependencies-in-package.jso…
mistic Dec 24, 2025
f59a06f
fix(NA): add wrongly removed dep
mistic Dec 24, 2025
9ba4f68
refine package version semver checker, add tests
delanni Jan 5, 2026
ca1a733
Merge branch 'main' into pin-dependencies-in-package.json
delanni Jan 5, 2026
768df9b
fix script that doesn't propagate errors from the original script, no…
delanni Jan 5, 2026
75cb37f
fix case where incorrect versions were found
delanni Jan 5, 2026
292a8ec
fix issue where auto-version would get the types version
delanni Jan 6, 2026
ddb99d2
update package.json and yarn.lock with pinned versions
delanni Jan 6, 2026
8ddf7ae
Merge branch 'main' into pin-dependencies-in-package.json
delanni Jan 6, 2026
e0e6d2a
prevent proceeding if bootstrap fails
delanni Jan 6, 2026
610e4d1
Merge branch 'main' into pin-dependencies-in-package.json
delanni Jan 6, 2026
2011f95
TO FIX: Run node 'scripts/check_pkg_json_semver_ranges && yarn kbn bo…
kibanamachine Jan 6, 2026
9c6bd6d
add resolutions warnings
delanni Jan 6, 2026
feba781
remove ranges from resolutions
delanni Jan 6, 2026
8e25849
add semver check to precommit hook steps
delanni Jan 6, 2026
283e4c7
Merge branch 'main' into pin-dependencies-in-package.json
delanni Jan 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .buildkite/scripts/steps/checks/pkg_json_semver_ranges.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/scripts/common/util.sh

echo "--- Check package.json for non allowed semver ranges"
set +e
node scripts/check_pkg_json_semver_ranges
check_exit_code=$?

yarn kbn bootstrap --force-install
bootstrap_exit_code=$?
set -e

if [[ "${check_exit_code}" != "0" || "${bootstrap_exit_code}" != "0" ]]; then
echo "node scripts/check_pkg_json_semver_ranges && yarn kbn bootstrap --force-install failed with an error - undoing any changes" >&2
git checkout -- .
exit 2
fi

check_for_changed_files 'node scripts/check_pkg_json_semver_ranges' true 'TO FIX: Run node '"'"'scripts/check_pkg_json_semver_ranges && yarn kbn bootstrap'"'"' locally and then commit the changes and push to your branch'
4 changes: 4 additions & 0 deletions .buildkite/scripts/steps/checks/quick_checks.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
"script": ".buildkite/scripts/steps/checks/yarn_deduplicate.sh",
"mayChangeFiles": true
},
{
"script": ".buildkite/scripts/steps/checks/pkg_json_semver_ranges.sh",
"mayChangeFiles": true
},
{
"script": ".buildkite/scripts/steps/checks/prettier_topology.sh"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ xml-formatter
@storybook/addon-docs
dompurify
magic-bytes.js
@axe-core/playwright
@opentelemetry/exporter-trace-otlp-grpc
@ai-sdk/langchain
ink
Expand Down
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Kibana is a browser-based analytics and search dashboard for Elasticsearch, cons
**Key Technologies:**

- **Runtime:** Node.js (exact version required, check `.nvmrc` and `.node-version`)
- **Package Manager:** Yarn ^1.22.19 (Yarn 2.0+ not supported)
- **Package Manager:** Yarn 1.22.22
- **Primary Languages:** TypeScript, JavaScript (React for frontend)
- **Architecture:** Plugin-based with shared core platform

Expand Down Expand Up @@ -194,7 +194,7 @@ nvm use

### Package Manager - MANDATORY REQUIREMENT

⚠️ **REQUIRED:** Yarn ^1.22.19 (Yarn 2.0+ is NOT supported)
⚠️ **REQUIRED:** Yarn 1.22.22

**Using wrong Yarn version WILL break bootstrap.**

Expand Down
4 changes: 2 additions & 2 deletions dev_docs/getting_started/setting_up_a_development_env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Then, install the latest version of yarn using:
npm install -g yarn
```

If you have Yarn installed, make sure you are using 1.22.19 or later. 2.0 and later are unsupported.
If you have Yarn installed, make sure you are using 1.22.22.

. If you are using an unsupported Yarn version, run:
+
```sh
yarn set version 1.22.19
yarn set version 1.22.22
```

Finally, bootstrap Kibana and install all of the remaining dependencies:
Expand Down
Loading