diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index bfcdda720..25a613907 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -202,6 +202,10 @@ function sidebarGuide() { text: 'Migrations', collapsible: true, items: [ + { + text: 'Breaking Changes in v12', + link: '/guide/migration/breaking12' + }, { text: 'Breaking Changes in v11', link: '/guide/migration/breaking11' diff --git a/docs/guide/migration/breaking12.md b/docs/guide/migration/breaking12.md new file mode 100644 index 000000000..0417af232 --- /dev/null +++ b/docs/guide/migration/breaking12.md @@ -0,0 +1,5 @@ +# Breaking Changes in v12 + +## Drop Custom Directive `v-t` + +**Reason**: This custom directive had already deprecated in warning about being dropped in v12. docs says, https://vue-i18n.intlify.dev/guide/migration/breaking11.html#deprecate-custom-directive-v-t diff --git a/e2e/directive/basic.spec.ts b/e2e/directive/basic.spec.ts deleted file mode 100644 index c6efad4bb..000000000 --- a/e2e/directive/basic.spec.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { getText, url } from '../helper' -;['composition', 'legacy'].forEach(pattern => { - describe(`${pattern}`, () => { - beforeAll(async () => { - await page.goto(url(`/examples/${pattern}/directive/basic.html`)) - }) - - test('initial rendering', async () => { - expect(await getText(page, 'label')).toMatch('言語') - expect(await getText(page, 'p')).toMatch('こんにちは、世界!') - }) - - test('change locale', async () => { - await page.selectOption('#app select', 'en') - expect(await getText(page, 'label')).toMatch('Language') - expect(await getText(page, 'p')).toMatch('hello world!') - }) - }) -}) diff --git a/e2e/directive/object.spec.ts b/e2e/directive/object.spec.ts deleted file mode 100644 index 529e70b4b..000000000 --- a/e2e/directive/object.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { getText, url } from '../helper' -;['composition', 'legacy'].forEach(pattern => { - describe(`${pattern}`, () => { - beforeAll(async () => { - await page.goto(url(`/examples/${pattern}/directive/object.html`)) - }) - - test('rendering', async () => { - expect(await getText(page, '#app p.p1')).toMatch('こんにちは、 kazupon!') - expect(await getText(page, '#app p.p2')).toMatch('good bye!') - }) - }) -}) diff --git a/e2e/directive/plural.spec.ts b/e2e/directive/plural.spec.ts deleted file mode 100644 index 837cb777f..000000000 --- a/e2e/directive/plural.spec.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { getText, url } from '../helper' -;['composition', 'legacy'].forEach(pattern => { - describe(`${pattern}`, () => { - beforeAll(async () => { - await page.goto(url(`/examples/${pattern}/directive/plural.html`)) - }) - - test('rendering', async () => { - expect(await getText(page, '#app p')).toMatch('2 bananas') - }) - }) -}) diff --git a/e2e/directive/preserve.spec.ts b/e2e/directive/preserve.spec.ts deleted file mode 100644 index 1d05275ee..000000000 --- a/e2e/directive/preserve.spec.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { getText, sleep, url } from '../helper' -;['composition', 'legacy'].forEach(pattern => { - describe(`${pattern}`, () => { - beforeAll(async () => { - await page.goto(url(`/examples/${pattern}/directive/preserve.html`)) - }) - - test('initial rendering', async () => { - expect(await getText(page, '#app p')).toMatch('hi there!') - }) - - test('trigger transition', async () => { - await page.click('#app button') - expect(await getText(page, '#app p')).toMatch('hi there!') - await sleep(1000) - await page.click('#app button') - expect(await getText(page, '#app p')).toMatch('hi there!') - }) - }) -}) diff --git a/examples/composition/directive/basic.html b/examples/composition/directive/basic.html deleted file mode 100644 index b4b992c85..000000000 --- a/examples/composition/directive/basic.html +++ /dev/null @@ -1,56 +0,0 @@ - - -
- -