Skip to content

Commit

Permalink
chore(deps): bump dependencies (#1792)
Browse files Browse the repository at this point in the history
* chore(deps): bump dependencies, make vue default export type safe

* chore(deps): bump @carbon/icon-helpers and style-loader and improve typing on stories
  • Loading branch information
nstuyvesant committed Apr 18, 2024
1 parent 6e94b7f commit effa218
Show file tree
Hide file tree
Showing 13 changed files with 1,502 additions and 1,033 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build:
if: github.actor != 'carbon-bot' && !startsWith(github.event.head_commit.message, 'skip-release')
name: Create release - Node.js v18.19.1
name: Create release - Node.js v18.20.1
runs-on: ubuntu-latest

steps:
Expand All @@ -16,10 +16,10 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN }}

- name: Use Node.js 18.19.1
- name: Use Node.js 18.20.1
uses: actions/setup-node@v4
with:
node-version: '18.19.1'
node-version: '18.20.1'

- name: Install dependencies 🔧
run: yarn install --immutable --check-cache
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
18.19.1
18.20.1
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -23,12 +23,12 @@
"packages/*"
],
"engines": {
"node": "^18.19.1"
"node": "^18.20.1"
},
"packageManager": "yarn@4.1.1",
"prettier": "./prettier.config.mjs",
"devDependencies": {
"@nrwl/devkit": "^18.1.2",
"@nrwl/devkit": "^18.2.4",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
Expand All @@ -41,31 +41,31 @@
"@storybook/theming": "^7.6.17",
"@storybook/vue3": "^7.6.17",
"@storybook/vue3-vite": "^7.6.17",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-vue": "^9.23.0",
"eslint-plugin-svelte": "^2.37.0",
"eslint-plugin-vue": "^9.24.1",
"husky": "^9.0.11",
"lerna": "8.1.2",
"pinst": "^3.0.0",
"prettier": "^3.2.5",
"prettier-config-carbon": "^0.11.0",
"prettier-eslint": "^16.3.0",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-svelte": "^3.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.17",
"vite": "^5.1.6",
"vite": "^5.2.8",
"vue": "^3.4.21"
},
"husky": {
Expand Down
12 changes: 6 additions & 6 deletions packages/angular/package.json
Expand Up @@ -35,27 +35,27 @@
},
"dependencies": {
"@carbon/charts": "workspace:*",
"@ibm/telemetry-js": "^1.3.0",
"@ibm/telemetry-js": "^1.4.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^16.2.12",
"@angular-devkit/build-angular": "^16.2.14",
"@angular-eslint/builder": "^16.3.1",
"@angular-eslint/eslint-plugin": "^16.3.1",
"@angular-eslint/eslint-plugin-template": "^16.3.1",
"@angular-eslint/schematics": "^16.3.1",
"@angular-eslint/template-parser": "^16.3.1",
"@angular/animations": "^16.2.12",
"@angular/cli": "^16.2.12",
"@angular/cli": "^16.2.14",
"@angular/common": "^16.2.12",
"@angular/compiler": "^16.2.12",
"@angular/compiler-cli": "^16.2.12",
"@angular/core": "^16.2.12",
"@angular/forms": "^16.2.12",
"@angular/platform-browser": "^16.2.12",
"@angular/platform-browser-dynamic": "^16.2.12",
"@carbon/icon-helpers": "~10.45.1",
"@carbon/icons": "^11.38.0",
"@carbon/icon-helpers": "~10.47.0",
"@carbon/icons": "^11.39.0",
"@stackblitz/sdk": "^1.9.0",
"@storybook/angular": "^7.6.17",
"@types/carbon__icon-helpers": "^10.7.4",
Expand All @@ -67,7 +67,7 @@
"ng-packagr": "^16.2.3",
"rxjs": "~7.8.1",
"storybook": "^7.6.17",
"style-loader": "^3.3.4",
"style-loader": "^4.0.0",
"typescript": "~5.1.6",
"zone.js": "~0.14.4"
},
Expand Down
Expand Up @@ -10,8 +10,8 @@ const DEFAULT_THEME = ChartTheme.WHITE
const nodeHeight = 64
const nodeWidth = 200
const circleSize = 64
const userIconStr = toString({ ...userIcon, attrs: getAttributes(userIcon.attrs) })
const wikisIconStr = toString({ ...wikisIcon, attrs: getAttributes(wikisIcon.attrs) })
const userIconStr = toString({ ...userIcon, attrs: getAttributes(userIcon.attrs) as Record<string, string> })
const wikisIconStr = toString({ ...wikisIcon, attrs: getAttributes(wikisIcon.attrs) as Record<string, string> })

const stories = storiesOf('Diagrams', module)
stories.addDecorator(
Expand Down
Expand Up @@ -6,10 +6,10 @@ import chevronDownIcon from '@carbon/icons/es/chevron--down/16'
import { CardNodeModule } from '../../'

const DEFAULT_THEME = ChartTheme.WHITE
const screenIconStr = toString({ ...screenIcon, attrs: getAttributes(screenIcon.attrs) })
const screenIconStr = toString({ ...screenIcon, attrs: getAttributes(screenIcon.attrs) as Record<string, string> })
const chevronDownIconStr = toString({
...chevronDownIcon,
attrs: getAttributes(chevronDownIcon.attrs)
attrs: getAttributes(chevronDownIcon.attrs) as Record<string, string>
})

const getTemplate = (content: string) => `
Expand Down
Expand Up @@ -6,7 +6,7 @@ import { ShapeNodeModule } from '../../'
import { getTemplate } from './utils'

const DEFAULT_THEME = ChartTheme.WHITE
const screenIconStr = toString({ ...screenIcon, attrs: getAttributes(screenIcon.attrs) })
const screenIconStr = toString({ ...screenIcon, attrs: getAttributes(screenIcon.attrs) as Record<string, string> })

storiesOf('Diagrams/Nodes/Shape', module)
.addDecorator(
Expand Down
22 changes: 11 additions & 11 deletions packages/core/package.json
Expand Up @@ -81,14 +81,14 @@
},
"dependencies": {
"@carbon/colors": "^11.21.0",
"@carbon/utils-position": "^1.1.4",
"@ibm/telemetry-js": "^1.3.0",
"@carbon/utils-position": "^1.2.0",
"@ibm/telemetry-js": "^1.4.0",
"carbon-components": "^10.58.14",
"d3": "^7.9.0",
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"date-fns": "^3.6.0",
"dompurify": "^3.0.10",
"dompurify": "^3.1.0",
"html-to-image": "^1.11.11",
"lodash-es": "^4.17.21",
"topojson-client": "^3.1.0",
Expand All @@ -109,8 +109,8 @@
},
"devDependencies": {
"@carbon/layout": "^11.21.0",
"@carbon/styles": "^1.53.1",
"@carbon/themes": "^11.33.1",
"@carbon/styles": "^1.55.0",
"@carbon/themes": "^11.34.0",
"@rollup/plugin-replace": "^5.0.5",
"@stackblitz/sdk": "^1.9.0",
"@types/d3": "^7.4.3",
Expand All @@ -123,13 +123,13 @@
"downlevel-dts": "^0.11.0",
"jsdom": "^24.0.0",
"resize-observer-polyfill": "^1.5.1",
"sass": "^1.72.0",
"sass": "^1.75.0",
"storybook": "^7.6.17",
"typedoc": "^0.25.12",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"vite-plugin-dts": "^3.7.3",
"vitest": "^1.4.0"
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.2",
"vitest": "^1.5.0"
},
"publishConfig": {
"access": "public"
Expand Down
16 changes: 8 additions & 8 deletions packages/react/package.json
Expand Up @@ -41,8 +41,8 @@
},
"dependencies": {
"@carbon/charts": "workspace:*",
"@carbon/icons-react": "^11.38.0",
"@ibm/telemetry-js": "^1.3.0",
"@carbon/icons-react": "^11.39.0",
"@ibm/telemetry-js": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand All @@ -52,20 +52,20 @@
},
"devDependencies": {
"@stackblitz/sdk": "1.9.0",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@types/react": "^18.2.77",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"classnames": "^2.5.1",
"concurrently": "^8.2.2",
"d3": "^7.9.0",
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"downlevel-dts": "^0.11.0",
"sass": "^1.72.0",
"sass": "^1.75.0",
"storybook": "^7.6.17",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"vite-plugin-dts": "^3.7.3"
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.2"
},
"publishConfig": {
"access": "public"
Expand Down
20 changes: 10 additions & 10 deletions packages/svelte/package.json
Expand Up @@ -44,26 +44,26 @@
},
"dependencies": {
"@carbon/charts": "workspace:*",
"@ibm/telemetry-js": "^1.3.0"
"@ibm/telemetry-js": "^1.4.0"
},
"devDependencies": {
"@stackblitz/sdk": "^1.9.0",
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/kit": "^2.5.4",
"@sveltejs/package": "^2.3.0",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.5",
"@sveltejs/package": "^2.3.1",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"concurrently": "^8.2.2",
"d3": "^7.9.0",
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"publint": "^0.2.7",
"storybook": "^7.6.17",
"svelte": "^4.2.12",
"svelte-check": "^3.6.8",
"svelte": "^4.2.14",
"svelte-check": "^3.6.9",
"tslib": "^2.6.2",
"typescript": "^5.4.2",
"vite": "^5.1.6"
"typescript": "^5.4.5",
"vite": "^5.2.8"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/vue/package.json
Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@carbon/charts": "workspace:*",
"@ibm/telemetry-js": "^1.3.0",
"@ibm/telemetry-js": "^1.4.0",
"vue": "^3.4.21"
},
"devDependencies": {
Expand All @@ -52,10 +52,10 @@
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"storybook": "^7.6.17",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"vite-plugin-dts": "^3.7.3",
"vue-tsc": "^2.0.6"
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.2",
"vue-tsc": "^2.0.13"
},
"publishConfig": {
"access": "public",
Expand Down
9 changes: 5 additions & 4 deletions packages/vue/src/index.ts
Expand Up @@ -61,11 +61,12 @@ const components = [
*/
export default {
install(app: any, options?: string[]) {
for (const component of components) {
if (!options || options.includes(component.name)) {
app.component(component.name, component)
for (const component of components) {
// Check that component.name is defined and is a string
if (component.name && (!options || options.includes(component.name))) {
app.component(component.name, component);
}
}
}
}
}

Expand Down

0 comments on commit effa218

Please sign in to comment.