1
0
mirror of synced 2026-02-04 03:01:17 -05:00

Compare commits

...

17 Commits

Author SHA1 Message Date
github-actions[bot]
bbe1a54d7a Version Packages (#4316)
* Version Packages

* chore: update pnpm lock

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
2024-04-02 06:39:08 +00:00
Siddharth Suresh
9b075dbb47 chore: upgrade release CI to latest versions 2024-04-02 12:00:21 +05:30
Siddharth Suresh
60a4d90c86 chore: override version of mime blocking release CI 2024-04-02 11:53:32 +05:30
Blitz.js Bot
a674897601 (meta) added @gengjiawen as contributor 2024-04-01 08:56:45 -04:00
Jiawen Geng
5a587a6c31 fix: production issue (#4311)
* fix: production issue

* Update .changeset/soft-tables-ring.md

---------

Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
2024-04-01 12:56:40 +00:00
Siddharth Suresh
744242f25b chore: remove --no-frozen-lockfile install step for release workflow 2024-03-08 00:47:36 +05:30
Blitz.js Bot
0f5297f1aa (meta) added @lmisea as contributor 2024-03-07 13:26:25 -05:00
Luis Isea
76a2544f9d fix: process.kill("SIGABRT") not supported on windows (#4308)
* fix: process.kill("SIGABRT") not supported on windows

* fix: use process.kill("SIGINT") across all operative systems

* Update .changeset/clever-insects-shave.md

---------

Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
2024-03-07 18:26:20 +00:00
github-actions[bot]
6f44c2334e Version Packages (#4301)
* Version Packages

* pnpm lock

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
2024-02-17 06:33:47 +00:00
Siddharth Suresh
8a417533f6 feat: remove restriction to use secure cookies in localhost (#4300)
* feat: remove restriction to use secure cookies in localhost

* changeset

* pnpm lock fix

* Update .changeset/grumpy-deers-rest.md

* Update .changeset/grumpy-deers-rest.md

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-16 23:34:36 +00:00
Siddharth Suresh
6f54841b7a fix: getBlitzContext() can only be used in React Server Components in Nextjs 13 or higher (#4299)
* fix: remove custom errors thrown by blitz

* Create curvy-cougars-lick.md

* use require and eval rather than the await which becomes a `yield import` possibly causing the issue

* pnpm lock fix

* Update .changeset/curvy-cougars-lick.md

* add comment

* use correct error type

* Apply suggestions from code review
2024-02-16 23:27:05 +00:00
github-actions[bot]
e8f564ea66 Version Packages (#4292)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 22:30:47 +05:30
Siddharth Suresh
71b9950037 fix: ajv dependency was not installed with blitz new (#4297)
* add ajv to devDeps

* Create four-dots-retire.md
2024-02-06 22:25:55 +05:30
Siddharth Suresh
28a79040e4 feat: export BlitzServerMiddleware from blitz-next (#4296)
* feat: export `BlitzServerMiddleware` from blitz-next

* Create sixty-pants-hunt.md

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-06 22:25:36 +05:30
Siddharth Suresh
dd604c7675 perf: add filter to query only non expired sessions (#4288)
* perf: add check to make sure only non expired sessions are selected by default

* remove console.logs

* Create chatty-ants-bake.md

* remove `expiresAt` from the publicData

* remove internal from changelog

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-06 16:13:32 +00:00
Blitz.js Bot
0a8d4bfdaf (meta) added @Doc0x1 as contributor 2024-01-25 03:48:39 -05:00
Doc0x1
f25aac08c0 Added codemod support for legacy projects with a /src folder (#4290)
* Added support for legacy projects that have the pages folder located inside a /src directory

* Fixed line 687 for path.resolve(`${findPagesDirectory}/api/rpc`) not actually calling the function and added path.resolve's to findPagesDirectory

* Update for lines 56 and 1340 to add support for app and pages directories located in /src
2024-01-25 14:18:34 +05:30
66 changed files with 586 additions and 338 deletions

View File

@@ -4024,6 +4024,36 @@
"doc",
"code"
]
},
{
"login": "Doc0x1",
"name": "Doc0x1",
"avatar_url": "https://avatars.githubusercontent.com/u/19937034?v=4",
"profile": "https://hacknex.us",
"contributions": [
"doc",
"code"
]
},
{
"login": "lmisea",
"name": "Luis Isea",
"avatar_url": "https://avatars.githubusercontent.com/u/106825636?v=4",
"profile": "https://github.com/lmisea",
"contributions": [
"doc",
"code"
]
},
{
"login": "gengjiawen",
"name": "Jiawen Geng",
"avatar_url": "https://avatars.githubusercontent.com/u/3759816?v=4",
"profile": "https://www.gengjiawen.com",
"contributions": [
"doc",
"code"
]
}
],
"contributorsPerLine": 7,

View File

@@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node.js 16.x
uses: actions/setup-node@v2
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
- name: Creating .npmrc
run: |
@@ -37,8 +37,8 @@ jobs:
- name: Pre-publish
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.32.6
- run: pnpm install --no-frozen-lockfile
version: 8.9.0
- run: pnpm install
- run: pnpm build
- name: Create Release Pull Request
@@ -49,10 +49,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Github Release
# uses: release-drafter/release-drafter@v5.19.0
# with:
# config-name: release-drafter.yml
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -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-424-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-427-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">
@@ -748,6 +748,9 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
<td align="center"><a href="https://github.com/potikhanovsergey"><img src="https://avatars.githubusercontent.com/u/71494201?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sergey</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=potikhanovsergey" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/papsavas"><img src="https://avatars.githubusercontent.com/u/50584606?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Savvas Papageorgiadis</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=papsavas" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=papsavas" title="Code">💻</a></td>
<td align="center"><a href="https://flow-office.eu/"><img src="https://avatars.githubusercontent.com/u/77194479?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Leonidas</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=LeonMueller-OneAndOnly" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=LeonMueller-OneAndOnly" title="Code">💻</a></td>
<td align="center"><a href="https://hacknex.us"><img src="https://avatars.githubusercontent.com/u/19937034?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Doc0x1</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Doc0x1" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Doc0x1" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/lmisea"><img src="https://avatars.githubusercontent.com/u/106825636?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luis Isea</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=lmisea" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=lmisea" title="Code">💻</a></td>
<td align="center"><a href="https://www.gengjiawen.com"><img src="https://avatars.githubusercontent.com/u/3759816?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jiawen Geng</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=gengjiawen" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=gengjiawen" title="Code">💻</a></td>
</tr>
</table>

View File

@@ -1,5 +1,41 @@
# next-blitz-auth
## 0.1.7
### Patch Changes
- Updated dependencies [76a2544f9]
- Updated dependencies [5a587a6c3]
- blitz@2.0.6
- @blitzjs/auth@2.0.6
- @blitzjs/next@2.0.6
- @blitzjs/rpc@2.0.6
- @blitzjs/config@2.0.6
## 0.1.6
### Patch Changes
- Updated dependencies [6f54841b7]
- Updated dependencies [8a417533f]
- @blitzjs/auth@2.0.5
- blitz@2.0.5
- @blitzjs/rpc@2.0.5
- @blitzjs/next@2.0.5
- @blitzjs/config@2.0.5
## 0.1.5
### Patch Changes
- Updated dependencies [dd604c767]
- Updated dependencies [28a79040e]
- @blitzjs/auth@2.0.4
- blitz@2.0.4
- @blitzjs/next@2.0.4
- @blitzjs/rpc@2.0.4
- @blitzjs/config@2.0.4
## 0.1.4
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "next-blitz-auth",
"version": "0.1.4",
"version": "0.1.7",
"private": true,
"scripts": {
"blitz:dev": "next dev",
@@ -12,15 +12,15 @@
"schema": "prisma/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "^4.5.0",
"@tanstack/react-query": "4.0.10",
"blitz": "2.0.3",
"blitz": "2.0.6",
"flatted": "3.2.7",
"next": "14.0.4",
"prisma": "^4.5.0",

View File

@@ -23,14 +23,14 @@
]
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "14.0.4",
"openid-client": "5.2.1",
"prisma": "4.6.1",

View File

@@ -24,14 +24,14 @@
]
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "14.0.4",
"next-auth": "4.18.7",
"prisma": "4.6.1",

View File

@@ -16,14 +16,14 @@
"schema": "./db/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"@types/jest": "29.2.2",
"@types/passport-twitter": "1.0.37",
"blitz": "2.0.3",
"blitz": "2.0.6",
"jest": "29.3.0",
"jest-environment-jsdom": "29.3.0",
"next": "14.0.4",

View File

@@ -17,14 +17,14 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"delay": "5.0.0",
"next": "14.0.4",
"prisma": "4.6.1",

View File

@@ -17,11 +17,11 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"lowdb": "3.0.0",
"next": "14.0.4",
"prisma": "4.6.1",

View File

@@ -16,11 +16,11 @@
"schema": "db/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"lowdb": "3.0.0",
"next": "14.0.4",
"prisma": "4.6.1",
@@ -28,7 +28,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",

View File

@@ -11,10 +11,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
},
"dependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"blitz": "2.0.3",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"blitz": "2.0.6",
"next": "14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"

View File

@@ -17,12 +17,12 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"lowdb": "3.0.0",
"next": "14.0.4",
"prisma": "4.6.1",

View File

@@ -16,11 +16,11 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"lowdb": "3.0.0",
"next": "14.0.4",
"prisma": "4.6.1",
@@ -28,7 +28,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",

View File

@@ -8,13 +8,13 @@
"clean": "rm -rf .turbo && rm -rf node_modules"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"@tanstack/react-query": "4.0.10",
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "14.0.4",
"prisma": "4.6.1",
"react": "18.2.0",

View File

@@ -16,10 +16,10 @@
"schema": "db/schema.prisma"
},
"dependencies": {
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"lowdb": "3.0.0",
"next": "14.0.4",
"prisma": "4.6.1",
@@ -27,7 +27,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",

View File

@@ -7,10 +7,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
},
"dependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"blitz": "2.0.3",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"blitz": "2.0.6",
"next": "14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"

View File

@@ -7,10 +7,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
},
"dependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"blitz": "2.0.3",
"@blitzjs/config": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"blitz": "2.0.6",
"next": "14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"

View File

@@ -16,11 +16,11 @@
"schema": "db/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/next": "2.0.3",
"@blitzjs/rpc": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/next": "2.0.6",
"@blitzjs/rpc": "2.0.6",
"@prisma/client": "4.6.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"lowdb": "3.0.0",
"next": "14.0.4",
"prisma": "4.6.1",
@@ -28,7 +28,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",

View File

@@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@blitzjs/config": "workspace:2.0.3",
"@blitzjs/next": "workspace:2.0.3",
"@blitzjs/rpc": "workspace:2.0.3",
"@blitzjs/config": "workspace:2.0.6",
"@blitzjs/next": "workspace:2.0.6",
"@blitzjs/rpc": "workspace:2.0.6",
"@tanstack/react-query": "4.13.0",
"@testing-library/react": "13.4.0",
"@types/express": "4.17.13",

View File

@@ -48,6 +48,9 @@
"pnpm": {
"patchedDependencies": {
"next-auth@4.18.7": "patches/next-auth@4.18.7.patch"
},
"overrides": {
"@types/mime": "3.0.4"
}
}
}

View File

@@ -1,5 +1,31 @@
# @blitzjs/auth
## 2.0.6
### Patch Changes
- 5a587a6c3: Fix bundling issue that occurs in vercel due to the way imports were handled internally
- Updated dependencies [76a2544f9]
- blitz@2.0.6
## 2.0.5
### Patch Changes
- 6f54841b7: fix: getBlitzContext() can only be used in React Server Components in Nextjs 13 or higher
- 8a417533f: fix: remove restriction to use `secure` cookies in localhost / during development following spec in [developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies)
- Updated dependencies [6f54841b7]
- blitz@2.0.5
## 2.0.4
### Patch Changes
- dd604c767: perf: add filter to select only non expired sessions
- Updated dependencies [dd604c767]
- Updated dependencies [28a79040e]
- blitz@2.0.4
## 2.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/auth",
"version": "2.0.3",
"version": "2.0.6",
"homepage": "https://blitzjs.com/",
"repository": {
"type": "git",
@@ -50,7 +50,7 @@
"url": "0.11.0"
},
"peerDependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "*",
"next-auth": "*",
"secure-password": "4.0.0"
@@ -67,7 +67,7 @@
}
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@testing-library/react": "13.4.0",
"@testing-library/react-hooks": "8.0.1",
"@types/cookie": "0.4.1",
@@ -75,7 +75,7 @@
"@types/jsonwebtoken": "8.5.8",
"@types/react": "18.0.25",
"@types/react-dom": "17.0.14",
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "14.0.4",
"next-auth": "4.18.7",
"react": "18.2.0",

View File

@@ -22,7 +22,9 @@ interface IsAuthorized {
interface PrismaClientWithSession {
session: {
findFirst(args?: {where?: {handle?: SessionModel["handle"]}}): Promise<SessionModel | null>
findMany(args?: {where?: {userId?: PublicData["userId"]}}): Promise<SessionModel[]>
findMany(args?: {
where?: {userId?: PublicData["userId"]; expiresAt?: {gt?: Date}}
}): Promise<SessionModel[]>
create(args: {
data: SessionModel & {
userId?: any
@@ -42,7 +44,7 @@ export const PrismaStorage = <Client extends PrismaClientWithSession>(
): SessionConfigMethods => {
return {
getSession: (handle) => db.session.findFirst({where: {handle}}),
getSessions: (userId) => db.session.findMany({where: {userId}}),
getSessions: (userId) => db.session.findMany({where: {userId, expiresAt: {gt: new Date()}}}),
createSession: (session) => {
let user
if (session.userId) {

View File

@@ -43,7 +43,7 @@ import {Socket} from "net"
import {UrlObject} from "url"
import {formatWithValidation} from "../shared/url-utils"
export function isLocalhost(req: any): boolean {
export function isLocalhost(req: IncomingMessage): boolean {
let {host} = req.headers
let localhost = false
if (host) {
@@ -182,30 +182,35 @@ export async function getSession(
}
export async function getBlitzContext(): Promise<Ctx> {
const {headers, cookies} = await import("next/headers").catch(() => {
throw new Error(
"getBlitzContext() can only be used in React Server Components in Nextjs 13 or higher",
try {
const {headers, cookies} = require("next/headers")
const req = new IncomingMessage(new Socket()) as IncomingMessage & {
cookies: {[key: string]: string}
}
req.headers = Object.fromEntries(headers())
const csrfToken = cookies().get(COOKIE_CSRF_TOKEN())
if (csrfToken) {
req.headers[HEADER_CSRF] = csrfToken.value
}
req.cookies = Object.fromEntries(
cookies()
.getAll()
.map((c: {name: string; value: string}) => [c.name, c.value]),
)
})
const req = new IncomingMessage(new Socket()) as IncomingMessage & {
cookies: {[key: string]: string}
const res = new ServerResponse(req)
const session = await getSession(req, res, true)
const ctx: Ctx = {
session,
}
return ctx
} catch (e) {
if ((e as NodeJS.ErrnoException).code === "MODULE_NOT_FOUND") {
throw new Error(
"Usage of `useAuthenticatedBlitzContext` is supported only in next.js 13.0.0 and above. Please upgrade your next.js version.",
)
}
throw e
}
req.headers = Object.fromEntries(headers())
const csrfToken = cookies().get(COOKIE_CSRF_TOKEN())
if (csrfToken) {
req.headers[HEADER_CSRF] = csrfToken.value
}
req.cookies = Object.fromEntries(
cookies()
.getAll()
.map((c: {name: string; value: string}) => [c.name, c.value]),
)
const res = new ServerResponse(req)
const session = await getSession(req, res, true)
const ctx: Ctx = {
session,
}
return ctx
}
interface RouteUrlObject extends Pick<UrlObject, "pathname" | "query" | "href"> {
@@ -227,58 +232,63 @@ export async function useAuthenticatedBlitzContext({
})
const ctx: Ctx = await getBlitzContext()
const userId = ctx.session.userId
const {redirect} = await import("next/navigation").catch(() => {
throw new Error(
"useAuthenticatedBlitzContext() can only be used in React Server Components in Nextjs 13 or higher",
)
})
if (userId) {
debug("[useAuthenticatedBlitzContext] User is authenticated")
if (redirectAuthenticatedTo) {
if (typeof redirectAuthenticatedTo === "function") {
redirectAuthenticatedTo = redirectAuthenticatedTo(ctx)
try {
const {redirect} = require("next/navigation")
if (userId) {
debug("[useAuthenticatedBlitzContext] User is authenticated")
if (redirectAuthenticatedTo) {
if (typeof redirectAuthenticatedTo === "function") {
redirectAuthenticatedTo = redirectAuthenticatedTo(ctx)
}
const redirectUrl =
typeof redirectAuthenticatedTo === "string"
? redirectAuthenticatedTo
: formatWithValidation(redirectAuthenticatedTo)
debug("[useAuthenticatedBlitzContext] Redirecting to", redirectUrl)
if (role) {
try {
ctx.session.$authorize(role)
} catch (e) {
log.info("Authentication Redirect: " + customChalk.dim(`Role ${role}`), redirectTo)
redirect(redirectUrl)
}
} else {
log.info("Authentication Redirect: " + customChalk.dim("(Authenticated)"), redirectUrl)
redirect(redirectUrl)
}
}
const redirectUrl =
typeof redirectAuthenticatedTo === "string"
? redirectAuthenticatedTo
: formatWithValidation(redirectAuthenticatedTo)
debug("[useAuthenticatedBlitzContext] Redirecting to", redirectUrl)
if (role) {
if (redirectTo && role) {
debug("[useAuthenticatedBlitzContext] redirectTo and role are both defined.")
try {
ctx.session.$authorize(role)
} catch (e) {
log.info("Authentication Redirect: " + customChalk.dim(`Role ${role}`), redirectTo)
redirect(redirectUrl)
log.error("Authorization Error: " + (e as Error).message)
if (typeof redirectTo !== "string") {
redirectTo = formatWithValidation(redirectTo)
}
log.info("Authorization Redirect: " + customChalk.dim(`Role ${role}`), redirectTo)
redirect(redirectTo)
}
} else {
log.info("Authentication Redirect: " + customChalk.dim("(Authenticated)"), redirectUrl)
redirect(redirectUrl)
}
}
if (redirectTo && role) {
debug("[useAuthenticatedBlitzContext] redirectTo and role are both defined.")
try {
ctx.session.$authorize(role)
} catch (e) {
log.error("Authorization Error: " + (e as Error).message)
} else {
debug("[useAuthenticatedBlitzContext] User is not authenticated")
if (redirectTo) {
if (typeof redirectTo !== "string") {
redirectTo = formatWithValidation(redirectTo)
}
log.info("Authorization Redirect: " + customChalk.dim(`Role ${role}`), redirectTo)
log.info("Authentication Redirect: " + customChalk.dim("(Not authenticated)"), redirectTo)
redirect(redirectTo)
}
}
} else {
debug("[useAuthenticatedBlitzContext] User is not authenticated")
if (redirectTo) {
if (typeof redirectTo !== "string") {
redirectTo = formatWithValidation(redirectTo)
}
log.info("Authentication Redirect: " + customChalk.dim("(Not authenticated)"), redirectTo)
redirect(redirectTo)
return ctx as AuthenticatedCtx
} catch (e) {
if ((e as NodeJS.ErrnoException).code === "MODULE_NOT_FOUND") {
throw new Error(
"Usage of `useAuthenticatedBlitzContext` is supported only in next.js 13.0.0 and above. Please upgrade your next.js version.",
)
}
throw e
}
return ctx as AuthenticatedCtx
}
const makeProxyToPublicData = <T extends SessionContextClass>(ctxClass: T): T => {
@@ -563,18 +573,13 @@ const setHeader = (res: ServerResponse, name: string, value: string) => {
}
}
const setSessionCookie = (
req: IncomingMessage,
res: ServerResponse,
sessionToken: string,
expiresAt: Date,
) => {
const setSessionCookie = (res: ServerResponse, sessionToken: string, expiresAt: Date) => {
setCookie(
res,
cookie.serialize(COOKIE_SESSION_TOKEN(), sessionToken, {
path: "/",
httpOnly: true,
secure: global.sessionConfig.secureCookies && !isLocalhost(req),
secure: global.sessionConfig.secureCookies,
sameSite: global.sessionConfig.sameSite,
domain: global.sessionConfig.domain,
expires: expiresAt,
@@ -582,18 +587,13 @@ const setSessionCookie = (
)
}
const setAnonymousSessionCookie = (
req: IncomingMessage,
res: ServerResponse,
token: string,
expiresAt: Date,
) => {
const setAnonymousSessionCookie = (res: ServerResponse, token: string, expiresAt: Date) => {
setCookie(
res,
cookie.serialize(COOKIE_ANONYMOUS_SESSION_TOKEN(), token, {
path: "/",
httpOnly: true,
secure: global.sessionConfig.secureCookies && !isLocalhost(req),
secure: global.sessionConfig.secureCookies,
sameSite: global.sessionConfig.sameSite,
domain: global.sessionConfig.domain,
expires: expiresAt,
@@ -835,11 +835,11 @@ async function createNewSession(
new Date(),
global.sessionConfig.anonSessionExpiryMinutes as number,
)
setAnonymousSessionCookie(req, res, anonymousSessionToken, expiresAt)
setAnonymousSessionCookie(res, anonymousSessionToken, expiresAt)
setCSRFCookie(req, res, antiCSRFToken, expiresAt)
setPublicDataCookie(req, res, publicDataToken, expiresAt)
// Clear the essential session cookie in case it was previously set
setSessionCookie(req, res, "", new Date(0))
setSessionCookie(res, "", new Date(0))
setHeader(res, HEADER_SESSION_CREATED, "true")
return {
@@ -891,11 +891,11 @@ async function createNewSession(
privateData: JSON.stringify(newPrivateData),
})
setSessionCookie(req, res, sessionToken, expiresAt)
setSessionCookie(res, sessionToken, expiresAt)
setCSRFCookie(req, res, antiCSRFToken, expiresAt)
setPublicDataCookie(req, res, publicDataToken, expiresAt)
// Clear the anonymous session cookie in case it was previously set
setAnonymousSessionCookie(req, res, "", new Date(0))
setAnonymousSessionCookie(res, "", new Date(0))
setHeader(res, HEADER_SESSION_CREATED, "true")
return {
@@ -943,7 +943,7 @@ async function refreshSession(
const publicDataToken = createPublicDataToken(sessionKernel.publicData)
const expiresAt = addYears(new Date(), 30)
setAnonymousSessionCookie(req, res, anonymousSessionToken, expiresAt)
setAnonymousSessionCookie(res, anonymousSessionToken, expiresAt)
setPublicDataCookie(req, res, publicDataToken, expiresAt)
} else if (global.sessionConfig.method === "essential" && "sessionToken" in sessionKernel) {
const expiresAt = addMinutes(new Date(), global.sessionConfig.sessionExpiryMinutes as number)

View File

@@ -1,5 +1,31 @@
# @blitzjs/next
## 2.0.6
### Patch Changes
- Updated dependencies [76a2544f9]
- blitz@2.0.6
- @blitzjs/rpc@2.0.6
## 2.0.5
### Patch Changes
- Updated dependencies [6f54841b7]
- blitz@2.0.5
- @blitzjs/rpc@2.0.5
## 2.0.4
### Patch Changes
- 28a79040e: feat: export `BlitzServerMiddleware` from blitz-next with stronger types
- Updated dependencies [dd604c767]
- Updated dependencies [28a79040e]
- blitz@2.0.4
- @blitzjs/rpc@2.0.4
## 2.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/next",
"version": "2.0.3",
"version": "2.0.6",
"homepage": "https://blitzjs.com/",
"repository": {
"type": "git",
@@ -29,7 +29,7 @@
"eslint.js"
],
"dependencies": {
"@blitzjs/rpc": "2.0.3",
"@blitzjs/rpc": "2.0.6",
"@types/hoist-non-react-statics": "3.3.1",
"copy-webpack-plugin": "11.0.0",
"debug": "4.3.3",
@@ -39,13 +39,13 @@
"supports-color": "8.1.1"
},
"peerDependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "*",
"react": "*",
"tslog": "4.9.0"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.3",
"@testing-library/react": "13.4.0",
@@ -56,7 +56,7 @@
"@types/react": "18.0.25",
"@types/react-dom": "17.0.14",
"@types/testing-library__react-hooks": "4.0.0",
"blitz": "2.0.3",
"blitz": "2.0.6",
"cross-spawn": "7.0.3",
"find-up": "4.1.0",
"next": "14.0.4",

View File

@@ -22,6 +22,7 @@ import {
RouteUrlObject,
startWatcher,
stopWatcher,
RequestMiddleware,
} from "blitz"
import {
getInfiniteQueryKey,
@@ -347,3 +348,15 @@ declare module "blitz" {
prefetchInfiniteQuery: PrefetchQueryFn
}
}
export const BlitzServerMiddleware = <
TMiddleware extends RequestMiddleware<NextApiRequest, BlitzNextApiResponse> = RequestMiddleware<
NextApiRequest,
BlitzNextApiResponse
>,
>(
middleware: TMiddleware,
): BlitzServerPlugin<{}> => ({
requestMiddlewares: [middleware],
exports: () => ({}),
})

View File

@@ -1,5 +1,27 @@
# @blitzjs/rpc
## 2.0.6
### Patch Changes
- Updated dependencies [76a2544f9]
- blitz@2.0.6
## 2.0.5
### Patch Changes
- Updated dependencies [6f54841b7]
- blitz@2.0.5
## 2.0.4
### Patch Changes
- Updated dependencies [dd604c767]
- Updated dependencies [28a79040e]
- blitz@2.0.4
## 2.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/rpc",
"version": "2.0.3",
"version": "2.0.6",
"homepage": "https://blitzjs.com/",
"repository": {
"type": "git",
@@ -37,18 +37,18 @@
},
"peerDependencies": {
"@tanstack/query-core": "4.24.4",
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "*",
"react": "*"
},
"devDependencies": {
"@blitzjs/auth": "2.0.3",
"@blitzjs/config": "2.0.3",
"@blitzjs/auth": "2.0.6",
"@blitzjs/config": "2.0.6",
"@tanstack/query-core": "4.24.4",
"@types/debug": "4.1.7",
"@types/react": "18.0.25",
"@types/react-dom": "17.0.14",
"blitz": "2.0.3",
"blitz": "2.0.6",
"next": "14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0",

View File

@@ -1,5 +1,28 @@
# blitz
## 2.0.6
### Patch Changes
- 76a2544f9: Use `SIGINT` signal instead of `SIGABRT` to stop the process, when using custom server for better compatibility with operative systems
- @blitzjs/generator@2.0.6
## 2.0.5
### Patch Changes
- 6f54841b7: fix: getBlitzContext() can only be used in React Server Components in Nextjs 13 or higher
- @blitzjs/generator@2.0.5
## 2.0.4
### Patch Changes
- dd604c767: perf: add filter to select only non expired sessions
- 28a79040e: feat: export `BlitzServerMiddleware` from blitz-next with stronger types
- Updated dependencies [71b995003]
- @blitzjs/generator@2.0.4
## 2.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "blitz",
"version": "2.0.3",
"version": "2.0.6",
"homepage": "https://blitzjs.com/",
"repository": {
"type": "git",
@@ -30,7 +30,7 @@
"blitz": "bin/blitz"
},
"dependencies": {
"@blitzjs/generator": "2.0.3",
"@blitzjs/generator": "2.0.6",
"@mrleebo/prisma-ast": "0.2.6",
"@types/global-agent": "2.1.1",
"arg": "5.0.1",
@@ -80,7 +80,7 @@
"watchpack": "2.1.1"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@types/cookie": "0.4.1",
"@types/cross-spawn": "6.0.2",
"@types/debug": "4.1.7",

View File

@@ -127,7 +127,7 @@ export function startCustomServer(
console.log("\n")
//@ts-ignore -- incorrect TS type from node
process.exitCode = RESTART_CODE
process.kill("SIGABRT")
process.kill("SIGINT")
}
},
}

View File

@@ -1,5 +1,32 @@
# @blitzjs/codemod
## 2.0.6
### Patch Changes
- Updated dependencies [76a2544f9]
- blitz@2.0.6
- @blitzjs/generator@2.0.6
## 2.0.5
### Patch Changes
- Updated dependencies [6f54841b7]
- blitz@2.0.5
- @blitzjs/generator@2.0.5
## 2.0.4
### Patch Changes
- f25aac08c: Added support to codemod upgrade-legacy for projects that have their pages folder nested in a src/ folder
- Updated dependencies [dd604c767]
- Updated dependencies [71b995003]
- Updated dependencies [28a79040e]
- blitz@2.0.4
- @blitzjs/generator@2.0.4
## 2.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/codemod",
"version": "2.0.3",
"version": "2.0.6",
"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.3",
"@blitzjs/generator": "2.0.6",
"arg": "5.0.1",
"blitz": "2.0.3",
"blitz": "2.0.6",
"chalk": "^4.1.0",
"cross-spawn": "7.0.3",
"debug": "4.3.3",
@@ -38,7 +38,7 @@
},
"devDependencies": {
"@babel/preset-env": "7.12.10",
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@types/jscodeshift": "0.11.2",
"@types/node": "18.11.9",
"ast-types": "0.14.2",

View File

@@ -32,6 +32,12 @@ class ExpectedError extends Error {
}
}
const findPagesDirectory = () => {
const srcPagesDir = path.join("src", "pages")
const pagesDir = path.resolve("pages")
return fs.existsSync(srcPagesDir) ? path.resolve(srcPagesDir) : pagesDir
}
const isInternalBlitzMonorepoDevelopment = fs.existsSync(
path.join(__dirname, "../../../blitz-next"),
)
@@ -46,7 +52,22 @@ const upgradeLegacy = async () => {
if (blitzConfigFile === "") {
throw new ExpectedError("Could not identify Legacy Blitz Config file")
}
const appDir = path.resolve("app")
// Check if app directory exists in either app/ or src/app
const appDir = fs.existsSync(path.resolve("app"))
? path.resolve("app")
: fs.existsSync(path.resolve("src"))
? path.resolve(path.join("src", "app"))
: ""
try {
// Throw Error if appDir empty
if (appDir === "") {
throw new ExpectedError(
"Could not identify Legacy Blitz App directory in project (no app/ or src/ directory found)",
)
}
} catch (e) {
console.error(e)
}
let failedAt =
fs.existsSync(path.resolve(".migration.json")) && fs.readJSONSync("./.migration.json").failedAt
let collectedErrors: {message: string; step: number}[] = []
@@ -678,7 +699,7 @@ const upgradeLegacy = async () => {
steps.push({
name: "create pages/api/rpc directory and add [[...blitz]].ts wildecard API route",
action: async () => {
const pagesDir = path.resolve("pages/api/rpc")
const pagesDir = path.resolve(`${findPagesDirectory()}/api/rpc`)
const templatePath = path.join(
require.resolve("@blitzjs/generator"),
"..",
@@ -929,7 +950,7 @@ const upgradeLegacy = async () => {
name: "convert useRouterQuery to useRouter",
action: async () => {
//First check ./pages
const pagesDir = path.resolve("pages")
const pagesDir = findPagesDirectory()
getAllFiles(pagesDir, [], [], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
try {
const filepath = path.resolve(pagesDir, file)
@@ -1061,7 +1082,7 @@ const upgradeLegacy = async () => {
steps.push({
name: "wrap App component with withBlitz HOC",
action: async () => {
const pagesDir = path.resolve("pages")
const pagesDir = findPagesDirectory()
const program = getCollectionFromSource(
path.join(pagesDir, `_app.${isTypescript ? "tsx" : "jsx"}`),
@@ -1111,7 +1132,7 @@ const upgradeLegacy = async () => {
steps.push({
name: "update imports in the _document file",
action: async () => {
const pagesDir = path.resolve("pages")
const pagesDir = findPagesDirectory()
if (fs.existsSync(path.join(pagesDir, `_document.${isTypescript ? "tsx" : "jsx"}`))) {
const program = getCollectionFromSource(
@@ -1191,7 +1212,7 @@ const upgradeLegacy = async () => {
steps.push({
name: "wrap getServerSideProps, getStaticProps and API handlers with gSSP, gSP, and api",
action: async () => {
const pagesDir = path.resolve("pages")
const pagesDir = findPagesDirectory()
getAllFiles(pagesDir, [], ["api"], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
try {
const program = getCollectionFromSource(file)
@@ -1314,7 +1335,9 @@ const upgradeLegacy = async () => {
steps.push({
name: "check for usages of invokeWithMiddleware",
action: async () => {
getAllFiles(path.resolve("pages"), [], [], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
const srcPagesDir = path.resolve(path.join("src/pages"))
const pagesDir = fs.existsSync(srcPagesDir) ? srcPagesDir : path.resolve("pages")
getAllFiles(pagesDir, [], [], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
const program = getCollectionFromSource(file)
try {
const invokeWithMiddlewarePath = findCallExpression(program, "invokeWithMiddleware")

View File

@@ -1,5 +1,11 @@
# @blitzjs/config
## 2.0.6
## 2.0.5
## 2.0.4
## 2.0.3
## 2.0.2

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/config",
"private": true,
"version": "2.0.3",
"version": "2.0.6",
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "5.42.1",

View File

@@ -1,5 +1,15 @@
# @blitzjs/generator
## 2.0.6
## 2.0.5
## 2.0.4
### Patch Changes
- 71b995003: fix: ajv dependency was not installed with blitz new
## 2.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/generator",
"version": "2.0.3",
"version": "2.0.6",
"homepage": "https://blitzjs.com/",
"repository": {
"type": "git",
@@ -54,7 +54,7 @@
"zod": "3.20.2"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@juanm04/cpx": "2.0.1",
"@types/babel__core": "7.1.19",
"@types/diff": "5.0.2",

View File

@@ -48,6 +48,7 @@
"@types/react": "18.0.25",
"@typescript-eslint/eslint-plugin": "5.42.1",
"@vitejs/plugin-react": "2.2.0",
"ajv": "^7.0.0",
"eslint": "8.27.0",
"eslint-config-next": "12.3.1",
"eslint-config-prettier": "8.5.0",

View File

@@ -45,6 +45,7 @@
"@types/react": "18.0.25",
"@typescript-eslint/eslint-plugin": "5.42.1",
"@vitejs/plugin-react": "2.2.0",
"ajv": "^7.0.0",
"eslint": "8.27.0",
"eslint-config-next": "12.3.1",
"eslint-config-prettier": "8.5.0",

View File

@@ -25,7 +25,7 @@
"@typescript-eslint/parser": "5.9.1"
},
"devDependencies": {
"@blitzjs/config": "2.0.3",
"@blitzjs/config": "2.0.6",
"@types/react": "18.0.25",
"@types/react-dom": "17.0.14",
"react": "18.2.0",

229
pnpm-lock.yaml generated
View File

@@ -4,6 +4,9 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
overrides:
"@types/mime": 3.0.4
patchedDependencies:
next-auth@4.18.7:
hash: ygacwffmvwfom5hjylvkeei4s4
@@ -58,16 +61,16 @@ importers:
apps/next13:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@hookform/error-message":
specifier: 2.0.0
@@ -82,7 +85,7 @@ importers:
specifier: 4.0.10
version: 4.0.10(react-dom@18.2.0)(react@18.2.0)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
flatted:
specifier: 3.2.7
@@ -131,16 +134,16 @@ importers:
apps/toolkit-app:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@hookform/error-message":
specifier: 2.0.0
@@ -152,7 +155,7 @@ importers:
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
next:
specifier: 14.0.4
@@ -249,16 +252,16 @@ importers:
apps/toolkit-app-passportjs:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@hookform/error-message":
specifier: 2.0.0
@@ -270,7 +273,7 @@ importers:
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
next:
specifier: 14.0.4
@@ -361,16 +364,16 @@ importers:
apps/web:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
@@ -382,7 +385,7 @@ importers:
specifier: 1.0.37
version: 1.0.37
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jest:
specifier: 29.3.0
@@ -428,19 +431,19 @@ importers:
integration-tests/auth:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@prisma/client":
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
lowdb:
specifier: 3.0.0
@@ -510,16 +513,16 @@ importers:
integration-tests/auth-with-rpc:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@hookform/error-message":
specifier: 2.0.0
@@ -531,7 +534,7 @@ importers:
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
delay:
specifier: 5.0.0
@@ -631,19 +634,19 @@ importers:
integration-tests/get-initial-props:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
lowdb:
specifier: 3.0.0
@@ -662,7 +665,7 @@ importers:
version: 18.2.0(react@18.2.0)
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@next/bundle-analyzer":
specifier: 12.0.8
@@ -701,16 +704,16 @@ importers:
integration-tests/middleware:
dependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
next:
specifier: 14.0.4
@@ -756,22 +759,22 @@ importers:
integration-tests/next-13-app-dir:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
lowdb:
specifier: 3.0.0
@@ -841,19 +844,19 @@ importers:
integration-tests/no-suspense:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
lowdb:
specifier: 3.0.0
@@ -872,7 +875,7 @@ importers:
version: 18.2.0(react@18.2.0)
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@next/bundle-analyzer":
specifier: 12.0.8
@@ -911,16 +914,16 @@ importers:
integration-tests/qm:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
@@ -929,7 +932,7 @@ importers:
specifier: 4.0.10
version: 4.0.10(react-dom@18.2.0)(react@18.2.0)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
next:
specifier: 14.0.4
@@ -975,16 +978,16 @@ importers:
integration-tests/react-query-utils:
dependencies:
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
lowdb:
specifier: 3.0.0
@@ -1003,7 +1006,7 @@ importers:
version: 18.2.0(react@18.2.0)
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@next/bundle-analyzer":
specifier: 12.0.8
@@ -1042,16 +1045,16 @@ importers:
integration-tests/rpc:
dependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
next:
specifier: 14.0.4
@@ -1091,16 +1094,16 @@ importers:
integration-tests/rpc-path-root:
dependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
next:
specifier: 14.0.4
@@ -1140,19 +1143,19 @@ importers:
integration-tests/trailing-slash:
dependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-auth
"@blitzjs/next":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz-rpc
"@prisma/client":
specifier: 4.6.1
version: 4.6.1(prisma@4.6.1)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
lowdb:
specifier: 3.0.0
@@ -1171,7 +1174,7 @@ importers:
version: 18.2.0(react@18.2.0)
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/config
"@next/bundle-analyzer":
specifier: 12.0.8
@@ -1210,13 +1213,13 @@ importers:
integration-tests/utils:
devDependencies:
"@blitzjs/config":
specifier: workspace:2.0.3
specifier: workspace:2.0.6
version: link:../../packages/config
"@blitzjs/next":
specifier: workspace:2.0.3
specifier: workspace:2.0.6
version: link:../../packages/blitz-next
"@blitzjs/rpc":
specifier: workspace:2.0.3
specifier: workspace:2.0.6
version: link:../../packages/blitz-rpc
"@tanstack/react-query":
specifier: 4.13.0
@@ -1297,7 +1300,7 @@ importers:
packages/blitz:
dependencies:
"@blitzjs/generator":
specifier: 2.0.3
specifier: 2.0.6
version: link:../generator
"@mrleebo/prisma-ast":
specifier: 0.2.6
@@ -1442,7 +1445,7 @@ importers:
version: 2.1.1
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@types/cookie":
specifier: 0.4.1
@@ -1587,7 +1590,7 @@ importers:
version: 0.11.0
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@testing-library/react":
specifier: 13.4.0
@@ -1611,7 +1614,7 @@ importers:
specifier: 17.0.14
version: 17.0.14
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../blitz
next:
specifier: 14.0.4
@@ -1641,7 +1644,7 @@ importers:
packages/blitz-next:
dependencies:
"@blitzjs/rpc":
specifier: 2.0.3
specifier: 2.0.6
version: link:../blitz-rpc
"@types/hoist-non-react-statics":
specifier: 3.3.1
@@ -1666,7 +1669,7 @@ importers:
version: 8.1.1
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@testing-library/dom":
specifier: 8.13.0
@@ -1699,7 +1702,7 @@ importers:
specifier: 4.0.0
version: 4.0.0(@types/react@18.0.25)(react-dom@18.2.0)(react@18.2.0)
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../blitz
cross-spawn:
specifier: 7.0.3
@@ -1766,10 +1769,10 @@ importers:
version: 8.1.1
devDependencies:
"@blitzjs/auth":
specifier: 2.0.3
specifier: 2.0.6
version: link:../blitz-auth
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@tanstack/query-core":
specifier: 4.24.4
@@ -1784,7 +1787,7 @@ importers:
specifier: 17.0.14
version: 17.0.14
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../blitz
next:
specifier: 14.0.4
@@ -1823,13 +1826,13 @@ importers:
specifier: 7.17.12
version: 7.17.12(@babel/core@7.12.10)
"@blitzjs/generator":
specifier: 2.0.3
specifier: 2.0.6
version: link:../generator
arg:
specifier: 5.0.1
version: 5.0.1
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../blitz
chalk:
specifier: ^4.1.0
@@ -1857,7 +1860,7 @@ importers:
specifier: 7.12.10
version: 7.12.10(@babel/core@7.12.10)(supports-color@8.1.1)
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@types/jscodeshift":
specifier: 0.11.2
@@ -1979,7 +1982,7 @@ importers:
version: 3.20.2
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@juanm04/cpx":
specifier: 2.0.1
@@ -2055,7 +2058,7 @@ importers:
version: 5.9.1(eslint@8.27.0)(supports-color@8.1.1)(typescript@4.8.4)
devDependencies:
"@blitzjs/config":
specifier: 2.0.3
specifier: 2.0.6
version: link:../config
"@types/react":
specifier: 18.0.25
@@ -2079,7 +2082,7 @@ importers:
recipes/base-web:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2092,7 +2095,7 @@ importers:
recipes/bulma:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2105,7 +2108,7 @@ importers:
recipes/bumbag-ui:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2121,7 +2124,7 @@ importers:
recipes/chakra-ui:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2137,7 +2140,7 @@ importers:
recipes/emotion:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2150,19 +2153,19 @@ importers:
recipes/gh-action-yarn-mariadb:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
recipes/gh-action-yarn-postgres:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
recipes/ghost:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2175,7 +2178,7 @@ importers:
recipes/graphql-apollo-server:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2191,7 +2194,7 @@ importers:
recipes/logrocket:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2204,7 +2207,7 @@ importers:
recipes/material-ui:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2217,7 +2220,7 @@ importers:
recipes/next-ui:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2233,19 +2236,19 @@ importers:
recipes/passenger:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
recipes/quirrel:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
recipes/reflexjs:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2261,13 +2264,13 @@ importers:
recipes/render:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
recipes/secureheaders:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2283,7 +2286,7 @@ importers:
recipes/stitches:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2296,7 +2299,7 @@ importers:
recipes/styled-components:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2312,7 +2315,7 @@ importers:
recipes/tailwind:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2325,7 +2328,7 @@ importers:
recipes/theme-ui:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -2341,7 +2344,7 @@ importers:
recipes/vanilla-extract:
dependencies:
blitz:
specifier: 2.0.3
specifier: 2.0.6
version: link:../../packages/blitz
jscodeshift:
specifier: 0.13.0
@@ -7645,10 +7648,10 @@ packages:
"@types/braces": 3.0.1
dev: true
/@types/mime@1.3.2:
/@types/mime@3.0.4:
resolution:
{
integrity: sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==,
integrity: sha512-iJt33IQnVRkqeqC7PzBHPTC6fDlRNRW8vjrgqtScAhrmMwe8c4Eo7+fUGTa+XdWrpEgpyKWMYmi2dIwMAYRzPw==,
}
/@types/minimatch@3.0.5:
@@ -7943,7 +7946,7 @@ packages:
integrity: sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==,
}
dependencies:
"@types/mime": 1.3.2
"@types/mime": 3.0.4
"@types/node": 18.11.9
/@types/stack-utils@2.0.1:

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -24,7 +24,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -24,7 +24,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -24,6 +24,6 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3"
"blitz": "2.0.6"
}
}

View File

@@ -24,6 +24,6 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3"
"blitz": "2.0.6"
}
}

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0",
"uuid": "^8.3.1"
},

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -23,6 +23,6 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3"
"blitz": "2.0.6"
}
}

View File

@@ -22,6 +22,6 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3"
"blitz": "2.0.6"
}
}

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -22,6 +22,6 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3"
"blitz": "2.0.6"
}
}

View File

@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0",
"uuid": "^8.3.1"
},

View File

@@ -24,7 +24,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -24,7 +24,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {

View File

@@ -25,7 +25,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"blitz": "2.0.3",
"blitz": "2.0.6",
"jscodeshift": "0.13.0"
},
"devDependencies": {