Skip to content

Commit 16db3da

Browse files
authored
Update npm dependencies (#51)
This is a dependency update that resolves some outstanding security notices. I updated the Nuxt config to account for a couple new features of the dev server: - Explicitly allow requests referred from a local development domain - Pre-optimize some modules to avoid full page reloads during development <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changes ### Dependencies Updated - **nuxt**: `^4.0.0` → `^4.4.6` - **vue**: `^3.4.19` → `^3.5.34` ### Nuxt Configuration Enhanced Added `vite` configuration to `nuxt.config.ts`: - **Dev Server**: Restricted `allowedHosts` to `workspaces.local` to explicitly allow requests from the local development domain. - **Pre-bundling**: Configured `optimizeDeps.include` to pre-bundle key dependencies, reducing full page reloads during development. Included modules: `@osmcha/*`, `@sindresorhus/slugify`, Vue devtools packages, `@zip.js/zip.js`, `ajv`/`ajv-formats`, `bootstrap-vue-next` components/composables, `dayjs` plugins, `maplibre-gl`, `papaparse`, `vue-qrcode`, and `vue3-toastify`. ### CI Workflow - Updated GitHub Actions workflow (.github/workflows/ci.yml) to use **Node.js 24** instead of 20. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/TaskarCenterAtUW/workspaces-frontend/pull/51?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents a48e720 + db6cf35 commit 16db3da

4 files changed

Lines changed: 6536 additions & 7179 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v4
1616

1717
- name: Set up Node.js
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v4
1919
with:
20-
node-version: '20'
20+
node-version: '24'
2121

2222
- name: Install dependencies
2323
run: npm ci
2424

2525
- name: Run lint script
26-
run: npm run lint
26+
run: npm run lint

nuxt.config.ts

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,43 @@ export default defineNuxtConfig({
5252
debug: (process.env.ENV === 'dev' || process.env.ENV === 'local'),
5353
environment: process.env.ENV || 'unknown',
5454
},
55-
})
55+
vite: {
56+
server: {
57+
allowedHosts: [
58+
'workspaces.local',
59+
],
60+
},
61+
optimizeDeps: {
62+
// Pre-bundle these dependencies to avoid reloads during development:
63+
include: [
64+
'@osmcha/maplibre-adiff-viewer',
65+
'@osmcha/osmchange-parser',
66+
'@sindresorhus/slugify',
67+
'@vue/devtools-core',
68+
'@vue/devtools-kit',
69+
'@zip.js/zip.js',
70+
'ajv', // CJS
71+
'ajv-formats', // CJS
72+
'bootstrap-vue-next',
73+
'bootstrap-vue-next/components/BAlert',
74+
'bootstrap-vue-next/components/BApp',
75+
'bootstrap-vue-next/components/BBadge',
76+
'bootstrap-vue-next/components/BButton',
77+
'bootstrap-vue-next/components/BCard',
78+
'bootstrap-vue-next/components/BContainer',
79+
'bootstrap-vue-next/components/BDropdown',
80+
'bootstrap-vue-next/components/BFormInput',
81+
'bootstrap-vue-next/components/BListGroup',
82+
'bootstrap-vue-next/components/BModal',
83+
'bootstrap-vue-next/components/BPopover',
84+
'bootstrap-vue-next/composables/useModal',
85+
'dayjs', // CJS
86+
'dayjs/plugin/relativeTime', // CJS
87+
'maplibre-gl', // CJS
88+
'papaparse', // CJS
89+
'vue-qrcode',
90+
'vue3-toastify',
91+
],
92+
},
93+
},
94+
});

0 commit comments

Comments
 (0)