Skip to content

Commit

Permalink
build: Update Vue to 3.5.13
Browse files Browse the repository at this point in the history
Temporarily comment out `expose` in the components that use it, until
vuejs/language-tools#5069 is resolved.

Bug: T374140
Change-Id: I358722b602cedb88075df681a4d677abb10fe5b5
  • Loading branch information
catrope authored and jenkins-bot committed Jan 9, 2025
1 parent 6a3cd19 commit b56b063
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = {
],
rules: {
'vue/no-unsupported-features': [ 'error', {
version: '^3.4.28'
version: '^3.5.13'
} ],
'vue/component-name-in-template-casing': [ 'error', 'kebab-case' ],
'vue/custom-event-name-casing': [ 'error', 'kebab-case' ]
Expand Down
150 changes: 59 additions & 91 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/codex-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"prismjs": "1.29.0",
"svglint": "3.1.0",
"svgo": "3.3.2",
"vue": "3.4.28"
"vue": "3.5.13"
},
"devDependencies": {
"@types/escape-html": "1.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/codex/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"rules": {
"vue/no-unsupported-features": [ "error", {
"version": "^3.4.28"
"version": "^3.5.13"
} ],
"vue/component-name-in-template-casing": [ "error", "kebab-case" ]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/codex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"vue-tsc": "2.1.10"
},
"peerDependencies": {
"vue": "3.4.28"
"vue": "3.5.13"
},
"dependencies": {
"@floating-ui/vue": "1.0.6",
Expand Down
4 changes: 4 additions & 0 deletions packages/codex/src/components/input-chip/InputChip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ export default defineComponent( {
default: false
}
},
// expose is temporarily disabled to work around a Vue / vue-tsc bug, see
// https://github.com/vuejs/language-tools/issues/5069
/*
expose: [
'focus'
],
*/
emits: [
/**
* Emitted when a chip is removed by the user.
Expand Down
5 changes: 5 additions & 0 deletions packages/codex/src/components/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ export default defineComponent( {
*/
'load-more'
],
// expose is temporarily disabled to work around a Vue / vue-tsc bug, see
// https://github.com/vuejs/language-tools/issues/5069
/*
expose: [
'isExpanded',
'clearActive',
Expand All @@ -317,6 +320,7 @@ export default defineComponent( {
'getComputedMenuItems',
'delegateKeyNavigation'
],
*/
setup( props, { emit, slots, attrs } ) {
/**
* Computed array of menu items and groups with a unique ID added to each menu item. This
Expand Down Expand Up @@ -1077,6 +1081,7 @@ export default defineComponent( {
*
* @return {boolean}
*/
// eslint-disable-next-line vue/no-unused-properties
isExpanded(): boolean {
return this.expanded;
},
Expand Down
4 changes: 4 additions & 0 deletions packages/codex/src/components/tabs/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,15 @@ export default defineComponent( {
* Some methods are exposed to allow for programmatic selection of
* the active tab from outside of the component.
*/
// expose is temporarily disabled to work around a Vue / vue-tsc bug, see
// https://github.com/vuejs/language-tools/issues/5069
/*
expose: [
'select',
'next',
'prev'
],
*/
setup( props, { slots, emit } ) {
const rootElement = ref<HTMLDivElement>();
Expand Down
4 changes: 4 additions & 0 deletions packages/codex/src/components/text-area/TextArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ export default defineComponent( {
name: 'CdxTextArea',
components: { CdxIcon },
inheritAttrs: false,
// expose is temporarily disabled to work around a Vue / vue-tsc bug, see
// https://github.com/vuejs/language-tools/issues/5069
/*
expose: [
'focus',
'blur',
'checkValidity',
'reportValidity',
'setCustomValidity'
],
*/
props: {
/**
* Current value of the textarea.
Expand Down
4 changes: 4 additions & 0 deletions packages/codex/src/components/text-input/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@ export default defineComponent( {
*/
inheritAttrs: false,
// expose is temporarily disabled to work around a Vue / vue-tsc bug, see
// https://github.com/vuejs/language-tools/issues/5069
/*
expose: [
'focus',
'blur',
'checkValidity',
'reportValidity',
'setCustomValidity'
],
*/
props: {
/**
Expand Down

0 comments on commit b56b063

Please sign in to comment.