Skip to content

Commit

Permalink
chore(deps): update all non-major dependencies (#157)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <[email protected]>
  • Loading branch information
renovate[bot] and danielroe committed May 20, 2024
1 parent ebbbefe commit bf586c4
Show file tree
Hide file tree
Showing 7 changed files with 976 additions and 310 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"devDependencies": {
"@iconify-json/carbon": "^1.1.33",
"@nuxt/devtools": "latest",
"@nuxt/eslint-config": "^0.3.12",
"@nuxt/eslint-config": "^0.3.13",
"@nuxt/module-builder": "^0.6.0",
"@nuxt/schema": "^3.11.2",
"@nuxt/test-utils": "^3.13.1",
Expand All @@ -73,15 +73,15 @@
"birpc": "^0.2.17",
"changelogen": "^0.5.5",
"consola": "^3.2.3",
"eslint": "^9.2.0",
"eslint": "^9.3.0",
"execa": "^9.1.0",
"nitropack": "^2.9.6",
"nuxt": "^3.11.2",
"nuxt-fonts-devtools": "workspace:*",
"ofetch": "^1.3.4",
"playwright-core": "^1.44.0",
"semver": "^7.6.2",
"shiki": "^1.5.2",
"shiki": "^1.6.0",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
"vite": "^5.2.11",
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"dependencies": {
"@nuxt/fonts": "latest",
"@nuxtjs/tailwindcss": "latest",
"@unocss/nuxt": "^0.60.2",
"@unocss/nuxt": "^0.60.3",
"nuxt": "latest",
"tailwindcss": "^3.4.3",
"unocss": "^0.60.2",
"unocss": "^0.60.3",
"vue": "latest",
"vue-router": "latest"
},
Expand Down
1,260 changes: 963 additions & 297 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/update-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function main() {
currentPR?.body.replace(/## 👉 Changelog[\s\S]*$/, '') || `> ${newVersion} is the next ${bumpType} release.\n>\n> **Timetable**: to be announced.`,
'## 👉 Changelog',
changelog
.replace(/^## v.*?\n/, '')
.replace(/^## v.*\n/, '')
.replace(`...${releaseBranch}`, `...v${newVersion}`)
.replace(/### ❤️ Contributors[\s\S]*$/, ''),
'### ❤️ Contributors',
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface FontFamilyInjectionPluginOptions {
fontsToPreload: Map<string, Set<string>>
}

const SKIP_RE = /\/node_modules\/(vite-plugin-vue-inspector)\//
const SKIP_RE = /\/node_modules\/vite-plugin-vue-inspector\//

// TODO: support shared chunks of CSS
export const FontFamilyInjectionPlugin = (options: FontFamilyInjectionPluginOptions) => createUnplugin(() => {
Expand Down Expand Up @@ -193,7 +193,7 @@ export const FontFamilyInjectionPlugin = (options: FontFamilyInjectionPluginOpti
})

// Copied from vue-bundle-renderer utils
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|pcss|less|stylus|styl)(\?[^.]+)?$/
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|pcss|less|stylus|styl)(?:\?[^.]+)?$/

function isCSS(id: string) {
return IS_CSS_RE.test(id)
Expand Down
8 changes: 4 additions & 4 deletions src/providers/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export default {
},
} satisfies FontProvider

const FONT_RE = /\.(ttf|woff|woff2|eot|otf)(\?[^.]+)?$/
const NON_WORD_RE = /[^\w\d]+/g
const FONT_RE = /\.(?:ttf|woff|woff2|eot|otf)(?:\?[^.]+)?$/
const NON_WORD_RE = /\W+/g

export const isFontFile = (id: string) => FONT_RE.test(id)

Expand Down Expand Up @@ -119,9 +119,9 @@ function generateSlugs(path: string) {

const slugs = new Set<string>()

for (const slug of [name.replace(/[.][\w\d]*$/, ''), name.replace(/[._-][\w\d]*$/, '')]) {
for (const slug of [name.replace(/\.\w*$/, ''), name.replace(/[._-]\w*$/, '')]) {
slugs.add([
fontFamilyToSlug(slug.replace(/[\W._-]+$/, '')),
fontFamilyToSlug(slug.replace(/[\W_]+$/, '')),
weightMap[weight] || weight,
style,
subset,
Expand Down
2 changes: 1 addition & 1 deletion test/parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('error handling', () => {
})
})

const slugify = (str: string) => str.toLowerCase().replace(/[^\d\w]/g, '-')
const slugify = (str: string) => str.toLowerCase().replace(/\W/g, '-')
async function transform(css: string) {
const plugin = FontFamilyInjectionPlugin({
dev: true,
Expand Down

0 comments on commit bf586c4

Please sign in to comment.