Skip to content

Commit

Permalink
🩹 fix: janked 6.6.4 build (#1913)
Browse files Browse the repository at this point in the history
This is kind of rushed but should help fix problems with 6.6.4.

> ⚠️ breaking change
> react-refresh is no longer enqueued automatically. wordpress seems to be enqueuing it now; i'm guessing when `WP_ENV` is `development`. it needs to be enabled `bud.react.refresh.enable()` to restore old behavior. I'm guessing users would want to deal with the wp enqueue first but there is nothing I can do about that except get out of the way (hence this change).

## Changes

- 🩹 fix: @roots/browserslist-config caniuse-lite upgrade issue
- 🩹 fix: @roots/bud-server proxy
- ✨ improve: `bud.proxy` api improvements
- 📕 add docs: document `bud.proxy` options
- 🩹 fix: wordpress@6 seems to be enqueuing react-refresh on its own
- 🩹 fix: package exports in newest typescript are stricter
- 📦 upgrade: dependencies

## Work that should stem from this

- 🧪 test: how best to test proxy connections?
- 🧪 test: how best to test sage?
- 📕 docs: document new server hooks
  - added `dev.onListen`, `dev.onError`, `dev.onResponse` etc. to make it easier to hack

refers:

- none

## Type of change

**PATCH: backwards compatible change**



This PR includes breaking changes to the following core packages:

- none

This PR includes breaking changes to the follow extensions:

- none

## Dependencies

### Adds

- none

### Removes

- none
  • Loading branch information
kellymears committed Dec 5, 2022
1 parent 868a98a commit b9f1d3a
Show file tree
Hide file tree
Showing 174 changed files with 3,736 additions and 3,417 deletions.
14 changes: 7 additions & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cacheFolder: storage/yarn/cache

defaultSemverRangePrefix: ''
defaultSemverRangePrefix: ""

enableMessageNames: false

Expand All @@ -12,21 +12,21 @@ installStatePath: storage/yarn/install-state.gz

nodeLinker: node-modules

npmAuthToken: '${NPM_AUTH_TOKEN:-fallback}'
npmAuthToken: "${NPM_AUTH_TOKEN:-fallback}"

npmPublishAccess: public

npmPublishRegistry: 'https://registry.npmjs.org'
npmPublishRegistry: "https://registry.npmjs.org"

npmRegistryServer: 'https://registry.npmjs.org'
npmRegistryServer: "https://registry.npmjs.org"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
spec: "@yarnpkg/plugin-workspace-tools"
- sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js
- sources/@repo/yarn-plugin-package/bundles/@yarnpkg/plugin-package.js

Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"skipLibCheck": true,
"strictBindCallApply": true,
"target": "es2021",
"types": ["node", "react", "express", "webpack", "webpack-env"]
"types": ["node", "webpack", "webpack-env"]
},
"files": [],
"references": [
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,31 @@
"@skypack/package-check": "0.2.2",
"@types/express": "4.17.14",
"@types/fs-extra": "9.0.13",
"@types/node": "16.18.3",
"@typescript-eslint/eslint-plugin": "5.42.1",
"@typescript-eslint/parser": "5.42.1",
"@vitest/coverage-istanbul": "0.25.2",
"@vitest/ui": "0.24.5",
"eslint": "8.27.0",
"@types/node": "16.18.4",
"@typescript-eslint/eslint-plugin": "5.45.0",
"@typescript-eslint/parser": "5.45.0",
"@vitest/coverage-istanbul": "0.25.3",
"@vitest/ui": "0.25.3",
"eslint": "8.28.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-simple-import-sort": "8.0.0",
"execa": "6.1.0",
"fs-extra": "10.1.0",
"import-meta-resolve": "2.1.0",
"import-meta-resolve": "2.2.0",
"lodash": "4.17.21",
"playwright": "1.28.0",
"prettier": "2.7.1",
"syncpack": "8.3.9",
"playwright": "1.28.1",
"prettier": "2.8.0",
"syncpack": "8.4.11",
"ts-node": "10.9.1",
"tslib": "2.4.1",
"typescript": "4.8.4",
"vitest": "0.24.5",
"typescript": "4.9.3",
"vitest": "0.25.3",
"webpack": "5.75.0"
},
"devDependencies": {
"@types/lodash": "^4",
"@types/lodash": "^4.14.191",
"eslint-plugin-n": "15.5.1"
}
}
6 changes: 3 additions & 3 deletions sources/@repo/compile-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"@repo/logger": "workspace:sources/@repo/logger",
"@types/fs-extra": "9.0.13",
"@types/lodash-es": "4.17.6",
"@types/node": "16.18.3",
"@types/node": "16.18.4",
"@vercel/ncc": "0.34.0",
"download-package-tarball": "1.0.7",
"fs-extra": "10.1.0",
"get-package-json-from-registry": "2.2.2",
"lodash-es": "4.17.21",
"npm-package-arg": "10.0.0",
"npm-package-arg": "10.1.0",
"registry-info": "1.0.0",
"vitest": "0.24.5"
"vitest": "0.25.3"
}
}
4 changes: 2 additions & 2 deletions sources/@repo/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
}
},
"devDependencies": {
"@types/node": "16.18.3",
"vitest": "0.24.5"
"@types/node": "16.18.4",
"vitest": "0.25.3"
},
"volta": {
"extends": "../../../package.json"
Expand Down
6 changes: 4 additions & 2 deletions sources/@repo/docs/content/docs/bud.provide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: bud.provide
description: Makes a variable/module available throughout the entire application.
---

import Provide from '@site/../../@roots/bud-api/src/methods/provide/provide.docs.md'
import Usage from '@site/../../@roots/bud-api/docs/provide/01-usage.md'

<Provide />
## Usage

<Usage />
85 changes: 0 additions & 85 deletions sources/@repo/docs/content/docs/bud.proxy.mdx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: URL replacement
description: Configure proxy server
---

import Replace from '@site/../../@roots/bud-api/docs/proxy/02-proxy-url-replacement.md'

<Replace />
13 changes: 13 additions & 0 deletions sources/@repo/docs/content/docs/bud.proxy/03-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Options
description: Configure proxy server
---

import Options from '@site/../../@roots/bud-api/docs/proxy/03-proxy-options.md'
import Available from '@site/../../@roots/bud-api/docs/proxy/04-proxy-available-options.md'

<Options />

## Available options

<Available />
10 changes: 10 additions & 0 deletions sources/@repo/docs/content/docs/bud.proxy/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: bud.proxy
description: Configure proxy server
---

import Usage from '@site/../../@roots/bud-api/docs/proxy/01-proxy-usage.md'

## Usage

<Usage />
15 changes: 12 additions & 3 deletions sources/@repo/docs/content/docs/bud.serve.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ By default bud.js will serve at the following address:
| host | localhost |
| port | 3000 |

If port 3000 is already used a new port will be dynamically selected.
If port `3000` is already used a new port will be dynamically selected.

## Specifying server address

Expand Down Expand Up @@ -42,11 +42,20 @@ Specify an address with a node URL object:
bud.serve(new URL('http://example.test:3000'))
```

Serve over `https`:
To serve over https:

```ts title='bud.config.js'
bud.serve({
host: new URL('example.test'),
host: 'example.test',
port: 3000,
cert: '/path/to/example.test.crt',
key: '/path/to/example.test.key',
})
```

```ts title="bud.config.js"
bud.serve({
url: new URL('https://example.test:3000'),
cert: '/path/to/example.test.crt',
key: '/path/to/example.test.key',
})
Expand Down
2 changes: 1 addition & 1 deletion sources/@repo/docs/content/extensions/sage/eslint.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: 'Installation of Eslint in Sage'
sidebar_label: 'Using Eslint'
---

import Eslint from '@site/../../@roots/sage/docs/03-using-with-eslint.mdx'
import Eslint from '@site/../../@roots/sage/docs/03-using-with-eslint.md'

<Eslint />
2 changes: 1 addition & 1 deletion sources/@repo/docs/content/extensions/sage/sass.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ sidebar_label: 'Using Sass'
sidebar_order: 6
---

import Sass from '@site/../../@roots/sage/docs/06-using-with-sass.mdx'
import Sass from '@site/../../@roots/sage/docs/06-using-with-sass.md'

<Sass />
2 changes: 1 addition & 1 deletion sources/@repo/docs/content/extensions/sage/stylelint.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ sidebar_label: 'Using Stylelint'
sidebar_order: 4
---

import Stylelint from '@site/../../@roots/sage/docs/04-using-with-stylelint.mdx'
import Stylelint from '@site/../../@roots/sage/docs/04-using-with-stylelint.md'

<Stylelint />
2 changes: 1 addition & 1 deletion sources/@repo/docs/content/extensions/sage/theme.json.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ sidebar_order: 5
hide_table_of_contents: true
---

import ThemeJson from '@site/../../@roots/sage/docs/05-managing-theme.json.mdx'
import ThemeJson from '@site/../../@roots/sage/docs/05-managing-theme.json.md'

<ThemeJson />
12 changes: 6 additions & 6 deletions sources/@repo/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@
"@repo/constants": "workspace:sources/@repo/constants",
"@svgr/webpack": "6.5.1",
"@tsconfig/docusaurus": "1.0.6",
"@types/node": "16.18.3",
"@types/node": "16.18.4",
"@types/react": "17.0.52",
"@types/react-dom": "17.0.18",
"@types/react-helmet": "6.1.5",
"@types/react-helmet": "6.1.6",
"@types/react-reconciler": "0.28.0",
"@types/react-router-dom": "5.3.3",
"file-loader": "6.2.0",
"netlify-cli": "12.2.6",
"netlify-cli": "12.2.8",
"raw-loader": "4.0.2",
"ts-node": "10.9.1",
"typescript": "4.8.4",
"typescript": "4.9.3",
"url-loader": "4.1.1",
"webpack": "5.75.0"
},
"dependencies": {
"@docusaurus/theme-classic": "2.2.0",
"@docusaurus/theme-common": "2.2.0",
"axios": "1.1.3",
"axios": "1.2.0",
"clsx": "1.2.1",
"docusaurus-lunr-search": "2.3.1",
"docusaurus-lunr-search": "2.3.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"tslib": "2.4.1"
Expand Down
4 changes: 2 additions & 2 deletions sources/@repo/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"dependencies": {
"@repo/constants": "workspace:sources/@repo/constants",
"@types/node": "16.18.3",
"@types/node": "16.18.4",
"signale": "1.4.0",
"vitest": "0.24.5"
"vitest": "0.25.3"
},
"volta": {
"extends": "../../../package.json"
Expand Down
8 changes: 4 additions & 4 deletions sources/@repo/markdown-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"build": "yarn tsc -b"
},
"devDependencies": {
"@types/node": "16.18.3",
"@types/node": "16.18.4",
"@types/prettier": "2.7.1",
"vitest": "0.24.5"
"vitest": "0.25.3"
},
"dependencies": {
"@repo/constants": "workspace:sources/@repo/constants",
Expand All @@ -30,9 +30,9 @@
"json5": "2.2.1",
"lodash-es": "4.17.21",
"octokit": "2.0.10",
"prettier": "2.7.1",
"prettier": "2.8.0",
"strip-ansi": "7.0.1",
"typescript": "4.8.4"
"typescript": "4.9.3"
},
"volta": {
"extends": "../../../package.json"
Expand Down
Loading

0 comments on commit b9f1d3a

Please sign in to comment.