Closed dependabot[bot] closed 7 months ago
File | Size |
---|---|
dist/govuk-frontend-development.min.css | 113.25 KiB |
dist/govuk-frontend-development.min.js | 42.21 KiB |
packages/govuk-frontend/dist/govuk/all.bundle.js | 87.21 KiB |
packages/govuk-frontend/dist/govuk/all.bundle.mjs | 81.95 KiB |
packages/govuk-frontend/dist/govuk/all.mjs | 4.17 KiB |
packages/govuk-frontend/dist/govuk/govuk-frontend-component.mjs | 359 B |
packages/govuk-frontend/dist/govuk/govuk-frontend.min.css | 113.24 KiB |
packages/govuk-frontend/dist/govuk/govuk-frontend.min.js | 42.2 KiB |
packages/govuk-frontend/dist/govuk/i18n.mjs | 5.55 KiB |
File | Size (bundled) | Size (minified) |
---|---|---|
all.mjs | 77.67 KiB | 40.19 KiB |
accordion.mjs | 22.71 KiB | 12.85 KiB |
button.mjs | 5.98 KiB | 2.69 KiB |
character-count.mjs | 22.4 KiB | 9.92 KiB |
checkboxes.mjs | 5.83 KiB | 2.83 KiB |
error-summary.mjs | 7.89 KiB | 3.46 KiB |
exit-this-page.mjs | 17.1 KiB | 9.26 KiB |
header.mjs | 4.46 KiB | 2.6 KiB |
notification-banner.mjs | 6.26 KiB | 2.62 KiB |
password-input.mjs | 15.15 KiB | 7.25 KiB |
radios.mjs | 4.83 KiB | 2.38 KiB |
skip-link.mjs | 4.39 KiB | 2.18 KiB |
tabs.mjs | 10.13 KiB | 6.11 KiB |
View stats and visualisations on the review app
Action run for 94aad8b9a3afbc6d94868a7a00799b4bf52bd7a9
It looks like the failure's being caused by eslint's new rule: prefer-optional-chain. Will dig into if it's easy or risky to apply this in a mo.
It turns out we explicitly allow optional chaining and actually already use it 😅 Have pushed a change to fix the failing test. Will provide a review now.
diff --git a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.js b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.js
index 42ac38f54..db99e502b 100644
--- a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.js
+++ b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.js
@@ -593,7 +593,7 @@ class Checkboxes extends GOVUKFrontendComponent {
const t = e.getAttribute("aria-controls");
if (!t) return;
const s = document.getElementById(t);
- if (s && s.classList.contains("govuk-checkboxes__conditional")) {
+ if (null != s && s.classList.contains("govuk-checkboxes__conditional")) {
const t = e.checked;
e.setAttribute("aria-expanded", t.toString()), s.classList.toggle("govuk-checkboxes__conditional--hidden", !t)
}
Action run for 94aad8b9a3afbc6d94868a7a00799b4bf52bd7a9
diff --git a/packages/govuk-frontend/dist/govuk/all.bundle.js b/packages/govuk-frontend/dist/govuk/all.bundle.js
index 2e6ee3171..66ef07672 100644
--- a/packages/govuk-frontend/dist/govuk/all.bundle.js
+++ b/packages/govuk-frontend/dist/govuk/all.bundle.js
@@ -1232,7 +1232,7 @@
return;
}
const $target = document.getElementById(targetId);
- if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
+ if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
const inputIsChecked = $input.checked;
$input.setAttribute('aria-expanded', inputIsChecked.toString());
$target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
diff --git a/packages/govuk-frontend/dist/govuk/all.bundle.mjs b/packages/govuk-frontend/dist/govuk/all.bundle.mjs
index 364ad3342..669d06852 100644
--- a/packages/govuk-frontend/dist/govuk/all.bundle.mjs
+++ b/packages/govuk-frontend/dist/govuk/all.bundle.mjs
@@ -1226,7 +1226,7 @@ class Checkboxes extends GOVUKFrontendComponent {
return;
}
const $target = document.getElementById(targetId);
- if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
+ if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
const inputIsChecked = $input.checked;
$input.setAttribute('aria-expanded', inputIsChecked.toString());
$target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
diff --git a/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js b/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js
index e8fb370f5..fa0f0190a 100644
--- a/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js
+++ b/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js
@@ -148,7 +148,7 @@
return;
}
const $target = document.getElementById(targetId);
- if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
+ if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
const inputIsChecked = $input.checked;
$input.setAttribute('aria-expanded', inputIsChecked.toString());
$target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
diff --git a/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs b/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs
index 8e414cdba..f8ab886f3 100644
--- a/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs
+++ b/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs
@@ -142,7 +142,7 @@ class Checkboxes extends GOVUKFrontendComponent {
return;
}
const $target = document.getElementById(targetId);
- if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
+ if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
const inputIsChecked = $input.checked;
$input.setAttribute('aria-expanded', inputIsChecked.toString());
$target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
diff --git a/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs b/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs
index 53cc4a7a7..f9d7d8fbf 100644
--- a/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs
+++ b/packages/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs
@@ -68,7 +68,7 @@ class Checkboxes extends GOVUKFrontendComponent {
return;
}
const $target = document.getElementById(targetId);
- if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
+ if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
const inputIsChecked = $input.checked;
$input.setAttribute('aria-expanded', inputIsChecked.toString());
$target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
Action run for 94aad8b9a3afbc6d94868a7a00799b4bf52bd7a9
It turns out we explicitly allow optional chaining and actually already use it 😅 Have pushed a change to fix the failing test. Will provide a review now.
Heads up that the two links in your comment are both to the same thing. But the point still stands!
Bumps the lint group with 4 updates: @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint-plugin-jsdoc and stylelint.
Updates
@typescript-eslint/eslint-plugin
from 7.3.1 to 7.4.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.Commits
5d24691
chore(release): publish 7.4.0029fc0b
feat(eslint-plugin): deprecate no-throw-literal and add a renamed only-throw-...2a62a40
fix(eslint-plugin): [no-unnecessary-type-assertion] avoid remove const castin...990ec22
docs: fix example of binding unbound method (#8754)a08554a
feat(eslint-plugin): [no-unnecessary-type-arguments] handle tagged templates ...2018f91
fix(eslint-plugin): [prefer-optional-chain] properly disambiguate between `bo...56358a6
fix(eslint-plugin): [prefer-optional-chain] address multipart nullish checks ...532ae8b
docs: fix typo in switch-exhaustiveness-check (#8768)e408b93
feat(eslint-plugin): [consistent-type-imports] ignore files with decorators, ...c787fe4
docs: restrict-template-expressions - remove mention of numbers being allowed...Updates
@typescript-eslint/parser
from 7.3.1 to 7.4.0Release notes
Sourced from
@typescript-eslint/parser
's releases.Changelog
Sourced from
@typescript-eslint/parser
's changelog.Commits
5d24691
chore(release): publish 7.4.0e408b93
feat(eslint-plugin): [consistent-type-imports] ignore files with decorators, ...Updates
eslint-plugin-jsdoc
from 48.2.1 to 48.2.2Release notes
Sourced from eslint-plugin-jsdoc's releases.
Commits
9e9fed5
fix: add TSimport
tag; fixes #12183e88f9a
docs: mention excludedTags in informative-docs docsUpdates
stylelint
from 16.3.0 to 16.3.1Release notes
Sourced from stylelint's releases.
Changelog
Sourced from stylelint's changelog.
Commits
2d74e26
16.3.19b2ca9c
Try fixingnpm run version
onnpm run version
d469bcd
Prepare 16.3.1 (#7580)b9ae2b2
Bump postcss-import from 16.0.1 to 16.1.0 (#7575)6bbc5f5
Bump np from 10.0.1 to 10.0.2 (#7574)a422972
Bump the typescript group with 1 update (#7573)f69c57b
Fixselector-max-id
end positions (#7571)412ae2b
Fix import errors for configs and plugins omitting/index.js
(#7578)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show