Skip to content

Commit b701f92

Browse files
authored
fix(deps): unlock intlify v11 version range (#500)
* fix(deps): unlock intlify v11 version range * chore: fix tests
1 parent a5fc26f commit b701f92

File tree

8 files changed

+67
-30
lines changed

8 files changed

+67
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This changelog is generated by [GitHub Releases](https://github.com/intlify/bund
55
<!-- Release notes generated using configuration in .github/release.yml at v11.0.0-beta.4 -->
66

77
## What's Changed
8+
89
### ⚡ Improvement Features
9-
* fix: support rollup-vite compatibility by @kazupon in https://github.com/intlify/bundle-tools/pull/497
1010

11+
- fix: support rollup-vite compatibility by @kazupon in https://github.com/intlify/bundle-tools/pull/497
1112

1213
**Full Changelog**: https://github.com/intlify/bundle-tools/compare/v11.0.0-beta.3...v11.0.0-beta.4
1314

14-
1515
# v11.0.0-beta.3 (2025-05-19T09:16:04Z)
1616

1717
This changelog is generated by [GitHub Releases](https://github.com/intlify/bundle-tools/releases/tag/v11.0.0-beta.3)

packages/bundle-utils/test/generator/__snapshots__/codegen.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ exports[`generateMessageFunction > development 1`] = `
7777

7878
exports[`generateMessageFunction > escapeHtml > default: should not be escaped 1`] = `"(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hello</p>"])};fn.source="<p>hello</p>";return fn;})()"`;
7979

80-
exports[`generateMessageFunction > escapeHtml > true: should be escaped 1`] = `"(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hello&lt;/p&gt;"])};fn.source="<p>hello</p>";return fn;})()"`;
80+
exports[`generateMessageFunction > escapeHtml > true: should be escaped 1`] = `"(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hello&lt;&#x2F;p&gt;"])};fn.source="<p>hello</p>";return fn;})()"`;
8181

8282
exports[`generateMessageFunction > production 1`] = `
8383
{

packages/bundle-utils/test/generator/__snapshots__/js.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ exports[`force stringify > map 1`] = `
369369

370370
exports[`html tag in message > code 1`] = `
371371
"{
372-
"hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hi there!&lt;/p&gt;"])};fn.source="<p>hi there!</p>";return fn;})(),
373-
"alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;/script&gt;"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
372+
"hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hi there!&lt;&#x2F;p&gt;"])};fn.source="<p>hi there!</p>";return fn;})(),
373+
"alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;&#x2F;script&gt;"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
374374
}"
375375
`;
376376

packages/bundle-utils/test/generator/__snapshots__/json.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ exports[`code generation > force stringify > map 1`] = `
522522
523523
exports[`code generation > html tag in message > code 1`] = `
524524
"{
525-
"hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hi there!&lt;/p&gt;"])};fn.source="<p>hi there!</p>";return fn;})(),
526-
"alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;/script&gt;"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
525+
"hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hi there!&lt;&#x2F;p&gt;"])};fn.source="<p>hi there!</p>";return fn;})(),
526+
"alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;&#x2F;script&gt;"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
527527
}"
528528
`;
529529

packages/bundle-utils/test/generator/__snapshots__/yaml.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ exports[`bare > map 1`] = `
160160

161161
exports[`html tag in message > code 1`] = `
162162
"{
163-
"hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hi there!&lt;/p&gt;"])};fn.source="<p>hi there!</p>";return fn;})(),
164-
"alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;/script&gt;"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
163+
"hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;p&gt;hi there!&lt;&#x2F;p&gt;"])};fn.source="<p>hi there!</p>";return fn;})(),
164+
"alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;&#x2F;script&gt;"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
165165
}"
166166
`;
167167

packages/unplugin-vue-i18n/test/vite/resource-compilation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ test('escape message', async () => {
9191
})
9292
)
9393
expect(compile(module.hi, {} as MessageCompilerContext)(createMessageContext())).toBe(
94-
`&lt;p&gt;hi there!&lt;/p&gt;`
94+
`&lt;p&gt;hi there!&lt;&#x2F;p&gt;`
9595
)
9696
expect(compile(module.alert, {} as MessageCompilerContext)(createMessageContext())).toBe(
97-
`&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;/script&gt;`
97+
`&lt;script&gt;window.alert(&apos;hi there!&apos;)&lt;&#x2F;script&gt;`
9898
)
9999
})

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ onlyBuiltDependencies:
55
- esbuild
66
catalogs:
77
intlify:
8-
'@intlify/shared': 11.1.3
9-
'@intlify/message-compiler': 11.1.3
10-
vue-i18n: 11.1.3
8+
'@intlify/shared': ^11.1.10
9+
'@intlify/message-compiler': ^11.1.10
10+
vue-i18n: ^11.1.10
1111
vite:
1212
'@vitejs/plugin-vue': ^5.2.4
1313
vite: ^6.3.5

0 commit comments

Comments
 (0)