Skip to content

Commit a3573a6

Browse files
committed
bug symfony#3290 Update root JS dependencies (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- Update root JS dependencies | Q | A | -------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Documentation? | no <!-- required for new features, or documentation updates --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> In order to close some security issues from https://github.com/symfony/ux/security/dependabot Also added `tsconfig.json` files under `src/**/assets`, to make PHPStorm (and tsup) happy. Commits ------- 91d1bb7 Update root JS dependencies
2 parents e415a23 + 91d1bb7 commit a3573a6

File tree

40 files changed

+1371
-847
lines changed

40 files changed

+1371
-847
lines changed

bin/build_package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function main() {
7070
external: Array.from(external),
7171
format: 'esm',
7272
platform: 'browser',
73-
tsconfig: path.join(import.meta.dirname, '../tsconfig.packages.json'),
73+
tsconfig: path.join(packageRoot, 'tsconfig.json'),
7474
dts: {
7575
entry: inputFiles.filter(inputFile => !inputFile.endsWith('.css')),
7676
},

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"ci": "biome ci"
1616
},
1717
"devDependencies": {
18-
"@biomejs/biome": "^2.0.4",
19-
"@playwright/test": "^1.54.2",
20-
"@puppeteer/browsers": "^2.10.6",
21-
"@testing-library/dom": "^10.4.0",
22-
"@testing-library/jest-dom": "^6.6.3",
23-
"@types/node": "^22.6.0",
24-
"lightningcss": "^1.28.2",
25-
"pkg-types": "^2.2.0",
26-
"tinyglobby": "^0.2.14",
27-
"tsup": "^8.5.0",
18+
"@biomejs/biome": "^2.3.11",
19+
"@playwright/test": "^1.57.0",
20+
"@puppeteer/browsers": "^2.11.0",
21+
"@testing-library/dom": "^10.4.1",
22+
"@testing-library/jest-dom": "^6.9.1",
23+
"@types/node": "^22.19.3",
24+
"lightningcss": "^1.30.2",
25+
"pkg-types": "^2.3.0",
26+
"tinyglobby": "^0.2.15",
27+
"tsup": "^8.5.1",
2828
"vitest": "^3.2.4"
2929
}
3030
}

pnpm-lock.yaml

Lines changed: 1192 additions & 776 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Autocomplete/assets/test/unit/controller.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ describe('AutocompleteController', () => {
667667
if (null === newTomSelect) {
668668
throw new Error('Missing TomSelect instance');
669669
}
670-
// @ts-ignore
670+
// @ts-expect-error
671671
newTomSelect.addItem('7');
672672
expect(selectElement.value).toBe('7');
673673

@@ -798,7 +798,7 @@ describe('AutocompleteController', () => {
798798
if (null === newTomSelect) {
799799
throw new Error('Missing TomSelect instance');
800800
}
801-
// @ts-ignore
801+
// @ts-expect-error
802802
expect(newTomSelect.control_input.placeholder).toBe('Select a cat');
803803
});
804804

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../tsconfig.package.json"
3+
}

src/Chartjs/assets/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../tsconfig.package.json"
3+
}

src/Cropperjs/assets/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../tsconfig.package.json"
3+
}

src/Dropzone/assets/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../tsconfig.package.json"
3+
}

src/LazyImage/assets/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../tsconfig.package.json"
3+
}

src/LiveComponent/assets/dist/live_controller.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,14 @@ var HookManager_default = class {
545545
}
546546
triggerHook(hookName, ...args) {
547547
const hooks = this.hooks.get(hookName) || [];
548-
hooks.forEach((callback) => callback(...args));
548+
hooks.forEach((callback) => {
549+
callback(...args);
550+
});
549551
}
550552
};
551553

552554
// ../../../node_modules/.pnpm/[email protected]/node_modules/idiomorph/dist/idiomorph.esm.js
553-
var Idiomorph = function() {
555+
var Idiomorph = (function() {
554556
"use strict";
555557
let EMPTY_SET = /* @__PURE__ */ new Set();
556558
let defaults = {
@@ -1093,7 +1095,7 @@ var Idiomorph = function() {
10931095
morph,
10941096
defaults
10951097
};
1096-
}();
1098+
})();
10971099

10981100
// src/normalize_attributes_for_comparison.ts
10991101
function normalizeAttributesForComparison(element) {

0 commit comments

Comments
 (0)