Compare commits
11 Commits
@blitzjs/c
...
@blitzjs/a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
474b5494ac | ||
|
|
b33db08286 | ||
|
|
c1e0040639 | ||
|
|
5a7e6e0bb8 | ||
|
|
a6f32d1d0b | ||
|
|
c126b8191b | ||
|
|
775004f23e | ||
|
|
696f48c4e8 | ||
|
|
942536d9ad | ||
|
|
b493c93f8b | ||
|
|
b80c3d92ca |
@@ -2913,7 +2913,8 @@
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/120626?v=4",
|
||||
"profile": "https://github.com/medihack",
|
||||
"contributions": [
|
||||
"doc"
|
||||
"doc",
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -3755,6 +3756,16 @@
|
||||
"code",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "selcukfatihsevinc",
|
||||
"name": "Selçuk Fatih Sevinç",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/384836?v=4",
|
||||
"profile": "https://github.com/selcukfatihsevinc",
|
||||
"contributions": [
|
||||
"doc",
|
||||
"code"
|
||||
]
|
||||
}
|
||||
],
|
||||
"contributorsPerLine": 7,
|
||||
|
||||
8
.changeset/calm-books-push.md
Normal file
8
.changeset/calm-books-push.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"blitz": minor
|
||||
"@blitzjs/auth": minor
|
||||
"@blitzjs/next": minor
|
||||
"@blitzjs/rpc": minor
|
||||
---
|
||||
|
||||
transpile packages to es2015 to support older browsers
|
||||
5
.changeset/few-hounds-worry.md
Normal file
5
.changeset/few-hounds-worry.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"blitz": minor
|
||||
---
|
||||
|
||||
some providers need extra attributes, update for wrapAppWithProvider
|
||||
5
.changeset/giant-students-carry.md
Normal file
5
.changeset/giant-students-carry.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@blitzjs/generator": patch
|
||||
---
|
||||
|
||||
Fix form paths when running blitz generate all
|
||||
5
.changeset/long-hounds-melt.md
Normal file
5
.changeset/long-hounds-melt.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"blitz": major
|
||||
---
|
||||
|
||||
update paginate.ts, return more params for more complex pagination control
|
||||
5
.changeset/modern-games-dream.md
Normal file
5
.changeset/modern-games-dream.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"blitz": patch
|
||||
---
|
||||
|
||||
Export enhancePrisma for client again (Fixes #3964)
|
||||
@@ -44,7 +44,8 @@
|
||||
"@blitzjs/recipe-styled-components": "0.34.0-canary.0",
|
||||
"@blitzjs/recipe-tailwind": "0.34.0-canary.0",
|
||||
"@blitzjs/recipe-theme-ui": "0.34.0-canary.0",
|
||||
"@blitzjs/recipe-vanilla-extract": "0.34.0-canary.0"
|
||||
"@blitzjs/recipe-vanilla-extract": "0.34.0-canary.0",
|
||||
"test-rpc-path-root": "0.0.0"
|
||||
},
|
||||
"changesets": [
|
||||
"afraid-dancers-juggle",
|
||||
@@ -58,6 +59,7 @@
|
||||
"breezy-moose-behave",
|
||||
"bright-mangos-run",
|
||||
"brown-avocados-wink",
|
||||
"calm-books-push",
|
||||
"calm-carpets-deny",
|
||||
"calm-horses-tie",
|
||||
"calm-nails-wait",
|
||||
@@ -90,6 +92,7 @@
|
||||
"fast-papayas-grow",
|
||||
"fast-trainers-kneel",
|
||||
"few-dogs-fetch",
|
||||
"few-hounds-worry",
|
||||
"few-shrimps-leave",
|
||||
"flat-bees-approve",
|
||||
"fluffy-mangos-begin",
|
||||
@@ -105,6 +108,7 @@
|
||||
"gentle-dogs-reply",
|
||||
"gentle-lions-explode",
|
||||
"giant-mails-tap",
|
||||
"giant-students-carry",
|
||||
"gold-horses-punch",
|
||||
"good-apes-drum",
|
||||
"good-insects-wink",
|
||||
@@ -146,6 +150,7 @@
|
||||
"little-pears-ring",
|
||||
"long-bees-hope",
|
||||
"long-dancers-jog",
|
||||
"long-hounds-melt",
|
||||
"long-lobsters-drop",
|
||||
"lovely-berries-sell",
|
||||
"lovely-colts-share",
|
||||
@@ -154,6 +159,7 @@
|
||||
"lucky-years-turn",
|
||||
"mean-gorillas-reply",
|
||||
"modern-cameras-pull",
|
||||
"modern-games-dream",
|
||||
"modern-ligers-behave",
|
||||
"moody-bags-walk",
|
||||
"moody-spoons-rhyme",
|
||||
@@ -207,6 +213,7 @@
|
||||
"sharp-olives-sip",
|
||||
"shy-olives-hang",
|
||||
"shy-pumpkins-try",
|
||||
"shy-socks-eat",
|
||||
"silent-colts-reply",
|
||||
"silent-lies-run",
|
||||
"silly-apricots-share",
|
||||
@@ -244,12 +251,14 @@
|
||||
"tasty-news-collect",
|
||||
"ten-hairs-listen",
|
||||
"ten-rivers-burn",
|
||||
"tender-cooks-tie",
|
||||
"tender-pianos-check",
|
||||
"thick-parrots-float",
|
||||
"thirty-countries-build",
|
||||
"thirty-spies-applaud",
|
||||
"three-lies-pull",
|
||||
"tidy-clouds-smoke",
|
||||
"tidy-llamas-compare",
|
||||
"tough-toes-pull",
|
||||
"twelve-hornets-sip",
|
||||
"twelve-lemons-smile",
|
||||
|
||||
5
.changeset/shy-socks-eat.md
Normal file
5
.changeset/shy-socks-eat.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"blitz": patch
|
||||
---
|
||||
|
||||
using "blitz install" inside recipe with addRunCommandStep causes hangs up
|
||||
7
.changeset/tender-cooks-tie.md
Normal file
7
.changeset/tender-cooks-tie.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"blitz": patch
|
||||
"@blitzjs/next": patch
|
||||
"@blitzjs/rpc": patch
|
||||
---
|
||||
|
||||
Fix ambigious class warning log & upgrade superjson from 1.9.1 to 1.11.0
|
||||
5
.changeset/tidy-llamas-compare.md
Normal file
5
.changeset/tidy-llamas-compare.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@blitzjs/rpc": minor
|
||||
---
|
||||
|
||||
fix resolverPath:root and make it work with monorepo resolvers
|
||||
33
.github/workflows/main.yml
vendored
33
.github/workflows/main.yml
vendored
@@ -52,13 +52,12 @@ jobs:
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "pnpm"
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm manypkg check
|
||||
- name: Turborepo local server
|
||||
uses: felixmosh/turborepo-gh-artifacts@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
server-token: ${{ env.TURBO_TOKEN }}
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
- name: Build Apps
|
||||
@@ -90,19 +89,16 @@ jobs:
|
||||
node-version: 16
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
|
||||
- run: pnpm manypkg check
|
||||
shell: bash
|
||||
|
||||
- name: Turborepo local server
|
||||
uses: felixmosh/turborepo-gh-artifacts@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
server-token: ${{ env.TURBO_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
shell: bash
|
||||
@@ -158,23 +154,20 @@ jobs:
|
||||
node-version: ${{ matrix.NODE_VERSION }}
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Link Blitz CLI
|
||||
run: pnpm link ./packages/blitz
|
||||
shell: bash
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
|
||||
- run: pnpm manypkg check
|
||||
shell: bash
|
||||
|
||||
- name: Turborepo local server
|
||||
uses: felixmosh/turborepo-gh-artifacts@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
server-token: ${{ env.TURBO_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
|
||||
- name: Install playwright
|
||||
run: npx playwright install --with-deps
|
||||
shell: bash
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
shell: bash
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<img alt="" src="https://img.shields.io/badge/Join%20our%20community-6700EB.svg?style=for-the-badge&labelColor=000000&logoWidth=20&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQ9SURBVHgB7d3dVdtAEIbhcSpICUoH0IEogQqSVBBSAU4FSSpIOoAORAfQgSghHXzZ1U/YcMD4R9rZmf2ec3y448LyiNf27iLiGIAmPLrweC9Un3DhrzG6EarLNP09nlwJ1SOZ/lQr5N80/S/p2QMVCBf5N17XCfm1Y/rBHqjAG9PPHvBsz+mf9WAP+HLA9M/YA14cOP2payH7jpj+VCtk1wnTP+vj7xCy6cTpn7EHLMLp059iD1iD8eveJbVCNsSLheX1YA/YgOWnf8YeKB3Wmf7Ud6Fy4f/FHmtpxbl3YlC4MJ/Cj0bWdwPnPbARg+L0S54XQHS32WwuxClzd4CM0z9rPfeAuTtA5ulPXYQ7wZ04Y+oOoDD9KZc9YOoOoDj9s4dwFzgXR6w1wIPoOvPWA9buAHEJ173o3gWiy3AnuBUHLEbgmYwvAk1/wuM8vAgexThzbwPDkx7/DHwVXfFOxP2GmsKd4Ab6zPeAyU8CI7AHFmH2BRCBPXAyk18GzUrqAXCTiR4ssyj0VFw/oCU8+e+RZ33AWz6KMaYbIIWxB+JSLs1bsbkeMN0AqakHvoku9oA2sAfqBvbAQdw0QArsgb25aYBUQT3QgT2gB+yBuqGcHij2UCqXDZACe2Anlw2QYg/QAOyBuoE98CL3DZDCuK4/rh/Q7oGL6U+TOvcNkJoijN8X1C48+T+g75eQDrAH/qmqAVJgDwyqaoAUe4AGYA/UDZX3QLUNkEIZPRCd5+6BahsgVUgPROwBTSijB7jpVAvGHriHvmw9wAZ4BpX1ABvgmakHtPcbRuwBTWAPULgAV9D/jKDY9YRvwvgEaurD44uQHvAol7qBW7WKluVtIHiUS7GyvA0s6CiXDnxrpQfsgbqBS7GKk/2jYHCrVlGyfxTMrVo0ALdq1Q3sgSKofh0M9oA61a+D2QM0AHugbmAPqClmSRjK2apVVQ8UsySsoK1aHdgDesCtWnUDeyCrIpeFg1u3sylyWTi3btMA7IG6gT2wuuK3hoE9sKrit4YVslWLPaAN7IG6ocKt2zmY2h4O9sDiTG0PZw/QANy6XTewBxZj9ogYVHy025LMHhEz9cBn0We6B0yfERReBLfhx0/R1YQHPx/QBPbA0VwcEwf2wNFcHBPHHjiem3MC2QPHcXdSaJjA+KfgTPQ8hhfjBzHC40mhlzJ+Xq9lK4a4PCs43AVaGTed5mZq+iOXZwWHi3AnOj2wFWNcnxYe7gTxLtBKHuamP/J+Wnh8a5irB7ZC5Yk9gPX1QuXC+usHWqGyhYvUYR0a7zboUOFCNVhnk0krZAOW7wFOvzXhom2xnEbIHizTA1wEYhWW6YFGyC6c1gOcfg9wfA80Qj7g8B7g9HuCww+haIR8wf49wOn3Cvv9k8tGyC/s7gFOv3fY3QONkH+v9MBWqB7PeqDn9FcIT//kcitUn6kHOu/T/xfWzlQy3dEHhwAAAABJRU5ErkJggg==">
|
||||
</a>
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||
<a aria-label="All Contributors" href="#contributors-"><img alt="" src="https://img.shields.io/badge/all_contributors-397-17BB8A.svg?style=for-the-badge&labelColor=000000"></a>
|
||||
<a aria-label="All Contributors" href="#contributors-"><img alt="" src="https://img.shields.io/badge/all_contributors-398-17BB8A.svg?style=for-the-badge&labelColor=000000"></a>
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||
<a aria-label="License" href="https://github.com/blitz-js/blitz/blob/main/LICENSE">
|
||||
<img alt="" src="https://img.shields.io/npm/l/blitz.svg?style=for-the-badge&labelColor=000000&color=blue">
|
||||
@@ -617,7 +617,7 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
|
||||
<td align="center"><a href="https://github.com/ricardo-rp"><img src="https://avatars.githubusercontent.com/u/30808767?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ricardo Romero</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ricardo-rp" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="exocortex.anothernode.com"><img src="https://avatars.githubusercontent.com/u/3286144?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Moritz Reiter</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=anothernode" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://msich.dev"><img src="https://avatars.githubusercontent.com/u/38794918?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matt Sichterman</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=msichterman" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://github.com/medihack"><img src="https://avatars.githubusercontent.com/u/120626?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kai Schlamp</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=medihack" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://github.com/medihack"><img src="https://avatars.githubusercontent.com/u/120626?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kai Schlamp</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=medihack" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=medihack" title="Code">💻</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://muyiwa.me"><img src="https://avatars.githubusercontent.com/u/6832244?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Muyiwa Olu</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=muyiwaolu" title="Code">💻</a></td>
|
||||
@@ -733,6 +733,7 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
|
||||
<td align="center"><a href="https://github.com/janvennemann"><img src="https://avatars.githubusercontent.com/u/1406024?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jan Vennemann</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=janvennemann" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=janvennemann" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://kevinjones.engineer"><img src="https://avatars.githubusercontent.com/u/20748598?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Jones</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=joneskj55" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://github.com/paulm17"><img src="https://avatars.githubusercontent.com/u/387463?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Paul</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=paulm17" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=paulm17" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=paulm17" title="Tests">⚠️</a></td>
|
||||
<td align="center"><a href="https://github.com/selcukfatihsevinc"><img src="https://avatars.githubusercontent.com/u/384836?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Selçuk Fatih Sevinç</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=selcukfatihsevinc" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=selcukfatihsevinc" title="Code">💻</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"@hookform/error-message": "2.0.0",
|
||||
"@hookform/resolvers": "2.9.10",
|
||||
"@prisma/client": "4.6.0",
|
||||
"blitz": "workspace:2.0.0-beta.18",
|
||||
"blitz": "workspace:2.0.0-beta.19",
|
||||
"next": "12.2.5",
|
||||
"openid-client": "5.2.1",
|
||||
"prisma": "4.6.0",
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"@hookform/error-message": "2.0.0",
|
||||
"@hookform/resolvers": "2.9.10",
|
||||
"@prisma/client": "4.6.0",
|
||||
"blitz": "workspace:2.0.0-beta.18",
|
||||
"blitz": "workspace:2.0.0-beta.19",
|
||||
"next": "12.2.5",
|
||||
"prisma": "4.6.0",
|
||||
"react": "18.2.0",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@blitzjs/config": "workspace:*",
|
||||
"@blitzjs/next": "workspace:*",
|
||||
"@prisma/client": "4.6.0",
|
||||
"blitz": "workspace:2.0.0-beta.18",
|
||||
"blitz": "workspace:2.0.0-beta.19",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "12.2.5",
|
||||
"prisma": "4.6.0",
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export default async function setBasic(input, ctx) {
|
||||
global.basic = input
|
||||
return global.basic
|
||||
}
|
||||
12
integration-tests/rpc-path-root/app/queries/getBasic.js
Normal file
12
integration-tests/rpc-path-root/app/queries/getBasic.js
Normal file
@@ -0,0 +1,12 @@
|
||||
if (typeof window !== "undefined") {
|
||||
throw new Error("This should not be loaded on the client")
|
||||
}
|
||||
|
||||
export default async function getBasic() {
|
||||
if (typeof window !== "undefined") {
|
||||
throw new Error("This should not be loaded on the client")
|
||||
}
|
||||
|
||||
global.basic ??= "basic-result"
|
||||
return global.basic
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default async function getBasic() {
|
||||
return "nested-basic"
|
||||
}
|
||||
5
integration-tests/rpc-path-root/next-env.d.ts
vendored
Normal file
5
integration-tests/rpc-path-root/next-env.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||
7
integration-tests/rpc-path-root/next.config.js
Normal file
7
integration-tests/rpc-path-root/next.config.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const {withBlitz} = require("@blitzjs/next")
|
||||
module.exports = withBlitz({
|
||||
blitz: {
|
||||
resolverPath: "root",
|
||||
includeRPCFolders: ["../no-suspense/app"],
|
||||
},
|
||||
})
|
||||
29
integration-tests/rpc-path-root/package.json
Normal file
29
integration-tests/rpc-path-root/package.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "test-rpc-path-root",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "vitest --config ./vitest.config.ts run",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:*",
|
||||
"@blitzjs/config": "workspace:*",
|
||||
"@blitzjs/next": "workspace:*",
|
||||
"@blitzjs/rpc": "workspace:*",
|
||||
"blitz": "workspace:*",
|
||||
"next": "12.2.5",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "4.17.13",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
"@types/node-fetch": "2.6.1",
|
||||
"@types/react": "18.0.25",
|
||||
"b64-lite": "1.4.0",
|
||||
"eslint": "8.27.0",
|
||||
"fs-extra": "10.0.1",
|
||||
"typescript": "^4.8.4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import {rpcHandler} from "@blitzjs/rpc"
|
||||
|
||||
export default rpcHandler({onError: console.log})
|
||||
4
integration-tests/rpc-path-root/pages/index.js
Normal file
4
integration-tests/rpc-path-root/pages/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
const Page = () => {
|
||||
return <div id="page-container">Hello World</div>
|
||||
}
|
||||
export default Page
|
||||
7
integration-tests/rpc-path-root/pages/query.js
Normal file
7
integration-tests/rpc-path-root/pages/query.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import getBasic from "../app/queries/getBasic"
|
||||
|
||||
const Page = () => {
|
||||
getBasic().then(console.log)
|
||||
return <div id="page-container">Hello World</div>
|
||||
}
|
||||
export default Page
|
||||
125
integration-tests/rpc-path-root/test/index.test.js
Normal file
125
integration-tests/rpc-path-root/test/index.test.js
Normal file
@@ -0,0 +1,125 @@
|
||||
import {describe, it, expect, beforeAll, afterAll} from "vitest"
|
||||
import fs from "fs-extra"
|
||||
import {join} from "path"
|
||||
import {
|
||||
killApp,
|
||||
findPort,
|
||||
launchApp,
|
||||
fetchViaHTTP,
|
||||
nextBuild,
|
||||
nextStart,
|
||||
} from "../../utils/next-test-utils"
|
||||
|
||||
// jest.setTimeout(1000 * 60 * 2)
|
||||
const appDir = join(__dirname, "../")
|
||||
let appPort
|
||||
let mode
|
||||
let app
|
||||
|
||||
function runTests(dev = false) {
|
||||
describe("api requests", () => {
|
||||
it(
|
||||
"regular query works",
|
||||
async () => {
|
||||
const data = await fetchViaHTTP(appPort, "/api/rpc/app/queries/getBasic", null, {
|
||||
method: "POST",
|
||||
headers: {"Content-Type": "application/json; charset=utf-8"},
|
||||
body: JSON.stringify({params: {}}),
|
||||
}).then((res) => res.ok && res.json())
|
||||
|
||||
expect(data).toEqual({result: "basic-result", error: null, meta: {}})
|
||||
},
|
||||
5000 * 60 * 2,
|
||||
)
|
||||
|
||||
it(
|
||||
"nested query works",
|
||||
async () => {
|
||||
const data = await fetchViaHTTP(appPort, "/api/rpc/app/queries/v2/getBasic", null, {
|
||||
method: "POST",
|
||||
headers: {"Content-Type": "application/json; charset=utf-8"},
|
||||
body: JSON.stringify({params: {}}),
|
||||
}).then((res) => res.ok && res.json())
|
||||
|
||||
expect(data).toEqual({result: "nested-basic", error: null, meta: {}})
|
||||
},
|
||||
5000 * 60 * 2,
|
||||
)
|
||||
|
||||
it(
|
||||
"monorepo query works",
|
||||
async () => {
|
||||
const data = await fetchViaHTTP(appPort, "/api/rpc/queries/getNoSuspenseBasic", null, {
|
||||
method: "POST",
|
||||
headers: {"Content-Type": "application/json; charset=utf-8"},
|
||||
body: JSON.stringify({params: {}}),
|
||||
}).then((res) => res.ok && res.json())
|
||||
|
||||
expect(data).toEqual({result: "basic-result", error: null, meta: {}})
|
||||
},
|
||||
5000 * 60 * 2,
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
describe("RPC", () => {
|
||||
describe(
|
||||
"dev mode",
|
||||
() => {
|
||||
beforeAll(async () => {
|
||||
try {
|
||||
appPort = await findPort()
|
||||
app = await launchApp(appDir, appPort, {cwd: process.cwd()})
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
afterAll(() => killApp(app))
|
||||
|
||||
runTests(true)
|
||||
},
|
||||
5000 * 60 * 2,
|
||||
)
|
||||
|
||||
describe(
|
||||
"server mode",
|
||||
() => {
|
||||
beforeAll(async () => {
|
||||
await nextBuild(appDir)
|
||||
mode = "server"
|
||||
appPort = await findPort()
|
||||
app = await nextStart(appDir, appPort, {cwd: process.cwd()})
|
||||
})
|
||||
afterAll(() => killApp(app))
|
||||
|
||||
runTests()
|
||||
},
|
||||
5000 * 60 * 2,
|
||||
)
|
||||
|
||||
describe(
|
||||
"serverless mode",
|
||||
() => {
|
||||
let nextConfigContent = ""
|
||||
const nextConfigPath = join(appDir, "next.config.js")
|
||||
beforeAll(async () => {
|
||||
nextConfigContent = await fs.readFile(nextConfigPath, "utf8")
|
||||
await fs.writeFile(
|
||||
nextConfigPath,
|
||||
nextConfigContent.replace("// update me", `target: 'experimental-serverless-trace',`),
|
||||
)
|
||||
await nextBuild(appDir)
|
||||
mode = "serverless"
|
||||
appPort = await findPort()
|
||||
app = await nextStart(appDir, appPort, {cwd: process.cwd()})
|
||||
})
|
||||
afterAll(async () => {
|
||||
await killApp(app)
|
||||
await fs.writeFile(nextConfigPath, nextConfigContent)
|
||||
})
|
||||
|
||||
runTests()
|
||||
},
|
||||
5000 * 60 * 2,
|
||||
)
|
||||
})
|
||||
20
integration-tests/rpc-path-root/tsconfig.json
Normal file
20
integration-tests/rpc-path-root/tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "types"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
8
integration-tests/rpc-path-root/vitest.config.ts
Normal file
8
integration-tests/rpc-path-root/vitest.config.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {defineConfig} from "vitest/config"
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
testTimeout: 5000 * 60 * 2,
|
||||
hookTimeout: 5000 * 60 * 2,
|
||||
},
|
||||
})
|
||||
@@ -21,7 +21,7 @@
|
||||
"get-port": "6.1.2",
|
||||
"node-fetch": "3.2.3",
|
||||
"pkg-dir": "5.0.0",
|
||||
"playwright-chromium": "1.14.1",
|
||||
"playwright-chromium": "1.28.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"resolve-cwd": "3.0.0",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @blitzjs/auth
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- c1e00406: transpile packages to es2015 to support older browsers
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [c1e00406]
|
||||
- Updated dependencies [696f48c4]
|
||||
- Updated dependencies [942536d9]
|
||||
- Updated dependencies [a6f32d1d]
|
||||
- Updated dependencies [c126b819]
|
||||
- Updated dependencies [b33db082]
|
||||
- blitz@2.0.0-beta.19
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -6,6 +6,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/auth",
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"predev": "wait-on -d 250 ../blitz/dist/index-server.d.ts",
|
||||
@@ -26,7 +26,7 @@
|
||||
"@types/secure-password": "3.1.1",
|
||||
"b64-lite": "1.4.0",
|
||||
"bad-behavior": "1.0.1",
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"cookie": "0.4.1",
|
||||
"cookie-session": "2.0.0",
|
||||
"debug": "4.3.3",
|
||||
@@ -40,7 +40,7 @@
|
||||
"url": "0.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.18",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.19",
|
||||
"@testing-library/react": "13.4.0",
|
||||
"@testing-library/react-hooks": "8.0.1",
|
||||
"@types/cookie": "0.4.1",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @blitzjs/next
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- c1e00406: transpile packages to es2015 to support older browsers
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b33db082: Fix ambigious class warning log & upgrade superjson from 1.9.1 to 1.11.0
|
||||
- Updated dependencies [c1e00406]
|
||||
- Updated dependencies [b33db082]
|
||||
- Updated dependencies [b493c93f]
|
||||
- @blitzjs/rpc@2.0.0-beta.19
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -16,6 +16,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/next",
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "pnpm predev && pnpm watch unbuild src --wait=0.2",
|
||||
@@ -24,17 +24,17 @@
|
||||
"eslint.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@blitzjs/rpc": "2.0.0-beta.18",
|
||||
"@blitzjs/rpc": "2.0.0-beta.19",
|
||||
"@tanstack/react-query": "4.0.10",
|
||||
"@types/hoist-non-react-statics": "3.3.1",
|
||||
"debug": "4.3.3",
|
||||
"fs-extra": "10.0.1",
|
||||
"hoist-non-react-statics": "3.3.2",
|
||||
"superjson": "1.9.1",
|
||||
"superjson": "1.11.0",
|
||||
"supports-color": "8.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.18",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.19",
|
||||
"@testing-library/dom": "8.13.0",
|
||||
"@testing-library/jest-dom": "5.16.3",
|
||||
"@testing-library/react": "13.4.0",
|
||||
@@ -44,7 +44,7 @@
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"@types/testing-library__react-hooks": "4.0.0",
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"cross-spawn": "7.0.3",
|
||||
"find-up": "4.1.0",
|
||||
"next": "12.2.5",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @blitzjs/rpc
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- c1e00406: transpile packages to es2015 to support older browsers
|
||||
- b493c93f: fix resolverPath:root and make it work with monorepo resolvers
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b33db082: Fix ambigious class warning log & upgrade superjson from 1.9.1 to 1.11.0
|
||||
- Updated dependencies [c1e00406]
|
||||
- @blitzjs/auth@2.0.0-beta.19
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -25,6 +25,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/rpc",
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"predev": "wait-on -d 400 ../blitz/dist/index-server.d.ts && wait-on -d 400 ../blitz-auth/dist/index-browser.d.ts",
|
||||
@@ -20,22 +20,22 @@
|
||||
"dist/**"
|
||||
],
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "2.0.0-beta.18",
|
||||
"@blitzjs/auth": "2.0.0-beta.19",
|
||||
"@swc/core": "1.3.7",
|
||||
"@tanstack/react-query": "4.0.10",
|
||||
"b64-lite": "1.4.0",
|
||||
"bad-behavior": "1.0.1",
|
||||
"chalk": "^4.1.0",
|
||||
"debug": "4.3.3",
|
||||
"superjson": "1.9.1",
|
||||
"superjson": "1.11.0",
|
||||
"supports-color": "8.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.18",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.19",
|
||||
"@types/debug": "4.1.7",
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"next": "12.2.5",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -43,7 +43,12 @@ export async function transformBlitzRpcResolverClient(
|
||||
assertPosixPath(root)
|
||||
const resolverFilePath = "/" + posix.relative(root, id)
|
||||
assertPosixPath(resolverFilePath)
|
||||
const routePath = convertPageFilePathToRoutePath(resolverFilePath, options?.resolverPath)
|
||||
const routePath = convertPageFilePathToRoutePath({
|
||||
appRoot: root,
|
||||
absoluteFilePath: resolverFilePath,
|
||||
resolverBasePath: options?.resolverPath,
|
||||
extraRpcBasePaths: options?.includeRPCFolders,
|
||||
})
|
||||
const resolverName = convertFilePathToResolverName(resolverFilePath)
|
||||
const resolverType = convertFilePathToResolverType(resolverFilePath)
|
||||
const resolverConfig: ResolverConfig = {
|
||||
|
||||
@@ -43,7 +43,12 @@ export async function transformBlitzRpcResolverServer(
|
||||
|
||||
const resolverFilePath = "/" + posix.relative(root, id)
|
||||
assertPosixPath(resolverFilePath)
|
||||
const routePath = convertPageFilePathToRoutePath(resolverFilePath, options?.resolverPath)
|
||||
const routePath = convertPageFilePathToRoutePath({
|
||||
appRoot: root,
|
||||
absoluteFilePath: resolverFilePath,
|
||||
resolverBasePath: options?.resolverPath,
|
||||
extraRpcBasePaths: options?.includeRPCFolders,
|
||||
})
|
||||
const resolverName = convertFilePathToResolverName(resolverFilePath)
|
||||
const resolverType = convertFilePathToResolverType(resolverFilePath)
|
||||
|
||||
|
||||
@@ -57,7 +57,12 @@ export async function transformBlitzRpcServer(
|
||||
let code = blitzImport + src
|
||||
code += "\n\n"
|
||||
for (let resolverFilePath of resolvers) {
|
||||
const routePath = convertPageFilePathToRoutePath(slash(resolverFilePath), options?.resolverPath)
|
||||
const routePath = convertPageFilePathToRoutePath({
|
||||
appRoot: root,
|
||||
absoluteFilePath: resolverFilePath,
|
||||
resolverBasePath: options?.resolverPath,
|
||||
extraRpcBasePaths: options?.includeRPCFolders,
|
||||
})
|
||||
|
||||
code += `__internal_addBlitzRpcResolver('${routePath}',() => import('${slash(
|
||||
resolverFilePath,
|
||||
|
||||
@@ -1,24 +1,52 @@
|
||||
import {describe, expect, it} from "vitest"
|
||||
import {convertPageFilePathToRoutePath} from "./loader-utils"
|
||||
|
||||
const FILE_PATH = "app/queries/getData.ts"
|
||||
const APP_ROOT = "/Users/blitz/project"
|
||||
const FILE_PATH = "/Users/blitz/project/app/queries/getData.ts"
|
||||
|
||||
const WIN_APP_ROOT = `D:a\\blitz\\project`
|
||||
const WIN_FILE_PATH = `D:a\\blitz\\project\\app\\queries\\getData.ts`
|
||||
|
||||
describe("convertPageFilePathToRoutePath", () => {
|
||||
it("should return the full path when resolverBasePath is set to root", () => {
|
||||
const res = convertPageFilePathToRoutePath(FILE_PATH, "root")
|
||||
const res = convertPageFilePathToRoutePath({
|
||||
absoluteFilePath: FILE_PATH,
|
||||
resolverBasePath: "root",
|
||||
appRoot: APP_ROOT,
|
||||
})
|
||||
|
||||
expect(res).toEqual("app/queries/getData")
|
||||
expect(res).toEqual("/app/queries/getData")
|
||||
})
|
||||
|
||||
it("should return the relative path when resolverBasePath is set to queries|mutations", () => {
|
||||
const res = convertPageFilePathToRoutePath(FILE_PATH, "queries|mutations")
|
||||
const res = convertPageFilePathToRoutePath({
|
||||
absoluteFilePath: FILE_PATH,
|
||||
resolverBasePath: "queries|mutations",
|
||||
appRoot: APP_ROOT,
|
||||
})
|
||||
|
||||
expect(res).toEqual("/getData")
|
||||
})
|
||||
|
||||
it("should return the relative path when resolverBasePath is set to undefined", () => {
|
||||
const res = convertPageFilePathToRoutePath(FILE_PATH, undefined)
|
||||
const res = convertPageFilePathToRoutePath({
|
||||
absoluteFilePath: FILE_PATH,
|
||||
resolverBasePath: undefined,
|
||||
appRoot: APP_ROOT,
|
||||
})
|
||||
|
||||
expect(res).toEqual("/getData")
|
||||
})
|
||||
|
||||
describe("windwos", () => {
|
||||
it("should return the full path when resolverBasePath is set to root", () => {
|
||||
const res = convertPageFilePathToRoutePath({
|
||||
absoluteFilePath: WIN_FILE_PATH,
|
||||
resolverBasePath: "root",
|
||||
appRoot: WIN_APP_ROOT,
|
||||
})
|
||||
|
||||
expect(res).toEqual("/app/queries/getData")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {assert} from "blitz"
|
||||
import {posix, sep, win32} from "path"
|
||||
import {posix, sep, win32, join, normalize} from "path"
|
||||
import {ResolverPathOptions} from "./index-server"
|
||||
|
||||
export interface LoaderOptions {
|
||||
@@ -50,23 +50,31 @@ export function buildPageExtensionRegex(pageExtensions: string[]) {
|
||||
|
||||
const fileExtensionRegex = /\.([a-z]+)$/
|
||||
|
||||
export function convertPageFilePathToRoutePath(
|
||||
filePath: string,
|
||||
resolverPath?: ResolverPathOptions,
|
||||
) {
|
||||
if (typeof resolverPath === "function") {
|
||||
return resolverPath(filePath)
|
||||
export function convertPageFilePathToRoutePath({
|
||||
absoluteFilePath,
|
||||
resolverBasePath,
|
||||
appRoot,
|
||||
extraRpcBasePaths = [],
|
||||
}: {
|
||||
appRoot: string
|
||||
absoluteFilePath: string
|
||||
resolverBasePath?: ResolverPathOptions
|
||||
extraRpcBasePaths?: string[]
|
||||
}) {
|
||||
let path = normalize(absoluteFilePath)
|
||||
|
||||
if (typeof resolverBasePath === "function") {
|
||||
path = resolverBasePath(path)
|
||||
} else if (resolverBasePath === "root") {
|
||||
path = path.replace(normalize(appRoot), "")
|
||||
for (const extraPath of extraRpcBasePaths) {
|
||||
path = path.replace(join(normalize(appRoot), extraPath.replace("/", sep)), "")
|
||||
}
|
||||
} else {
|
||||
path = path.replace(/^.*?[\\/]queries[\\/]/, "/").replace(/^.*?[\\/]mutations[\\/]/, "/")
|
||||
}
|
||||
|
||||
if (resolverPath === "root") {
|
||||
return filePath.replace(fileExtensionRegex, "")
|
||||
}
|
||||
|
||||
return filePath
|
||||
.replace(/^.*?[\\/]queries[\\/]/, "/")
|
||||
.replace(/^.*?[\\/]mutations[\\/]/, "/")
|
||||
.replace(/\\/g, "/")
|
||||
.replace(fileExtensionRegex, "")
|
||||
return path.replace(/\\/g, "/").replace(fileExtensionRegex, "")
|
||||
}
|
||||
|
||||
export function convertFilePathToResolverName(filePathFromAppRoot: string) {
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# blitz
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 942536d9: update paginate.ts, return more params for more complex pagination control
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- c1e00406: transpile packages to es2015 to support older browsers
|
||||
- 696f48c4: some providers need extra attributes, update for wrapAppWithProvider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- a6f32d1d: Export enhancePrisma for client again (Fixes #3964)
|
||||
- c126b819: using "blitz install" inside recipe with addRunCommandStep causes hangs up
|
||||
- b33db082: Fix ambigious class warning log & upgrade superjson from 1.9.1 to 1.11.0
|
||||
- Updated dependencies [b80c3d92]
|
||||
- @blitzjs/generator@2.0.0-beta.19
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -6,6 +6,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "blitz",
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "rm -rf dist && pnpm run predev && watch unbuild src --wait=0.2",
|
||||
@@ -25,7 +25,7 @@
|
||||
"blitz": "bin/blitz"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/generator": "2.0.0-beta.18",
|
||||
"@blitzjs/generator": "2.0.0-beta.19",
|
||||
"@mrleebo/prisma-ast": "0.2.6",
|
||||
"@types/global-agent": "2.1.1",
|
||||
"arg": "5.0.1",
|
||||
@@ -64,7 +64,7 @@
|
||||
"resolve-cwd": "3.0.0",
|
||||
"resolve-from": "5.0.0",
|
||||
"rimraf": "3.0.2",
|
||||
"superjson": "1.9.1",
|
||||
"superjson": "1.11.0",
|
||||
"supports-color": "8.1.1",
|
||||
"tar": "6.1.11",
|
||||
"ts-node": "10.9.1",
|
||||
@@ -73,7 +73,7 @@
|
||||
"watchpack": "2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.18",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.19",
|
||||
"@types/cookie": "0.4.1",
|
||||
"@types/cross-spawn": "6.0.2",
|
||||
"@types/debug": "4.1.7",
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
import _SuperJson from "superjson"
|
||||
import type {UrlObject} from "url"
|
||||
|
||||
declare module globalThis {
|
||||
let _BLITZ_ERROR_CLASS_REGISTERED: boolean
|
||||
}
|
||||
|
||||
const SuperJson: typeof _SuperJson =
|
||||
"default" in _SuperJson ? (_SuperJson as any).default : _SuperJson
|
||||
|
||||
@@ -19,12 +23,6 @@ export class AuthenticationError extends Error {
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
SuperJson.registerClass(AuthenticationError, {
|
||||
identifier: "BlitzAuthenticationError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
}
|
||||
|
||||
export class CSRFTokenMismatchError extends Error {
|
||||
name = "CSRFTokenMismatchError"
|
||||
@@ -33,12 +31,6 @@ export class CSRFTokenMismatchError extends Error {
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
SuperJson.registerClass(CSRFTokenMismatchError, {
|
||||
identifier: "BlitzCSRFTokenMismatchError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
}
|
||||
|
||||
export class AuthorizationError extends Error {
|
||||
name = "AuthorizationError"
|
||||
@@ -50,12 +42,6 @@ export class AuthorizationError extends Error {
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
SuperJson.registerClass(AuthorizationError, {
|
||||
identifier: "BlitzAuthorizationError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
}
|
||||
|
||||
export class NotFoundError extends Error {
|
||||
name = "NotFoundError"
|
||||
@@ -67,12 +53,6 @@ export class NotFoundError extends Error {
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
SuperJson.registerClass(NotFoundError, {
|
||||
identifier: "BlitzNotFoundError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
}
|
||||
|
||||
export class RedirectError extends Error {
|
||||
name = "RedirectError"
|
||||
@@ -86,12 +66,6 @@ export class RedirectError extends Error {
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
SuperJson.registerClass(RedirectError, {
|
||||
identifier: "BlitzRedirectError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
}
|
||||
|
||||
export class PaginationArgumentError extends Error {
|
||||
name = "PaginationArgumentError"
|
||||
@@ -100,9 +74,37 @@ export class PaginationArgumentError extends Error {
|
||||
super(message)
|
||||
}
|
||||
}
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
|
||||
if (process.env.JEST_WORKER_ID === undefined && !globalThis._BLITZ_ERROR_CLASS_REGISTERED) {
|
||||
SuperJson.registerClass(AuthenticationError, {
|
||||
identifier: "BlitzAuthenticationError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
|
||||
SuperJson.registerClass(CSRFTokenMismatchError, {
|
||||
identifier: "BlitzCSRFTokenMismatchError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
|
||||
SuperJson.registerClass(AuthorizationError, {
|
||||
identifier: "BlitzAuthorizationError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
|
||||
SuperJson.registerClass(NotFoundError, {
|
||||
identifier: "BlitzNotFoundError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
|
||||
SuperJson.registerClass(RedirectError, {
|
||||
identifier: "BlitzRedirectError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
|
||||
SuperJson.registerClass(PaginationArgumentError, {
|
||||
identifier: "BlitzPaginationArgumentError",
|
||||
allowProps: errorProps,
|
||||
})
|
||||
|
||||
globalThis._BLITZ_ERROR_CLASS_REGISTERED = true
|
||||
}
|
||||
|
||||
@@ -95,4 +95,5 @@ if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
|
||||
|
||||
export * from "./utils"
|
||||
export * from "./types"
|
||||
export * from "./utils/enhance-prisma"
|
||||
export * from "./utils/zod"
|
||||
|
||||
@@ -79,7 +79,8 @@ export async function executeCommand(input: CliCommand): Promise<void> {
|
||||
const cp = spawn(`${command[0]}`, command.slice(1), {
|
||||
stdio: ["inherit", "pipe", "pipe"],
|
||||
})
|
||||
cp.on("exit", resolve)
|
||||
cp.on("exit", resolve);
|
||||
cp.stdout.on('data', () => {});
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
import {NodePath} from "ast-types/lib/node-path"
|
||||
import j from "jscodeshift"
|
||||
import j, {JSXAttribute} from "jscodeshift"
|
||||
import {assert} from "../../index-server"
|
||||
import {Program} from "../types"
|
||||
|
||||
export function wrapAppWithProvider(program: Program, element: string): Program {
|
||||
export function wrapAppWithProvider(
|
||||
program: Program,
|
||||
element: string,
|
||||
attributes?: string[],
|
||||
): Program {
|
||||
const findMyApp = program.find(j.FunctionDeclaration, (node) => node.id.name === "MyApp")
|
||||
assert(findMyApp.length, "MyApp function not found")
|
||||
|
||||
@@ -13,8 +17,13 @@ export function wrapAppWithProvider(program: Program, element: string): Program
|
||||
)[0]
|
||||
const argument = statement.argument
|
||||
|
||||
let attrs: JSXAttribute[] = []
|
||||
if (attributes) {
|
||||
attrs = attributes.map((i) => j.jsxAttribute(j.jsxIdentifier(i)))
|
||||
}
|
||||
|
||||
statement.argument = j.jsxElement(
|
||||
j.jsxOpeningElement(j.jsxIdentifier(element)),
|
||||
j.jsxOpeningElement(j.jsxIdentifier(element), attrs),
|
||||
j.jsxClosingElement(j.jsxIdentifier(element)),
|
||||
[j.jsxText("\n"), argument, j.jsxText("\n")],
|
||||
)
|
||||
|
||||
@@ -48,11 +48,18 @@ export async function paginate<QueryResult>({
|
||||
|
||||
const hasMore = skip + take < count
|
||||
const nextPage = hasMore ? {take, skip: skip + take} : null
|
||||
const pageCount = Math.floor((count + take - 1) / take)
|
||||
const from = skip + 1
|
||||
const to = skip + take
|
||||
|
||||
return {
|
||||
items,
|
||||
nextPage,
|
||||
hasMore,
|
||||
pageCount: pageCount,
|
||||
pageSize: take,
|
||||
from,
|
||||
to,
|
||||
count,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +74,10 @@ describe("paginate", () => {
|
||||
nextPage: null,
|
||||
hasMore: false,
|
||||
count: 3,
|
||||
from: 2,
|
||||
pageCount: 2,
|
||||
pageSize: 2,
|
||||
to: 3,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -88,6 +92,10 @@ describe("paginate", () => {
|
||||
nextPage: {skip: 3, take: 2},
|
||||
hasMore: true,
|
||||
count: 4,
|
||||
from: 2,
|
||||
pageCount: 2,
|
||||
pageSize: 2,
|
||||
to: 3,
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @blitzjs/codemod
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [c1e00406]
|
||||
- Updated dependencies [696f48c4]
|
||||
- Updated dependencies [b80c3d92]
|
||||
- Updated dependencies [942536d9]
|
||||
- Updated dependencies [a6f32d1d]
|
||||
- Updated dependencies [c126b819]
|
||||
- Updated dependencies [b33db082]
|
||||
- blitz@2.0.0-beta.19
|
||||
- @blitzjs/generator@2.0.0-beta.19
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -6,6 +6,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/codemod",
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "watch unbuild src --wait=0.2",
|
||||
@@ -25,9 +25,9 @@
|
||||
"@babel/plugin-proposal-class-properties": "7.17.12",
|
||||
"@babel/plugin-syntax-jsx": "7.17.12",
|
||||
"@babel/plugin-syntax-typescript": "7.17.12",
|
||||
"@blitzjs/generator": "2.0.0-beta.18",
|
||||
"@blitzjs/generator": "2.0.0-beta.19",
|
||||
"arg": "5.0.1",
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"chalk": "^4.1.0",
|
||||
"cross-spawn": "7.0.3",
|
||||
"debug": "4.3.3",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @blitzjs/config
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
## 2.0.0-beta.17
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@blitzjs/config",
|
||||
"private": true,
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "5.42.1",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @blitzjs/generator
|
||||
|
||||
## 2.0.0-beta.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b80c3d92: Fix form paths when running blitz generate all
|
||||
|
||||
## 2.0.0-beta.18
|
||||
|
||||
## 2.0.0-beta.17
|
||||
|
||||
@@ -6,6 +6,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/generator",
|
||||
"version": "2.0.0-beta.18",
|
||||
"version": "2.0.0-beta.19",
|
||||
"scripts": {
|
||||
"dev": "watch unbuild src --wait=0.2",
|
||||
"build": "unbuild && pnpm build:templates",
|
||||
@@ -47,7 +47,7 @@
|
||||
"vinyl": "2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "2.0.0-beta.18",
|
||||
"@blitzjs/config": "2.0.0-beta.19",
|
||||
"@juanm04/cpx": "2.0.1",
|
||||
"@types/babel__core": "7.1.19",
|
||||
"@types/diff": "5.0.2",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {Form, FormProps} from "app/core/components/Form"
|
||||
import {LabeledTextField} from "app/core/components/LabeledTextField"
|
||||
import {Form, FormProps} from "src/core/components/Form"
|
||||
import {LabeledTextField} from "src/core/components/LabeledTextField"
|
||||
import {z} from "zod"
|
||||
export {FORM_ERROR} from "app/core/components/Form"
|
||||
export {FORM_ERROR} from "src/core/components/Form"
|
||||
|
||||
export function __ModelName__Form<S extends z.ZodType<any, any>>(props: FormProps<S>) {
|
||||
return (
|
||||
|
||||
@@ -6,6 +6,9 @@ const config: BuildConfig = {
|
||||
declaration: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
esbuild: {
|
||||
target: ["es2015"],
|
||||
},
|
||||
},
|
||||
}
|
||||
export default config
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@typescript-eslint/parser": "5.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "2.0.0-beta.18",
|
||||
"@blitzjs/config": "2.0.0-beta.19",
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"react": "18.2.0",
|
||||
|
||||
443
pnpm-lock.yaml
generated
443
pnpm-lock.yaml
generated
@@ -50,7 +50,7 @@ importers:
|
||||
"@types/preview-email": 2.0.1
|
||||
"@types/react": 18.0.25
|
||||
"@typescript-eslint/eslint-plugin": 5.42.1
|
||||
blitz: workspace:2.0.0-beta.17
|
||||
blitz: workspace:2.0.0-beta.18
|
||||
eslint: 8.27.0
|
||||
eslint-config-next: 12.3.1
|
||||
eslint-config-prettier: 8.5.0
|
||||
@@ -125,7 +125,7 @@ importers:
|
||||
"@types/preview-email": 2.0.1
|
||||
"@types/react": 18.0.25
|
||||
"@typescript-eslint/eslint-plugin": 5.42.1
|
||||
blitz: workspace:2.0.0-beta.17
|
||||
blitz: workspace:2.0.0-beta.18
|
||||
eslint: 8.27.0
|
||||
eslint-config-next: 12.3.1
|
||||
eslint-config-prettier: 8.5.0
|
||||
@@ -245,7 +245,7 @@ importers:
|
||||
"@types/node-fetch": 2.6.1
|
||||
"@types/react": 18.0.25
|
||||
b64-lite: 1.4.0
|
||||
blitz: workspace:2.0.0-beta.17
|
||||
blitz: workspace:2.0.0-beta.18
|
||||
eslint: 8.27.0
|
||||
fs-extra: 10.0.1
|
||||
get-port: 6.1.2
|
||||
@@ -460,7 +460,7 @@ importers:
|
||||
"@vitejs/plugin-react": 1.3.0
|
||||
delay: 5.0.0
|
||||
eslint: 8.27.0
|
||||
eslint-config-next: 13.0.3_rmayb2veg2btbq6mbmnyivgasy
|
||||
eslint-config-next: 13.0.4_rmayb2veg2btbq6mbmnyivgasy
|
||||
eslint-plugin-testing-library: 5.0.1_rmayb2veg2btbq6mbmnyivgasy
|
||||
jsdom: 19.0.0
|
||||
typescript: 4.8.4
|
||||
@@ -551,6 +551,43 @@ importers:
|
||||
fs-extra: 10.0.1
|
||||
typescript: 4.8.4
|
||||
|
||||
integration-tests/rpc-path-root:
|
||||
specifiers:
|
||||
"@blitzjs/auth": workspace:*
|
||||
"@blitzjs/config": workspace:*
|
||||
"@blitzjs/next": workspace:*
|
||||
"@blitzjs/rpc": workspace:*
|
||||
"@types/express": 4.17.13
|
||||
"@types/fs-extra": 9.0.13
|
||||
"@types/node-fetch": 2.6.1
|
||||
"@types/react": 18.0.25
|
||||
b64-lite: 1.4.0
|
||||
blitz: workspace:*
|
||||
eslint: 8.27.0
|
||||
fs-extra: 10.0.1
|
||||
next: 12.2.5
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0
|
||||
typescript: ^4.8.4
|
||||
dependencies:
|
||||
"@blitzjs/auth": link:../../packages/blitz-auth
|
||||
"@blitzjs/config": link:../../packages/config
|
||||
"@blitzjs/next": link:../../packages/blitz-next
|
||||
"@blitzjs/rpc": link:../../packages/blitz-rpc
|
||||
blitz: link:../../packages/blitz
|
||||
next: 12.2.5_biqbaboplfbrettd7655fr4n2y
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0_react@18.2.0
|
||||
devDependencies:
|
||||
"@types/express": 4.17.13
|
||||
"@types/fs-extra": 9.0.13
|
||||
"@types/node-fetch": 2.6.1
|
||||
"@types/react": 18.0.25
|
||||
b64-lite: 1.4.0
|
||||
eslint: 8.27.0
|
||||
fs-extra: 10.0.1
|
||||
typescript: 4.8.4
|
||||
|
||||
integration-tests/trailing-slash:
|
||||
specifiers:
|
||||
"@blitzjs/auth": workspace:*
|
||||
@@ -620,7 +657,7 @@ importers:
|
||||
get-port: 6.1.2
|
||||
node-fetch: 3.2.3
|
||||
pkg-dir: 5.0.0
|
||||
playwright-chromium: 1.14.1
|
||||
playwright-chromium: 1.28.0
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0
|
||||
resolve-cwd: 3.0.0
|
||||
@@ -648,7 +685,7 @@ importers:
|
||||
get-port: 6.1.2
|
||||
node-fetch: 3.2.3
|
||||
pkg-dir: 5.0.0
|
||||
playwright-chromium: 1.14.1
|
||||
playwright-chromium: 1.28.0
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0_react@18.2.0
|
||||
resolve-cwd: 3.0.0
|
||||
@@ -660,8 +697,8 @@ importers:
|
||||
|
||||
packages/blitz:
|
||||
specifiers:
|
||||
"@blitzjs/config": workspace:2.0.0-beta.17
|
||||
"@blitzjs/generator": 2.0.0-beta.17
|
||||
"@blitzjs/config": workspace:2.0.0-beta.18
|
||||
"@blitzjs/generator": 2.0.0-beta.18
|
||||
"@mrleebo/prisma-ast": 0.2.6
|
||||
"@types/cookie": 0.4.1
|
||||
"@types/cross-spawn": 6.0.2
|
||||
@@ -719,7 +756,7 @@ importers:
|
||||
resolve-cwd: 3.0.0
|
||||
resolve-from: 5.0.0
|
||||
rimraf: 3.0.2
|
||||
superjson: 1.9.1
|
||||
superjson: 1.11.0
|
||||
supports-color: 8.1.1
|
||||
tar: 6.1.11
|
||||
test-listen: 1.1.0
|
||||
@@ -771,7 +808,7 @@ importers:
|
||||
resolve-cwd: 3.0.0
|
||||
resolve-from: 5.0.0
|
||||
rimraf: 3.0.2
|
||||
superjson: 1.9.1
|
||||
superjson: 1.11.0
|
||||
supports-color: 8.1.1
|
||||
tar: 6.1.11
|
||||
ts-node: 10.9.1_typescript@4.8.4
|
||||
@@ -807,7 +844,7 @@ importers:
|
||||
|
||||
packages/blitz-auth:
|
||||
specifiers:
|
||||
"@blitzjs/config": workspace:2.0.0-beta.17
|
||||
"@blitzjs/config": workspace:2.0.0-beta.18
|
||||
"@testing-library/react": 13.4.0
|
||||
"@testing-library/react-hooks": 8.0.1
|
||||
"@types/b64-lite": 1.3.0
|
||||
@@ -821,7 +858,7 @@ importers:
|
||||
"@types/secure-password": 3.1.1
|
||||
b64-lite: 1.4.0
|
||||
bad-behavior: 1.0.1
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
cookie: 0.4.1
|
||||
cookie-session: 2.0.0
|
||||
debug: 4.3.3
|
||||
@@ -874,8 +911,8 @@ importers:
|
||||
|
||||
packages/blitz-next:
|
||||
specifiers:
|
||||
"@blitzjs/config": workspace:2.0.0-beta.17
|
||||
"@blitzjs/rpc": 2.0.0-beta.17
|
||||
"@blitzjs/config": workspace:2.0.0-beta.18
|
||||
"@blitzjs/rpc": 2.0.0-beta.18
|
||||
"@tanstack/react-query": 4.0.10
|
||||
"@testing-library/dom": 8.13.0
|
||||
"@testing-library/jest-dom": 5.16.3
|
||||
@@ -887,7 +924,7 @@ importers:
|
||||
"@types/react": 18.0.25
|
||||
"@types/react-dom": 17.0.14
|
||||
"@types/testing-library__react-hooks": 4.0.0
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
cross-spawn: 7.0.3
|
||||
debug: 4.3.3
|
||||
find-up: 4.1.0
|
||||
@@ -897,7 +934,7 @@ importers:
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0
|
||||
resolve-from: 5.0.0
|
||||
superjson: 1.9.1
|
||||
superjson: 1.11.0
|
||||
supports-color: 8.1.1
|
||||
ts-jest: 27.1.4
|
||||
typescript: ^4.8.4
|
||||
@@ -910,7 +947,7 @@ importers:
|
||||
debug: 4.3.3_supports-color@8.1.1
|
||||
fs-extra: 10.0.1
|
||||
hoist-non-react-statics: 3.3.2
|
||||
superjson: 1.9.1
|
||||
superjson: 1.11.0
|
||||
supports-color: 8.1.1
|
||||
devDependencies:
|
||||
"@blitzjs/config": link:../config
|
||||
@@ -937,8 +974,8 @@ importers:
|
||||
|
||||
packages/blitz-rpc:
|
||||
specifiers:
|
||||
"@blitzjs/auth": 2.0.0-beta.17
|
||||
"@blitzjs/config": workspace:2.0.0-beta.17
|
||||
"@blitzjs/auth": 2.0.0-beta.18
|
||||
"@blitzjs/config": workspace:2.0.0-beta.18
|
||||
"@swc/core": 1.3.7
|
||||
"@tanstack/react-query": 4.0.10
|
||||
"@types/debug": 4.1.7
|
||||
@@ -946,13 +983,13 @@ importers:
|
||||
"@types/react-dom": 17.0.14
|
||||
b64-lite: 1.4.0
|
||||
bad-behavior: 1.0.1
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
chalk: ^4.1.0
|
||||
debug: 4.3.3
|
||||
next: 12.2.5
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0
|
||||
superjson: 1.9.1
|
||||
superjson: 1.11.0
|
||||
supports-color: 8.1.1
|
||||
typescript: ^4.8.4
|
||||
unbuild: 0.7.6
|
||||
@@ -966,7 +1003,7 @@ importers:
|
||||
bad-behavior: 1.0.1
|
||||
chalk: 4.1.2
|
||||
debug: 4.3.3_supports-color@8.1.1
|
||||
superjson: 1.9.1
|
||||
superjson: 1.11.0
|
||||
supports-color: 8.1.1
|
||||
devDependencies:
|
||||
"@blitzjs/config": link:../config
|
||||
@@ -990,12 +1027,12 @@ importers:
|
||||
"@babel/plugin-syntax-typescript": 7.17.12
|
||||
"@babel/preset-env": 7.12.10
|
||||
"@blitzjs/config": workspace:*
|
||||
"@blitzjs/generator": 2.0.0-beta.17
|
||||
"@blitzjs/generator": 2.0.0-beta.18
|
||||
"@types/jscodeshift": 0.11.2
|
||||
"@types/node": 18.11.9
|
||||
arg: 5.0.1
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
chalk: ^4.1.0
|
||||
cross-spawn: 7.0.3
|
||||
debug: 4.3.3
|
||||
@@ -1050,7 +1087,7 @@ importers:
|
||||
"@babel/plugin-transform-typescript": 7.12.1
|
||||
"@babel/preset-env": 7.12.10
|
||||
"@babel/types": 7.12.10
|
||||
"@blitzjs/config": 2.0.0-beta.17
|
||||
"@blitzjs/config": 2.0.0-beta.18
|
||||
"@juanm04/cpx": 2.0.1
|
||||
"@mrleebo/prisma-ast": 0.4.1
|
||||
"@types/babel__core": 7.1.19
|
||||
@@ -1145,7 +1182,7 @@ importers:
|
||||
|
||||
packages/pkg-template:
|
||||
specifiers:
|
||||
"@blitzjs/config": 2.0.0-beta.17
|
||||
"@blitzjs/config": 2.0.0-beta.18
|
||||
"@types/react": 18.0.25
|
||||
"@types/react-dom": 17.0.14
|
||||
"@typescript-eslint/eslint-plugin": 5.42.1
|
||||
@@ -1169,7 +1206,7 @@ importers:
|
||||
recipes/base-web:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1180,7 +1217,7 @@ importers:
|
||||
recipes/bulma:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1192,7 +1229,7 @@ importers:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1205,7 +1242,7 @@ importers:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1217,7 +1254,7 @@ importers:
|
||||
recipes/emotion:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1227,20 +1264,20 @@ importers:
|
||||
|
||||
recipes/gh-action-yarn-mariadb:
|
||||
specifiers:
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
|
||||
recipes/gh-action-yarn-postgres:
|
||||
specifiers:
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
|
||||
recipes/ghost:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1251,7 +1288,7 @@ importers:
|
||||
recipes/graphql-apollo-server:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
uuid: ^8.3.1
|
||||
dependencies:
|
||||
@@ -1264,7 +1301,7 @@ importers:
|
||||
recipes/logrocket:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1275,7 +1312,7 @@ importers:
|
||||
recipes/material-ui:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1287,7 +1324,7 @@ importers:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1298,13 +1335,13 @@ importers:
|
||||
|
||||
recipes/passenger:
|
||||
specifiers:
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
|
||||
recipes/quirrel:
|
||||
specifiers:
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
|
||||
@@ -1312,7 +1349,7 @@ importers:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1323,14 +1360,14 @@ importers:
|
||||
|
||||
recipes/render:
|
||||
specifiers:
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
|
||||
recipes/secureheaders:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
uuid: ^8.3.1
|
||||
dependencies:
|
||||
@@ -1343,7 +1380,7 @@ importers:
|
||||
recipes/stitches:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1355,7 +1392,7 @@ importers:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1367,7 +1404,7 @@ importers:
|
||||
recipes/tailwind:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1379,7 +1416,7 @@ importers:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
ast-types: 0.14.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -1391,7 +1428,7 @@ importers:
|
||||
recipes/vanilla-extract:
|
||||
specifiers:
|
||||
"@types/jscodeshift": 0.11.2
|
||||
blitz: 2.0.0-beta.17
|
||||
blitz: 2.0.0-beta.18
|
||||
jscodeshift: 0.13.0
|
||||
dependencies:
|
||||
blitz: link:../../packages/blitz
|
||||
@@ -3487,6 +3524,7 @@ packages:
|
||||
semver: 5.7.1
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/@babel/preset-flow/7.17.12_@babel+core@7.18.2:
|
||||
resolution:
|
||||
@@ -4557,10 +4595,10 @@ packages:
|
||||
dependencies:
|
||||
glob: 7.1.7
|
||||
|
||||
/@next/eslint-plugin-next/13.0.3:
|
||||
/@next/eslint-plugin-next/13.0.4:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-slmTAHNKDyc7jhx4VF8lFbmOPWJ3PShtUUWpb6x9+ga59CyOxgP6AdcDhxfapnWYACKe/TwYiaveufu7LqXgZg==,
|
||||
integrity: sha512-jZ4urKT+aO9QHm3ttihrIQscQISDSKK8isAom750+EySn9o3LCSkTdPGBtvBqY7Yku+NqhfQempR5J58DqTaVg==,
|
||||
}
|
||||
dependencies:
|
||||
glob: 7.1.7
|
||||
@@ -4744,6 +4782,21 @@ packages:
|
||||
"@nodelib/fs.scandir": 2.1.5
|
||||
fastq: 1.13.0
|
||||
|
||||
/@pkgr/utils/2.3.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==,
|
||||
}
|
||||
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
|
||||
dependencies:
|
||||
cross-spawn: 7.0.3
|
||||
is-glob: 4.0.3
|
||||
open: 8.4.0
|
||||
picocolors: 1.0.0
|
||||
tiny-glob: 0.2.9
|
||||
tslib: 2.4.0
|
||||
dev: true
|
||||
|
||||
/@polka/url/1.0.0-next.21:
|
||||
resolution:
|
||||
{
|
||||
@@ -6277,6 +6330,7 @@ packages:
|
||||
typescript: 4.8.4
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/@typescript-eslint/experimental-utils/5.28.0_rmayb2veg2btbq6mbmnyivgasy:
|
||||
resolution:
|
||||
@@ -6404,6 +6458,7 @@ packages:
|
||||
typescript: 4.8.4
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/@typescript-eslint/scope-manager/5.28.0:
|
||||
resolution:
|
||||
@@ -8925,6 +8980,14 @@ packages:
|
||||
engines: {node: ">=10"}
|
||||
dev: false
|
||||
|
||||
/define-lazy-prop/2.0.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==,
|
||||
}
|
||||
engines: {node: ">=8"}
|
||||
dev: true
|
||||
|
||||
/define-properties/1.1.4:
|
||||
resolution:
|
||||
{
|
||||
@@ -9324,6 +9387,17 @@ packages:
|
||||
dependencies:
|
||||
once: 1.4.0
|
||||
|
||||
/enhanced-resolve/5.11.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-0Gcraf7gAJSQoPg+bTSXNhuzAYtXqLc4C011vb8S3B8XUSEkGYNBk20c68X9291VF4vvsCD8SPkr6Mza+DwU+g==,
|
||||
}
|
||||
engines: {node: ">=10.13.0"}
|
||||
dependencies:
|
||||
graceful-fs: 4.2.10
|
||||
tapable: 2.2.1
|
||||
dev: true
|
||||
|
||||
/enquirer/2.3.6:
|
||||
resolution:
|
||||
{
|
||||
@@ -10079,11 +10153,12 @@ packages:
|
||||
transitivePeerDependencies:
|
||||
- eslint-import-resolver-webpack
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/eslint-config-next/13.0.3_rmayb2veg2btbq6mbmnyivgasy:
|
||||
/eslint-config-next/13.0.4_rmayb2veg2btbq6mbmnyivgasy:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-i2JoQP8gGv303GjXTonA27fm1ckRRkRoAP1WYEQgN0D2DDoFeBPqlJgHlMHnXKWjmNct/sW8jQEvy9am2juc8g==,
|
||||
integrity: sha512-moEC7BW2TK7JKq3QfnaauqRjWzVcEf71gp5DbClpFPHM6QXE0u0uVvSTiHlmOgtCe1vyWAO+AhF87ZITd8mIDw==,
|
||||
}
|
||||
peerDependencies:
|
||||
eslint: ^7.23.0 || ^8.0.0
|
||||
@@ -10092,13 +10167,13 @@ packages:
|
||||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
"@next/eslint-plugin-next": 13.0.3
|
||||
"@next/eslint-plugin-next": 13.0.4
|
||||
"@rushstack/eslint-patch": 1.1.3
|
||||
"@typescript-eslint/parser": 5.43.0_rmayb2veg2btbq6mbmnyivgasy
|
||||
eslint: 8.27.0
|
||||
eslint-import-resolver-node: 0.3.6
|
||||
eslint-import-resolver-typescript: 2.7.1_dcpv4nbdr5ks2h5677xdltrk6e
|
||||
eslint-plugin-import: 2.26.0_ttnp75sbivpcvanbhjbkcsh3ly
|
||||
eslint-import-resolver-typescript: 3.5.2_dcpv4nbdr5ks2h5677xdltrk6e
|
||||
eslint-plugin-import: 2.26.0_bbzxof3vtngyannf3l4jlcflvy
|
||||
eslint-plugin-jsx-a11y: 6.5.1_eslint@8.27.0
|
||||
eslint-plugin-react: 7.31.8_eslint@8.27.0
|
||||
eslint-plugin-react-hooks: 4.5.0_eslint@8.27.0
|
||||
@@ -10116,6 +10191,7 @@ packages:
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
eslint: ">=7.0.0"
|
||||
dev: false
|
||||
|
||||
/eslint-config-prettier/8.5.0_eslint@8.27.0:
|
||||
resolution:
|
||||
@@ -10152,7 +10228,7 @@ packages:
|
||||
dependencies:
|
||||
debug: 4.3.4
|
||||
eslint: 8.27.0
|
||||
eslint-plugin-import: 2.26.0_ttnp75sbivpcvanbhjbkcsh3ly
|
||||
eslint-plugin-import: 2.26.0_7sezpqhbdjczyeiiusolu3czuy
|
||||
glob: 7.2.0
|
||||
is-glob: 4.0.3
|
||||
resolve: 1.22.0
|
||||
@@ -10180,6 +10256,59 @@ packages:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
/eslint-import-resolver-typescript/3.5.2_dcpv4nbdr5ks2h5677xdltrk6e:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-zX4ebnnyXiykjhcBvKIf5TNvt8K7yX6bllTRZ14MiurKPjDpCAZujlszTdB8pcNXhZcOf+god4s9SjQa5GnytQ==,
|
||||
}
|
||||
engines: {node: ^14.18.0 || >=16.0.0}
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
eslint-plugin-import: "*"
|
||||
dependencies:
|
||||
debug: 4.3.4
|
||||
enhanced-resolve: 5.11.0
|
||||
eslint: 8.27.0
|
||||
eslint-plugin-import: 2.26.0_bbzxof3vtngyannf3l4jlcflvy
|
||||
get-tsconfig: 4.2.0
|
||||
globby: 13.1.2
|
||||
is-core-module: 2.11.0
|
||||
is-glob: 4.0.3
|
||||
synckit: 0.8.4
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-module-utils/2.7.3_clahhyedowhj7lywpxe6ohktxi:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==,
|
||||
}
|
||||
engines: {node: ">=4"}
|
||||
peerDependencies:
|
||||
"@typescript-eslint/parser": "*"
|
||||
eslint-import-resolver-node: "*"
|
||||
eslint-import-resolver-typescript: "*"
|
||||
eslint-import-resolver-webpack: "*"
|
||||
peerDependenciesMeta:
|
||||
"@typescript-eslint/parser":
|
||||
optional: true
|
||||
eslint-import-resolver-node:
|
||||
optional: true
|
||||
eslint-import-resolver-typescript:
|
||||
optional: true
|
||||
eslint-import-resolver-webpack:
|
||||
optional: true
|
||||
dependencies:
|
||||
"@typescript-eslint/parser": 5.43.0_rmayb2veg2btbq6mbmnyivgasy
|
||||
debug: 3.2.7
|
||||
eslint-import-resolver-node: 0.3.6
|
||||
eslint-import-resolver-typescript: 3.5.2_dcpv4nbdr5ks2h5677xdltrk6e
|
||||
find-up: 2.1.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-module-utils/2.7.3_pbmiczca3qpqvnkfcriol7sq7u:
|
||||
resolution:
|
||||
{
|
||||
@@ -10209,36 +10338,6 @@ packages:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
/eslint-module-utils/2.7.3_rmba4edv35vyqs75pdxciqmxgu:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==,
|
||||
}
|
||||
engines: {node: ">=4"}
|
||||
peerDependencies:
|
||||
"@typescript-eslint/parser": "*"
|
||||
eslint-import-resolver-node: "*"
|
||||
eslint-import-resolver-typescript: "*"
|
||||
eslint-import-resolver-webpack: "*"
|
||||
peerDependenciesMeta:
|
||||
"@typescript-eslint/parser":
|
||||
optional: true
|
||||
eslint-import-resolver-node:
|
||||
optional: true
|
||||
eslint-import-resolver-typescript:
|
||||
optional: true
|
||||
eslint-import-resolver-webpack:
|
||||
optional: true
|
||||
dependencies:
|
||||
"@typescript-eslint/parser": 5.43.0_rmayb2veg2btbq6mbmnyivgasy
|
||||
debug: 3.2.7
|
||||
eslint-import-resolver-node: 0.3.6
|
||||
eslint-import-resolver-typescript: 2.7.1_dcpv4nbdr5ks2h5677xdltrk6e
|
||||
find-up: 2.1.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-import/2.26.0_7sezpqhbdjczyeiiusolu3czuy:
|
||||
resolution:
|
||||
{
|
||||
@@ -10273,7 +10372,7 @@ packages:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-import/2.26.0_ttnp75sbivpcvanbhjbkcsh3ly:
|
||||
/eslint-plugin-import/2.26.0_bbzxof3vtngyannf3l4jlcflvy:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==,
|
||||
@@ -10293,7 +10392,7 @@ packages:
|
||||
doctrine: 2.1.0
|
||||
eslint: 8.27.0
|
||||
eslint-import-resolver-node: 0.3.6
|
||||
eslint-module-utils: 2.7.3_rmba4edv35vyqs75pdxciqmxgu
|
||||
eslint-module-utils: 2.7.3_clahhyedowhj7lywpxe6ohktxi
|
||||
has: 1.0.3
|
||||
is-core-module: 2.8.1
|
||||
is-glob: 4.0.3
|
||||
@@ -11571,6 +11670,13 @@ packages:
|
||||
call-bind: 1.0.2
|
||||
get-intrinsic: 1.1.1
|
||||
|
||||
/get-tsconfig/4.2.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==,
|
||||
}
|
||||
dev: true
|
||||
|
||||
/get-value/2.0.6:
|
||||
resolution:
|
||||
{
|
||||
@@ -11709,6 +11815,13 @@ packages:
|
||||
define-properties: 1.1.4
|
||||
dev: false
|
||||
|
||||
/globalyzer/0.1.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==,
|
||||
}
|
||||
dev: true
|
||||
|
||||
/globby/11.1.0:
|
||||
resolution:
|
||||
{
|
||||
@@ -11735,7 +11848,6 @@ packages:
|
||||
ignore: 5.2.0
|
||||
merge2: 1.4.1
|
||||
slash: 4.0.0
|
||||
dev: false
|
||||
|
||||
/globby/9.2.0:
|
||||
resolution:
|
||||
@@ -11756,6 +11868,13 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/globrex/0.1.2:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==,
|
||||
}
|
||||
dev: true
|
||||
|
||||
/got/11.8.1:
|
||||
resolution:
|
||||
{
|
||||
@@ -12398,6 +12517,15 @@ packages:
|
||||
ci-info: 3.3.1
|
||||
dev: false
|
||||
|
||||
/is-core-module/2.11.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==,
|
||||
}
|
||||
dependencies:
|
||||
has: 1.0.3
|
||||
dev: true
|
||||
|
||||
/is-core-module/2.8.1:
|
||||
resolution:
|
||||
{
|
||||
@@ -13028,7 +13156,7 @@ packages:
|
||||
pretty-format: 29.2.1
|
||||
slash: 3.0.0
|
||||
strip-json-comments: 3.1.1
|
||||
ts-node: 10.9.1_cbe7ovvae6zqfnmtgctpgpys54
|
||||
ts-node: 10.9.1_typescript@4.8.4
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@@ -13559,13 +13687,6 @@ packages:
|
||||
engines: {node: ">=10"}
|
||||
dev: true
|
||||
|
||||
/jpeg-js/0.4.4:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==,
|
||||
}
|
||||
dev: true
|
||||
|
||||
/js-sdsl/4.1.5:
|
||||
resolution:
|
||||
{
|
||||
@@ -14753,15 +14874,6 @@ packages:
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/mime/2.6.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==,
|
||||
}
|
||||
engines: {node: ">=4.0.0"}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/mimic-fn/2.1.0:
|
||||
resolution:
|
||||
{
|
||||
@@ -15553,6 +15665,18 @@ packages:
|
||||
is-wsl: 2.2.0
|
||||
dev: true
|
||||
|
||||
/open/8.4.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==,
|
||||
}
|
||||
engines: {node: ">=12"}
|
||||
dependencies:
|
||||
define-lazy-prop: 2.0.0
|
||||
is-docker: 2.2.1
|
||||
is-wsl: 2.2.0
|
||||
dev: true
|
||||
|
||||
/opener/1.5.2:
|
||||
resolution:
|
||||
{
|
||||
@@ -16183,33 +16307,25 @@ packages:
|
||||
pathe: 0.3.2
|
||||
dev: true
|
||||
|
||||
/playwright-chromium/1.14.1:
|
||||
/playwright-chromium/1.28.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-gAHDcrBKrl1Az6TuzC4T013Nl+qKVZeblc2VkElHqEuNQHPKW7840cQBZavFz38xJshC993iClVc6Y+bLgF8FA==,
|
||||
integrity: sha512-5IUBJShMJMaK6NmRj/7KWdvVqd7J8DqLH0wVdXBs/4MfZUAvByBB35y5v6B33NjlJg3SZGX5alR8TANrcKaJNA==,
|
||||
}
|
||||
engines: {node: ">=12"}
|
||||
engines: {node: ">=14"}
|
||||
hasBin: true
|
||||
requiresBuild: true
|
||||
dependencies:
|
||||
commander: 6.2.1
|
||||
debug: 4.3.4
|
||||
extract-zip: 2.0.1
|
||||
https-proxy-agent: 5.0.1
|
||||
jpeg-js: 0.4.4
|
||||
mime: 2.6.0
|
||||
pngjs: 5.0.0
|
||||
progress: 2.0.3
|
||||
proper-lockfile: 4.1.2
|
||||
proxy-from-env: 1.1.0
|
||||
rimraf: 3.0.2
|
||||
stack-utils: 2.0.5
|
||||
ws: 7.5.8
|
||||
yazl: 2.5.1
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
playwright-core: 1.28.0
|
||||
dev: true
|
||||
|
||||
/playwright-core/1.28.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-nJLknd28kPBiCNTbqpu6Wmkrh63OEqJSFw9xOfL9qxfNwody7h6/L3O2dZoWQ6Oxcm0VOHjWmGiCUGkc0X3VZA==,
|
||||
}
|
||||
engines: {node: ">=14"}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/pluralize/8.0.0:
|
||||
@@ -16220,14 +16336,6 @@ packages:
|
||||
engines: {node: ">=4"}
|
||||
dev: false
|
||||
|
||||
/pngjs/5.0.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==,
|
||||
}
|
||||
engines: {node: ">=10.13.0"}
|
||||
dev: true
|
||||
|
||||
/posix-character-classes/0.1.1:
|
||||
resolution:
|
||||
{
|
||||
@@ -16420,6 +16528,7 @@ packages:
|
||||
integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==,
|
||||
}
|
||||
engines: {node: ">=0.4.0"}
|
||||
dev: false
|
||||
|
||||
/promise/7.3.1:
|
||||
resolution:
|
||||
@@ -16450,17 +16559,6 @@ packages:
|
||||
object-assign: 4.1.1
|
||||
react-is: 16.13.1
|
||||
|
||||
/proper-lockfile/4.1.2:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==,
|
||||
}
|
||||
dependencies:
|
||||
graceful-fs: 4.2.10
|
||||
retry: 0.12.0
|
||||
signal-exit: 3.0.7
|
||||
dev: true
|
||||
|
||||
/proxy-addr/2.0.7:
|
||||
resolution:
|
||||
{
|
||||
@@ -17200,14 +17298,6 @@ packages:
|
||||
}
|
||||
engines: {node: ">=0.12"}
|
||||
|
||||
/retry/0.12.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==,
|
||||
}
|
||||
engines: {node: ">= 4"}
|
||||
dev: true
|
||||
|
||||
/reusify/1.0.4:
|
||||
resolution:
|
||||
{
|
||||
@@ -17746,7 +17836,6 @@ packages:
|
||||
integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==,
|
||||
}
|
||||
engines: {node: ">=12"}
|
||||
dev: false
|
||||
|
||||
/slice-ansi/3.0.0:
|
||||
resolution:
|
||||
@@ -18301,10 +18390,10 @@ packages:
|
||||
minimist: 1.2.6
|
||||
dev: true
|
||||
|
||||
/superjson/1.9.1:
|
||||
/superjson/1.11.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-oT3HA2nPKlU1+5taFgz/HDy+GEaY+CWEbLzaRJVD4gZ7zMVVC4GDNFdgvAZt6/VuIk6D2R7RtPAiCHwmdzlMmg==,
|
||||
integrity: sha512-6PfAg1FKhqkwWvPb2uXhH4MkMttdc17eJ91+Aoz4s1XUEDZFmLfFx/xVA3wgkPxAGy5dpozgGdK6V/n20Wj9yg==,
|
||||
}
|
||||
engines: {node: ">=10"}
|
||||
dependencies:
|
||||
@@ -18351,6 +18440,25 @@ packages:
|
||||
integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==,
|
||||
}
|
||||
|
||||
/synckit/0.8.4:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-Dn2ZkzMdSX827QbowGbU/4yjWuvNaCoScLLoMo/yKbu+P4GBR6cRGKZH27k6a9bRzdqcyd1DE96pQtQ6uNkmyw==,
|
||||
}
|
||||
engines: {node: ^14.18.0 || >=16.0.0}
|
||||
dependencies:
|
||||
"@pkgr/utils": 2.3.1
|
||||
tslib: 2.4.0
|
||||
dev: true
|
||||
|
||||
/tapable/2.2.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==,
|
||||
}
|
||||
engines: {node: ">=6"}
|
||||
dev: true
|
||||
|
||||
/tar/6.1.11:
|
||||
resolution:
|
||||
{
|
||||
@@ -18445,6 +18553,16 @@ packages:
|
||||
readable-stream: 3.6.0
|
||||
dev: false
|
||||
|
||||
/tiny-glob/0.2.9:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==,
|
||||
}
|
||||
dependencies:
|
||||
globalyzer: 0.1.0
|
||||
globrex: 0.1.2
|
||||
dev: true
|
||||
|
||||
/tinypool/0.1.3:
|
||||
resolution:
|
||||
{
|
||||
@@ -18688,6 +18806,7 @@ packages:
|
||||
typescript: 4.8.4
|
||||
v8-compile-cache-lib: 3.0.1
|
||||
yn: 3.1.1
|
||||
dev: false
|
||||
|
||||
/ts-node/10.9.1_ieummqxttktzud32hpyrer46t4:
|
||||
resolution:
|
||||
@@ -18754,7 +18873,6 @@ packages:
|
||||
typescript: 4.8.4
|
||||
v8-compile-cache-lib: 3.0.1
|
||||
yn: 3.1.1
|
||||
dev: false
|
||||
|
||||
/tsconfig-paths/3.14.1:
|
||||
resolution:
|
||||
@@ -20108,15 +20226,6 @@ packages:
|
||||
fd-slicer: 1.1.0
|
||||
dev: true
|
||||
|
||||
/yazl/2.5.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==,
|
||||
}
|
||||
dependencies:
|
||||
buffer-crc32: 0.2.13
|
||||
dev: true
|
||||
|
||||
/yn/3.1.1:
|
||||
resolution:
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18"
|
||||
"blitz": "2.0.0-beta.19"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18"
|
||||
"blitz": "2.0.0-beta.19"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0",
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18"
|
||||
"blitz": "2.0.0-beta.19"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18"
|
||||
"blitz": "2.0.0-beta.19"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18"
|
||||
"blitz": "2.0.0-beta.19"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0",
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.18",
|
||||
"blitz": "2.0.0-beta.19",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user