A platform for community discussion. Free, open, simple.
DEV: Fix ember-inspector loading (#41027)
David Taylorf8e4a6a002ee
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erbindex a1bed22d64b..e50232f2032 100644--- a/app/views/layouts/application.html.erb+++ b/app/views/layouts/application.html.erb@@ -32,9 +32,8 @@<%= build_plugin_html 'server:before-script-load' %><script nonce="<%= csp_nonce_placeholder %>">- window.EmberENV = {- _DEFAULT_ASYNC_OBSERVERS: true,- };+ window.EmberENV ??= {};+ window.EmberENV._DEFAULT_ASYNC_OBSERVERS = true;</script><%= preload_script_url ExtraLocalesController.url("main"), type_module: true %>diff --git a/app/views/qunit/qunit.html.erb b/app/views/qunit/qunit.html.erbindex 463720e233a..2c96a008e66 100644--- a/app/views/qunit/qunit.html.erb+++ b/app/views/qunit/qunit.html.erb@@ -81,9 +81,8 @@<discourse-assets-icons></discourse-assets-icons><script nonce="<%= csp_nonce_placeholder %>">- window.EmberENV = {- _DEFAULT_ASYNC_OBSERVERS: true,- };+ window.EmberENV ??= {};+ window.EmberENV._DEFAULT_ASYNC_OBSERVERS = true;</script><%= preload_script "test-entrypoint", type_module: true %>diff --git a/frontend/asset-processor/package.json b/frontend/asset-processor/package.jsonindex 689f971a6d9..cf0033c6d5b 100644--- a/frontend/asset-processor/package.json+++ b/frontend/asset-processor/package.json@@ -31,7 +31,7 @@"polyfill-crypto.getrandomvalues": "^1.0.0","postcss": "^8.5.15","postcss-nesting": "^14.0.0",- "rolldown": "1.0.3",+ "rolldown": "1.1.2","source-map-js": "^1.2.1","strip-test-selectors": "^0.1.0","terser": "^5.47.1"diff --git a/frontend/discourse/package.json b/frontend/discourse/package.jsonindex 6e383769c4a..e601fdb050c 100644--- a/frontend/discourse/package.json+++ b/frontend/discourse/package.json@@ -159,7 +159,7 @@"pretender": "^3.4.7","qunit": "^2.25.0","qunit-dom": "^3.5.1",- "rolldown": "1.0.3",+ "rolldown": "1.1.2","sinon": "^22.0.0","testem": "^3.20.1","typescript": "^5.9.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a9966e5925e..a29f79edb19 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -175,8 +175,8 @@ importers:specifier: ^14.0.0version: 14.0.0([email protected])rolldown:- specifier: 1.0.3- version: 1.0.3+ specifier: 1.1.2+ version: 1.1.2source-map-js:specifier: ^1.2.1version: 1.2.1@@ -596,8 +596,8 @@ importers:specifier: ^3.5.1version: 3.5.1rolldown:- specifier: 1.0.3- version: 1.0.3+ specifier: 1.1.2+ version: 1.1.2sinon:specifier: ^22.0.0version: 22.0.0@@ -1812,12 +1812,21 @@ packages:'@emnapi/[email protected]':resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==}+'@emnapi/[email protected]':resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==}+'@emnapi/[email protected]':resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==}+'@eslint-community/[email protected]':resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -2228,8 +2237,8 @@ packages:'@messageformat/[email protected]':resolution: {integrity: sha512-dkIPDCjXcfhSHgNE1/qV6TeczQZR59Yx0xXeafVKgK3QVWoxc38ljwpksUpnzCGvN151KUbCJTDZVmahtf1YZw==}- '@napi-rs/[email protected]':- resolution: {integrity: sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==}+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-AWPoBRJ9tsnVhor4sjO7rkni+7p+2IAEFj6cx06UgP10jkQHqay/36uRV/bFkgrh18D9vb4cr8Q0Pthskgzy+Q==}peerDependencies:'@emnapi/core': ^1.7.1'@emnapi/runtime': ^1.7.1@@ -2435,6 +2444,9 @@ packages:'@oxc-project/[email protected]':resolution: {integrity: sha512-KzkdCd6Uxqnf6l3HOw1xfatAlUURA0g14cvBYFyJ5SaNOQbOUvBr9PKArcPcrNIeRsBdgcUzOGrhKveVpvOIGA==}+ '@oxc-project/[email protected]':+ resolution: {integrity: sha512-WT+Gb24i8hmvo85AIv2oEYouEXkRlKAlT9WaCa3TfLgNCN+GhrJOGZuIlMouAh38Qe4QOx26eUOVsq70qXrywA==}+'@pkgjs/[email protected]':resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}@@ -2463,89 +2475,178 @@ packages:cpu: [arm64]os: [android]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-2cZ+7xRS+DBcuJBJKnfzsbleumJhBqSlJVpuzHC0nTqfd3QQ7Vx2/x5YR/D7cBamKSeWplwo82Fn9lqYUDEMfA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]+'@rolldown/[email protected]':resolution: {integrity: sha512-PcAhP+ynjURNyy8SKGl5DQP94aGuB/7JrXJb/t7P+hanXvQVMWzUvRRhBAcg/lNRadBhoUPqSoP4xw5tR/KBEA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [darwin]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-RkPMJnygxsgOYdkfqgpwY0/Fzm8d0VQe6HGU2/B00Xa9eqdLbrII+DOKAodbJAn3ZL1AJxGHkZRPYazgGY6Ljw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]+'@rolldown/[email protected]':resolution: {integrity: sha512-9YpfeUvSE2RS7wysJ81uOZkXJz7f7Q55H2Gvp3VEw/EsahqDtrphrZ0EwDLK5vvKOzaCrBsjF8JmnMLcUt78Gg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [darwin]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-Uiczh6vFhwyfd7WNe7Q7mCA4KxAiLdz7jPE/WGizfRpIieoyFuNVMmM8HqZ9HwudTkY6/AeMQwlNJ9NJijguWw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]+'@rolldown/[email protected]':resolution: {integrity: sha512-yB1IlAsSNHncV6SCTL27/MVGR5htvQsoGxIv5KMGXALp+Ll1wYsn+x98M9MW7qa+NdSbvrrY7ANI4wLJ0n1e6g==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [freebsd]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-+TpdtTRgHiJFjCVFbw311SuLk3KfytPOQQn+VlAEv+gBxYPtL7E6JS9e/tk+8CwxhIZvemJKo4rTKgfWNsKkkA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]+'@rolldown/[email protected]':resolution: {integrity: sha512-Yi30IVAAfLUCy2MseFjbB1jAMDl1VMCAas5StnYp8da9+CKvMd2H2cbEjWcw5NPaPqzvYkVIaF1nNUG+b7u/sw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-4lv1/tkmi7ueIVHnyreaOeUpiZP26BH9rRy6hoYfR9310A2B9nUEVRDvBx69vx64Nr3eTPPRkyciqJJs+j9Jmw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-jsO7R8To+AdlYgUmN5sHSCZbfhtMBkO0WUx8iORQnPcMMdgr7qM2DQmMwgabs3GhNztdmoKkMKQFHD6DTMCIQw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-gBSUVO0eaWgw1JMjK3gB8BMlX2Mk148s2lTiVT3e9vjVxbl7UDfMWWY8CfIaaqiXuM9fVTMxIpUz6CAo/B6Vlw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-VWkUHwWriDciit80wleYwKILoR/KMvxh/IdwS/paX+ZgpuRpCrKLUdadJbc0NpBEiyhpYawsJ73j9aCvOH+f7Q==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-LjQP/iZLBu8o8PjIfk4x3At0/mT6h282pvz8Z5LAyhGbu/kDezyO7ea62rF5uoqmgnIYqbN/MqJ3Si3Aymi7xQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-5f1laC0SlIR0yDbFCd8acUhvJIag6N3zC5P7oUPN6wX0aOma+uKJ0wBDH5aq7I1PVI2ttTlhJwzwRIBnLiSGEg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [ppc64]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-X/7bVLWelEsbyWDUSXt7zVsTniLLPIY2n1rH58qr78l9i7MNbbxBWD8gI2vRfBWf4NUXJCUuQnfZDsp32LqsfQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ppc64]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-Iq4ko0r4XsgbrF/LunNgHtAGLRRVE2kXonAXQ/MV0mC6jQpMOhW1SvtZja2EhC/kd05++bP78dsqBeIQyYJ6Yg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [s390x]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-gb6dYKW/1KDorGXyy48glEBJs/sxVSC5pcVrox/pFGV4mvwSFeg2sK5L2tRkVsVlh7kueqOgg4GEcuipJcGuKg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-B8m6tD5+/N5FeNQFbKlLA/2yVq9ycQP1SeedyEYYKWBNR3ZQbkvIUcNnDNM03lO1l5F2roiiFJGgvoLLyZXtSg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-JY4w85pU3iAiJVMh5nuk4/Mh9GjMsupe8MrIN53rwxAZW64GKrWeJBuN6SxQg9QTU5uB1cxyhDzW8jqRn1EABw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-pSdpdUJHkuCxun9LE7jvgUB9qsRgaiyNNCX7m/AvHTcq67AiT/Yhoxvw5zPfhrM8k/BfP8ce/hMOpthKDpEUow==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-xvpA7o5KCYLB0Rwscmuylb1/zHHSUx4g4xilm4prC5jP76pEUlzBmMbgpbh7bVDbId4NcfT96gN5i6mE6UDaiw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+'@rolldown/[email protected]':resolution: {integrity: sha512-OXXS3RKJgX2uLwM+gYyuH5omcH8fL1LJs96pZGgtetVCahON57+d4SJHzTgZiOjxgGkSnpXpOsWuPDGAKAigEg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [openharmony]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-p/ts6KBLjuk49Bp21XH77poQGt02iNz7ChgHep7tudPOaLinR/De/RHdxF8w8Yj4r/bF/bqXwH6PZrB2sA+Nvw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [openharmony]+'@rolldown/[email protected]':resolution: {integrity: sha512-JTtb8BWFynicNSoPrehsCzBtOKjZ6jhMiPFEmOiuXg1Fl8dn2KHQob+GuPSGR0dryQa1PQJbzjF3dqO/whhjLg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [wasm32]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-VMu/wmrZ9hJzYlRhbw7jK5PODlugyKZ5mOdX78+lS8OvuFkWNQdz1pFLrI2p3P0pjXOmUZ7B48o5VnMH9QOGtg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [wasm32]+'@rolldown/[email protected]':resolution: {integrity: sha512-gEdFFEN70A/jxb2svrWsN3aDL7OUtmvlOy+6fa2jxG8K0wQ1ZbdeLGnidov6Yu5/733dI5ySfzFlQ/cb0bSz1g==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [win32]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-xtUJqs8qEkuSviS0n1tsohaPuz3a1SPhZywOji4Oo+sgrJs8daEDMZ0QtqL0OS7dx8PoVpg2J/ZZycPY5I2+Zg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]+'@rolldown/[email protected]':resolution: {integrity: sha512-eXB7CHuaQdqmJcc3koCNtNPmT/bj2gc999kUFgBxG8Ac0NdgXc4rkCHhqrgrhN3zddvvvrgzj1e90SuSfmyIXA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [win32]+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-85YiLQqjUKgSO/Zjnf9e0XIn5Ymrh1fLDWBeAkZqpuBR/3R8TpfoHXuyblqyQrftSSgWO9qpcHN8mkyKsLraoA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]+'@rolldown/[email protected]':resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==}@@ -6917,6 +7018,11 @@ packages:engines: {node: ^20.19.0 || >=22.12.0}hasBin: true+ resolution: {integrity: sha512-x0CrQQqCXWGeI8dTvFfN/Dnv3yMKT9hv5jFjlOreKAx9wqLq9wz7VvLLHyaAXC90/CpggTu9SisSbsJJTPSjNQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}@@ -9453,16 +9559,32 @@ snapshots:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.2.2+ tslib: 2.8.1+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+dependencies:eslint: 9.39.2([email protected])@@ -9947,13 +10069,20 @@ snapshots:dependencies:make-plural: 7.5.0dependencies:'@emnapi/core': 1.10.0'@emnapi/runtime': 1.10.0'@tybys/wasm-util': 0.10.2optional: true+ dependencies:+ '@emnapi/core': 1.11.1+ '@emnapi/runtime': 1.11.1+ '@tybys/wasm-util': 0.10.2+ optional: true+'@nicolo-ribaudo/[email protected]':dependencies:eslint-scope: 5.1.1@@ -10154,7 +10283,7 @@ snapshots:dependencies:'@emnapi/core': 1.10.0'@emnapi/runtime': 1.10.0- '@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])+ '@napi-rs/wasm-runtime': 1.1.5(@emnapi/[email protected])(@emnapi/[email protected])optional: true'@oxc-parser/[email protected]':@@ -10170,6 +10299,8 @@ snapshots:'@oxc-project/[email protected]': {}+ '@oxc-project/[email protected]': {}+'@pkgjs/[email protected]':optional: true@@ -10197,52 +10328,101 @@ snapshots:'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':dependencies:'@emnapi/core': 1.10.0'@emnapi/runtime': 1.10.0- '@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])+ '@napi-rs/wasm-runtime': 1.1.5(@emnapi/[email protected])(@emnapi/[email protected])+ optional: true++ '@rolldown/[email protected]':+ dependencies:+ '@emnapi/core': 1.11.1+ '@emnapi/runtime': 1.11.1+ '@napi-rs/wasm-runtime': 1.1.5(@emnapi/[email protected])(@emnapi/[email protected])optional: true'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]':optional: true+ '@rolldown/[email protected]':+ optional: true+'@rolldown/[email protected]': {}'@rollup/[email protected]':@@ -15385,6 +15565,27 @@ snapshots:'@rolldown/binding-win32-arm64-msvc': 1.0.3'@rolldown/binding-win32-x64-msvc': 1.0.3+ dependencies:+ '@oxc-project/types': 0.137.0+ '@rolldown/pluginutils': 1.0.1+ optionalDependencies:+ '@rolldown/binding-android-arm64': 1.1.2+ '@rolldown/binding-darwin-arm64': 1.1.2+ '@rolldown/binding-darwin-x64': 1.1.2+ '@rolldown/binding-freebsd-x64': 1.1.2+ '@rolldown/binding-linux-arm-gnueabihf': 1.1.2+ '@rolldown/binding-linux-arm64-gnu': 1.1.2+ '@rolldown/binding-linux-arm64-musl': 1.1.2+ '@rolldown/binding-linux-ppc64-gnu': 1.1.2+ '@rolldown/binding-linux-s390x-gnu': 1.1.2+ '@rolldown/binding-linux-x64-gnu': 1.1.2+ '@rolldown/binding-linux-x64-musl': 1.1.2+ '@rolldown/binding-openharmony-arm64': 1.1.2+ '@rolldown/binding-wasm32-wasi': 1.1.2+ '@rolldown/binding-win32-arm64-msvc': 1.1.2+ '@rolldown/binding-win32-x64-msvc': 1.1.2+