Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 deps(patch): upgrade dependencies #2580

Merged
merged 4 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/node-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"devDependencies": {
"@roots/bud": "workspace:*",
"@roots/bud-swc": "workspace:*",
"webpack": "5.89.0",
"webpack": "5.91.0",
"webpack-cli": "5.1.4"
}
}
4 changes: 2 additions & 2 deletions examples/vue-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"@roots/bud-vue": "workspace:*"
},
"dependencies": {
"vue": "2.7.15",
"vue": "2.7.16",
"vue-loader": "15.11.1",
"vue-template-compiler": "2.7.15"
"vue-template-compiler": "2.7.16"
}
}
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@
"@roots/bud-framework": "workspace:*",
"@roots/bud-support": "workspace:*",
"@skypack/package-check": "0.2.2",
"@types/eslint": "8.56.0",
"@types/lodash": "4.14.202",
"@types/node": "20.10.5",
"@types/eslint": "8.56.10",
"@types/lodash": "4.17.0",
"@types/node": "20.12.7",
"@types/prettier": "3.0.0",
"@types/react": "18.2.45",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"@vitest/coverage-v8": "1.1.0",
"@vitest/ui": "1.1.0",
"browserslist": "4.22.2",
"caniuse-lite": "1.0.30001570",
"esbuild": "0.19.10",
"eslint": "8.56.0",
"eslint-plugin-n": "16.5.0",
"eslint-plugin-perfectionist": "2.5.0",
"eslint-plugin-react": "7.33.2",
"@types/react": "18.2.79",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@vitest/coverage-v8": "1.5.1",
"@vitest/ui": "1.5.1",
"browserslist": "4.23.0",
"caniuse-lite": "1.0.30001612",
"esbuild": "0.19.12",
"eslint": "8.57.0",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-perfectionist": "2.10.0",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-sort-class-members": "1.19.0",
"eslint-plugin-sort-class-members": "1.20.0",
"execa": "8.0.1",
"highlight.js": "11.9.0",
"html-loader": "4.2.0",
Expand All @@ -47,18 +47,18 @@
"ink-testing-library": "3.0.0",
"parse5-htmlparser2-tree-adapter": "7.0.0",
"patch-console": "2.0.0",
"playwright": "1.40.1",
"pm2": "5.3.0",
"prettier": "3.1.1",
"playwright": "1.43.1",
"pm2": "5.3.1",
"prettier": "3.2.5",
"syncpack": "11.2.1",
"ts-node": "10.9.2",
"tslib": "2.6.2",
"typescript": "5.3.3",
"typescript": "5.4.5",
"update-browserslist-db": "1.0.13",
"verdaccio": "5.29.0",
"vitest": "1.1.0",
"verdaccio": "5.30.3",
"vitest": "1.5.1",
"vitest-github-actions-reporter": "0.11.1",
"webpack": "5.89.0"
"webpack": "5.91.0"
},
"workspaces": {
"packages": [
Expand Down
4 changes: 2 additions & 2 deletions sources/@repo/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
}
},
"devDependencies": {
"@types/node": "20.10.5",
"vitest": "1.1.0"
"@types/node": "20.12.7",
"vitest": "1.5.1"
},
"dependencies": {
"tslib": "2.6.2"
Expand Down
32 changes: 16 additions & 16 deletions sources/@repo/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
"directory": "/sources/docs"
},
"devDependencies": {
"@docusaurus/core": "3.0.1",
"@docusaurus/module-type-aliases": "3.0.1",
"@docusaurus/preset-classic": "3.0.1",
"@docusaurus/remark-plugin-npm2yarn": "3.0.1",
"@mdx-js/react": "^3.0.0",
"@docusaurus/core": "3.2.1",
"@docusaurus/module-type-aliases": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/remark-plugin-npm2yarn": "3.2.1",
"@mdx-js/react": "^3.0.1",
"@repo/constants": "workspace:*",
"@svgr/webpack": "8.1.0",
"@tsconfig/docusaurus": "2.0.2",
"@tsconfig/docusaurus": "2.0.3",
"@types/file-loader": "5.0.4",
"@types/node": "20.10.5",
"@types/react": "18.2.45",
"@types/react-dom": "18.2.18",
"@types/node": "20.12.7",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"file-loader": "6.2.0",
"netlify-cli": "16.9.3",
"raw-loader": "4.0.2",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"typescript": "5.4.5",
"url-loader": "4.1.1",
"webpack": "5.89.0"
"webpack": "5.91.0"
},
"dependencies": {
"@docusaurus/theme-classic": "3.0.1",
"@docusaurus/theme-common": "3.0.1",
"axios": "1.6.2",
"clsx": "2.0.0",
"docusaurus-lunr-search": "3.3.1",
"@docusaurus/theme-classic": "3.2.1",
"@docusaurus/theme-common": "3.2.1",
"axios": "1.6.8",
"clsx": "2.1.1",
"docusaurus-lunr-search": "3.3.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"tslib": "2.6.2"
Expand Down
16 changes: 8 additions & 8 deletions sources/@repo/markdown-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
},
"devDependencies": {
"@types/lodash-es": "4.17.12",
"@types/node": "20.10.5",
"@types/node": "20.12.7",
"@types/prettier": "3.0.0",
"vitest": "1.1.0"
"vitest": "1.5.1"
},
"dependencies": {
"@octokit/core": "5.0.2",
"@octokit/plugin-paginate-rest": "9.1.5",
"@octokit/core": "5.2.0",
"@octokit/plugin-paginate-rest": "9.2.1",
"@repo/constants": "workspace:*",
"@roots/bud": "workspace:*",
"@roots/bud-support": "workspace:*",
"dotenv": "16.3.1",
"dotenv": "16.4.5",
"execa": "8.0.1",
"fs-jetpack": "5.1.0",
"globby": "13.2.2",
Expand All @@ -28,11 +28,11 @@
"helpful-decorators": "2.1.0",
"json5": "2.2.3",
"lodash-es": "4.17.21",
"octokit": "3.1.2",
"prettier": "3.1.1",
"octokit": "3.2.0",
"prettier": "3.2.5",
"strip-ansi": "7.1.0",
"tslib": "2.6.2",
"typescript": "5.3.3"
"typescript": "5.4.5"
},
"scripts": {
"build": "yarn tsc -b"
Expand Down
4 changes: 2 additions & 2 deletions sources/@repo/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@repo/notifier",
"private": true,
"devDependencies": {
"@types/node": "20.10.5",
"vitest": "1.1.0"
"@types/node": "20.12.7",
"vitest": "1.5.1"
},
"dependencies": {
"tslib": "2.6.2"
Expand Down
4 changes: 2 additions & 2 deletions sources/@repo/test-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@roots/bud-compiler": "workspace:*",
"@roots/bud-framework": "workspace:*",
"@roots/bud-support": "workspace:*",
"@types/node": "20.10.5",
"@types/node": "20.12.7",
"chalk": "5.3.0",
"execa": "8.0.1",
"fs-jetpack": "5.1.0",
Expand All @@ -40,7 +40,7 @@
"json5": "2.2.3",
"strip-ansi": "7.1.0",
"tslib": "2.6.2",
"vitest": "1.1.0"
"vitest": "1.5.1"
},
"volta": {
"extends": "../../../package.json"
Expand Down
6 changes: 5 additions & 1 deletion sources/@repo/test-kit/tests/isCompiledCss.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import {expect} from 'vitest'

export default (css: string) => {
export default (css: unknown) => {
if (typeof css !== `string`) {
throw new Error(`Expected js to be a string`)
}

expect(css).toEqual(expect.any(String))
expect(css.length).toBeGreaterThan(1)

Expand Down
5 changes: 4 additions & 1 deletion sources/@repo/test-kit/tests/isCompiledJs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {expect} from 'vitest'

export default (js: string) => {
export default (js: unknown) => {
if (typeof js !== `string`) {
throw new Error(`Expected js to be a string`)
}
expect(js.length).toBeGreaterThan(1)
expect(() => new Function(js)).not.toThrow()
expect(js.match(/\simport\s/)).toBeFalsy()
Expand Down
16 changes: 8 additions & 8 deletions sources/@repo/yarn-plugin-bud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
"node": "18.12.1"
},
"devDependencies": {
"@types/lodash": "4.14.202",
"@types/node": "20.10.5",
"@types/semver": "7.5.6",
"@types/lodash": "4.17.0",
"@types/node": "20.12.7",
"@types/semver": "7.5.8",
"@yarnpkg/builder": "patch:@yarnpkg/builder@npm%3A4.0.0#~/.yarn/patches/@yarnpkg-builder-npm-4.0.0-1be968e10e.patch",
"typescript": "5.3.3"
"typescript": "5.4.5"
},
"dependencies": {
"@repo/constants": "workspace:*",
"@yarnpkg/cli": "4.0.2",
"@yarnpkg/core": "4.0.2",
"@yarnpkg/cli": "4.1.1",
"@yarnpkg/core": "4.0.3",
"@yarnpkg/shell": "4.0.0",
"clipanion": "4.0.0-rc.2",
"clipanion": "4.0.0-rc.3",
"fs-jetpack": "5.1.0",
"globby": "13.2.2",
"lodash": "4.17.21",
"semver": "7.5.4",
"semver": "7.6.0",
"tslib": "2.6.2"
},
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions sources/@repo/yarn-plugin-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"main": "./sources/index.ts",
"dependencies": {
"@types/lodash-es": "4.17.12",
"@types/node": "20.10.5",
"@types/node": "20.12.7",
"@yarnpkg/builder": "patch:@yarnpkg/builder@npm%3A4.0.0#~/.yarn/patches/@yarnpkg-builder-npm-4.0.0-1be968e10e.patch",
"@yarnpkg/cli": "4.0.2",
"@yarnpkg/core": "4.0.2",
"@yarnpkg/cli": "4.1.1",
"@yarnpkg/core": "4.0.3",
"@yarnpkg/shell": "4.0.0",
"clipanion": "4.0.0-rc.2",
"clipanion": "4.0.0-rc.3",
"fs-jetpack": "5.1.0",
"helpful-decorators": "2.1.0",
"lodash-es": "4.17.21",
"tslib": "2.6.2",
"typescript": "5.3.3",
"vitest": "1.1.0"
"typescript": "5.4.5",
"vitest": "1.5.1"
},
"scripts": {
"build": "builder build plugin"
Expand Down
6 changes: 3 additions & 3 deletions sources/@roots/blade-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"types": "./lib/plugin.d.ts",
"main": "./lib/plugin.js",
"devDependencies": {
"@babel/core": "7.23.6",
"@babel/core": "7.24.4",
"@skypack/package-check": "0.2.2",
"babel-loader": "9.1.3",
"memfs": "4.6.0"
"memfs": "4.8.2"
},
"dependencies": {
"tslib": "2.6.2",
"webpack": "5.89.0"
"webpack": "5.91.0"
},
"volta": {
"extends": "../../../package.json"
Expand Down
4 changes: 2 additions & 2 deletions sources/@roots/browserslist-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"devDependencies": {
"@roots/bud-support": "workspace:*",
"@skypack/package-check": "0.2.2",
"browserslist": "4.22.2",
"caniuse-lite": "1.0.30001570"
"browserslist": "4.23.0",
"caniuse-lite": "1.0.30001612"
},
"volta": {
"extends": "../../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"module": "./lib/index.js",
"devDependencies": {
"@skypack/package-check": "0.2.2",
"@types/node": "20.10.5"
"@types/node": "20.12.7"
},
"dependencies": {
"@roots/bud-extensions": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions sources/@roots/bud-api/src/methods/html/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import isString from '@roots/bud-support/isString'
import isUndefined from '@roots/bud-support/isUndefined'
import omit from '@roots/bud-support/omit'

type Options = HTMLExtension.Options & {
type Options = {
replace?: InterpolateHTMLExtension.Options
}
} & HTMLExtension.Options

export type Parameters = [
(((options?: Options) => Options) | boolean | Options | string)?,
Expand Down
24 changes: 4 additions & 20 deletions sources/@roots/bud-api/src/methods/lazy/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type {Bud} from '@roots/bud-framework'
import type {LazyCompilationOptions} from '@roots/bud-framework'

export type Parameters = [boolean | LazyCompilationOptions]
export type Parameters = [any]

/**
* Lazy function interface
Expand Down Expand Up @@ -45,27 +44,12 @@ export interface lazy {
* ```
*/
export const lazy: lazy = function (this: Bud, value = true) {
if (typeof value === `boolean`) {
this.hooks.on(`build.experiments`, experiments => ({
...(experiments ?? {}),
lazyCompilation: value,
}))
return this
}

this.hooks.on(`build.experiments`, experiments => {
if (
typeof experiments?.lazyCompilation === `boolean` ||
!experiments?.lazyCompilation
)
return {...(experiments ?? {}), lazyCompilation: value}

experiments.lazyCompilation = {
...experiments.lazyCompilation,
...value,
if (!experiments) {
return {lazyCompilation: value}
}

return experiments
return {...experiments, lazyCompilation: value}
})

return this
Expand Down
Loading
Loading