Compare commits
15 Commits
@blitzjs/a
...
@blitzjs/c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8f564ea66 | ||
|
|
71b9950037 | ||
|
|
28a79040e4 | ||
|
|
dd604c7675 | ||
|
|
0a8d4bfdaf | ||
|
|
f25aac08c0 | ||
|
|
a09685a63a | ||
|
|
595f400e9a | ||
|
|
6f333ee643 | ||
|
|
956a739e83 | ||
|
|
47722e0456 | ||
|
|
2f5c8a3a0d | ||
|
|
4ac47ff2a1 | ||
|
|
e8fd12e4f9 | ||
|
|
89d3d0279e |
@@ -4014,6 +4014,26 @@
|
|||||||
"doc",
|
"doc",
|
||||||
"code"
|
"code"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"login": "LeonMueller-OneAndOnly",
|
||||||
|
"name": "Leonidas",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/77194479?v=4",
|
||||||
|
"profile": "https://flow-office.eu/",
|
||||||
|
"contributions": [
|
||||||
|
"doc",
|
||||||
|
"code"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"login": "Doc0x1",
|
||||||
|
"name": "Doc0x1",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/19937034?v=4",
|
||||||
|
"profile": "https://hacknex.us",
|
||||||
|
"contributions": [
|
||||||
|
"doc",
|
||||||
|
"code"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"contributorsPerLine": 7,
|
"contributorsPerLine": 7,
|
||||||
|
|||||||
2
.github/workflows/pr-release.yml
vendored
2
.github/workflows/pr-release.yml
vendored
@@ -96,5 +96,5 @@ jobs:
|
|||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
body: 'Snapshot Release: ' + process.env.MESSAGE
|
body: `Snapshot Release ${{steps.getSnapshotName.outputs.result}}`
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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==">
|
<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>
|
</a>
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
<!-- 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-423-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-425-17BB8A.svg?style=for-the-badge&labelColor=000000"></a>
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||||
<a aria-label="License" href="https://github.com/blitz-js/blitz/blob/main/LICENSE">
|
<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">
|
<img alt="" src="https://img.shields.io/npm/l/blitz.svg?style=for-the-badge&labelColor=000000&color=blue">
|
||||||
@@ -747,6 +747,8 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
|
|||||||
<td align="center"><a href="https://github.com/Zamfi99"><img src="https://avatars.githubusercontent.com/u/19189337?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zamfira Costin-Andrei</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Zamfi99" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Zamfi99" title="Code">💻</a></td>
|
<td align="center"><a href="https://github.com/Zamfi99"><img src="https://avatars.githubusercontent.com/u/19189337?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zamfira Costin-Andrei</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Zamfi99" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Zamfi99" title="Code">💻</a></td>
|
||||||
<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/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://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>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,39 @@
|
|||||||
# next-blitz-auth
|
# next-blitz-auth
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
- Updated dependencies [2f5c8a3a0]
|
||||||
|
- @blitzjs/next@2.0.3
|
||||||
|
- @blitzjs/rpc@2.0.3
|
||||||
|
- blitz@2.0.3
|
||||||
|
- @blitzjs/auth@2.0.3
|
||||||
|
- @blitzjs/config@2.0.3
|
||||||
|
|
||||||
|
## 0.1.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [e8fd12e4f]
|
||||||
|
- @blitzjs/rpc@2.0.2
|
||||||
|
- blitz@2.0.2
|
||||||
|
- @blitzjs/next@2.0.2
|
||||||
|
- @blitzjs/auth@2.0.2
|
||||||
|
- @blitzjs/config@2.0.2
|
||||||
|
|
||||||
## 0.1.2
|
## 0.1.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "next-blitz-auth",
|
"name": "next-blitz-auth",
|
||||||
"version": "0.1.2",
|
"version": "0.1.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"blitz:dev": "next dev",
|
"blitz:dev": "next dev",
|
||||||
@@ -12,15 +12,15 @@
|
|||||||
"schema": "prisma/schema.prisma"
|
"schema": "prisma/schema.prisma"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@hookform/error-message": "2.0.0",
|
"@hookform/error-message": "2.0.0",
|
||||||
"@hookform/resolvers": "2.9.10",
|
"@hookform/resolvers": "2.9.10",
|
||||||
"@prisma/client": "^4.5.0",
|
"@prisma/client": "^4.5.0",
|
||||||
"@tanstack/react-query": "4.0.10",
|
"@tanstack/react-query": "4.0.10",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"flatted": "3.2.7",
|
"flatted": "3.2.7",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "^4.5.0",
|
"prisma": "^4.5.0",
|
||||||
|
|||||||
@@ -23,14 +23,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@hookform/error-message": "2.0.0",
|
"@hookform/error-message": "2.0.0",
|
||||||
"@hookform/resolvers": "2.9.10",
|
"@hookform/resolvers": "2.9.10",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"openid-client": "5.2.1",
|
"openid-client": "5.2.1",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
|
|||||||
@@ -24,14 +24,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@hookform/error-message": "2.0.0",
|
"@hookform/error-message": "2.0.0",
|
||||||
"@hookform/resolvers": "2.9.10",
|
"@hookform/resolvers": "2.9.10",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"next-auth": "4.18.7",
|
"next-auth": "4.18.7",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
|
|||||||
@@ -16,14 +16,14 @@
|
|||||||
"schema": "./db/schema.prisma"
|
"schema": "./db/schema.prisma"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"@types/jest": "29.2.2",
|
"@types/jest": "29.2.2",
|
||||||
"@types/passport-twitter": "1.0.37",
|
"@types/passport-twitter": "1.0.37",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jest": "29.3.0",
|
"jest": "29.3.0",
|
||||||
"jest-environment-jsdom": "29.3.0",
|
"jest-environment-jsdom": "29.3.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
|
|||||||
@@ -17,14 +17,14 @@
|
|||||||
"prisma:studio": "prisma studio"
|
"prisma:studio": "prisma studio"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@hookform/error-message": "2.0.0",
|
"@hookform/error-message": "2.0.0",
|
||||||
"@hookform/resolvers": "2.9.10",
|
"@hookform/resolvers": "2.9.10",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"delay": "5.0.0",
|
"delay": "5.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
|
|||||||
@@ -17,11 +17,11 @@
|
|||||||
"prisma:studio": "prisma studio"
|
"prisma:studio": "prisma studio"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"lowdb": "3.0.0",
|
"lowdb": "3.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
"schema": "db/schema.prisma"
|
"schema": "db/schema.prisma"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"lowdb": "3.0.0",
|
"lowdb": "3.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@next/bundle-analyzer": "12.0.8",
|
"@next/bundle-analyzer": "12.0.8",
|
||||||
"@types/express": "4.17.13",
|
"@types/express": "4.17.13",
|
||||||
"@types/fs-extra": "9.0.13",
|
"@types/fs-extra": "9.0.13",
|
||||||
|
|||||||
@@ -11,10 +11,10 @@
|
|||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
|
|||||||
@@ -17,12 +17,12 @@
|
|||||||
"prisma:studio": "prisma studio"
|
"prisma:studio": "prisma studio"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"lowdb": "3.0.0",
|
"lowdb": "3.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
"prisma:studio": "prisma studio"
|
"prisma:studio": "prisma studio"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"lowdb": "3.0.0",
|
"lowdb": "3.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@next/bundle-analyzer": "12.0.8",
|
"@next/bundle-analyzer": "12.0.8",
|
||||||
"@types/express": "4.17.13",
|
"@types/express": "4.17.13",
|
||||||
"@types/fs-extra": "9.0.13",
|
"@types/fs-extra": "9.0.13",
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
"clean": "rm -rf .turbo && rm -rf node_modules"
|
"clean": "rm -rf .turbo && rm -rf node_modules"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"@tanstack/react-query": "4.0.10",
|
"@tanstack/react-query": "4.0.10",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
|
|||||||
@@ -16,10 +16,10 @@
|
|||||||
"schema": "db/schema.prisma"
|
"schema": "db/schema.prisma"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"lowdb": "3.0.0",
|
"lowdb": "3.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@next/bundle-analyzer": "12.0.8",
|
"@next/bundle-analyzer": "12.0.8",
|
||||||
"@types/express": "4.17.13",
|
"@types/express": "4.17.13",
|
||||||
"@types/fs-extra": "9.0.13",
|
"@types/fs-extra": "9.0.13",
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
"schema": "db/schema.prisma"
|
"schema": "db/schema.prisma"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/next": "2.0.1",
|
"@blitzjs/next": "2.0.4",
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@prisma/client": "4.6.1",
|
"@prisma/client": "4.6.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"lowdb": "3.0.0",
|
"lowdb": "3.0.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"prisma": "4.6.1",
|
"prisma": "4.6.1",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@next/bundle-analyzer": "12.0.8",
|
"@next/bundle-analyzer": "12.0.8",
|
||||||
"@types/express": "4.17.13",
|
"@types/express": "4.17.13",
|
||||||
"@types/fs-extra": "9.0.13",
|
"@types/fs-extra": "9.0.13",
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "workspace:2.0.1",
|
"@blitzjs/config": "workspace:2.0.4",
|
||||||
"@blitzjs/next": "workspace:2.0.1",
|
"@blitzjs/next": "workspace:2.0.4",
|
||||||
"@blitzjs/rpc": "workspace:2.0.1",
|
"@blitzjs/rpc": "workspace:2.0.4",
|
||||||
"@tanstack/react-query": "4.13.0",
|
"@tanstack/react-query": "4.13.0",
|
||||||
"@testing-library/react": "13.4.0",
|
"@testing-library/react": "13.4.0",
|
||||||
"@types/express": "4.17.13",
|
"@types/express": "4.17.13",
|
||||||
|
|||||||
@@ -1,5 +1,28 @@
|
|||||||
# @blitzjs/auth
|
# @blitzjs/auth
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
- Updated dependencies [2f5c8a3a0]
|
||||||
|
- blitz@2.0.3
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [e8fd12e4f]
|
||||||
|
- blitz@2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzjs/auth",
|
"name": "@blitzjs/auth",
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"homepage": "https://blitzjs.com/",
|
"homepage": "https://blitzjs.com/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
"url": "0.11.0"
|
"url": "0.11.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "*",
|
"next": "*",
|
||||||
"next-auth": "*",
|
"next-auth": "*",
|
||||||
"secure-password": "4.0.0"
|
"secure-password": "4.0.0"
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@testing-library/react": "13.4.0",
|
"@testing-library/react": "13.4.0",
|
||||||
"@testing-library/react-hooks": "8.0.1",
|
"@testing-library/react-hooks": "8.0.1",
|
||||||
"@types/cookie": "0.4.1",
|
"@types/cookie": "0.4.1",
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
"@types/jsonwebtoken": "8.5.8",
|
"@types/jsonwebtoken": "8.5.8",
|
||||||
"@types/react": "18.0.25",
|
"@types/react": "18.0.25",
|
||||||
"@types/react-dom": "17.0.14",
|
"@types/react-dom": "17.0.14",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"next-auth": "4.18.7",
|
"next-auth": "4.18.7",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ interface IsAuthorized {
|
|||||||
interface PrismaClientWithSession {
|
interface PrismaClientWithSession {
|
||||||
session: {
|
session: {
|
||||||
findFirst(args?: {where?: {handle?: SessionModel["handle"]}}): Promise<SessionModel | null>
|
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: {
|
create(args: {
|
||||||
data: SessionModel & {
|
data: SessionModel & {
|
||||||
userId?: any
|
userId?: any
|
||||||
@@ -42,7 +44,7 @@ export const PrismaStorage = <Client extends PrismaClientWithSession>(
|
|||||||
): SessionConfigMethods => {
|
): SessionConfigMethods => {
|
||||||
return {
|
return {
|
||||||
getSession: (handle) => db.session.findFirst({where: {handle}}),
|
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) => {
|
createSession: (session) => {
|
||||||
let user
|
let user
|
||||||
if (session.userId) {
|
if (session.userId) {
|
||||||
|
|||||||
@@ -1,5 +1,32 @@
|
|||||||
# @blitzjs/next
|
# @blitzjs/next
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
- 2f5c8a3a0: Address missing sodium native prebuilds required to use secure-password during server rendering
|
||||||
|
- Updated dependencies [2f5c8a3a0]
|
||||||
|
- @blitzjs/rpc@2.0.3
|
||||||
|
- blitz@2.0.3
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [e8fd12e4f]
|
||||||
|
- @blitzjs/rpc@2.0.2
|
||||||
|
- blitz@2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzjs/next",
|
"name": "@blitzjs/next",
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"homepage": "https://blitzjs.com/",
|
"homepage": "https://blitzjs.com/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -29,8 +29,9 @@
|
|||||||
"eslint.js"
|
"eslint.js"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/rpc": "2.0.1",
|
"@blitzjs/rpc": "2.0.4",
|
||||||
"@types/hoist-non-react-statics": "3.3.1",
|
"@types/hoist-non-react-statics": "3.3.1",
|
||||||
|
"copy-webpack-plugin": "11.0.0",
|
||||||
"debug": "4.3.3",
|
"debug": "4.3.3",
|
||||||
"fs-extra": "10.0.1",
|
"fs-extra": "10.0.1",
|
||||||
"hoist-non-react-statics": "3.3.2",
|
"hoist-non-react-statics": "3.3.2",
|
||||||
@@ -38,13 +39,13 @@
|
|||||||
"supports-color": "8.1.1"
|
"supports-color": "8.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "*",
|
"next": "*",
|
||||||
"react": "*",
|
"react": "*",
|
||||||
"tslog": "4.9.0"
|
"tslog": "4.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@testing-library/dom": "8.13.0",
|
"@testing-library/dom": "8.13.0",
|
||||||
"@testing-library/jest-dom": "5.16.3",
|
"@testing-library/jest-dom": "5.16.3",
|
||||||
"@testing-library/react": "13.4.0",
|
"@testing-library/react": "13.4.0",
|
||||||
@@ -55,7 +56,7 @@
|
|||||||
"@types/react": "18.0.25",
|
"@types/react": "18.0.25",
|
||||||
"@types/react-dom": "17.0.14",
|
"@types/react-dom": "17.0.14",
|
||||||
"@types/testing-library__react-hooks": "4.0.0",
|
"@types/testing-library__react-hooks": "4.0.0",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"cross-spawn": "7.0.3",
|
"cross-spawn": "7.0.3",
|
||||||
"find-up": "4.1.0",
|
"find-up": "4.1.0",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import {
|
|||||||
RouteUrlObject,
|
RouteUrlObject,
|
||||||
startWatcher,
|
startWatcher,
|
||||||
stopWatcher,
|
stopWatcher,
|
||||||
|
RequestMiddleware,
|
||||||
} from "blitz"
|
} from "blitz"
|
||||||
import {
|
import {
|
||||||
getInfiniteQueryKey,
|
getInfiniteQueryKey,
|
||||||
@@ -38,6 +39,9 @@ import {withSuperJsonProps} from "./superjson"
|
|||||||
import {ParsedUrlQuery} from "querystring"
|
import {ParsedUrlQuery} from "querystring"
|
||||||
import {PreviewData} from "next/types"
|
import {PreviewData} from "next/types"
|
||||||
import {resolveHref} from "next/dist/client/resolve-href"
|
import {resolveHref} from "next/dist/client/resolve-href"
|
||||||
|
import fs from "fs"
|
||||||
|
import path from "path"
|
||||||
|
import CopyPlugin from "copy-webpack-plugin"
|
||||||
|
|
||||||
export * from "./index-browser"
|
export * from "./index-browser"
|
||||||
|
|
||||||
@@ -268,6 +272,27 @@ export function withBlitz(nextConfig: BlitzConfig = {}): NextConfig {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
try {
|
||||||
|
const sodiumNativePath = fs.realpathSync(path.join(require.resolve("sodium-native"), ".."))
|
||||||
|
const dotNextDirectory = `${process.cwd()}/.next`
|
||||||
|
config.plugins.push(
|
||||||
|
new CopyPlugin({
|
||||||
|
patterns: [
|
||||||
|
{
|
||||||
|
//dev
|
||||||
|
from: `${sodiumNativePath}/prebuilds/`,
|
||||||
|
to: `${dotNextDirectory}/server/vendor-chunks/prebuilds/`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
//prod
|
||||||
|
from: `${sodiumNativePath}/prebuilds/`,
|
||||||
|
to: `${dotNextDirectory}/server/chunks/prebuilds/`,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
} catch {}
|
||||||
|
|
||||||
if (typeof nextConfig.webpack === "function") {
|
if (typeof nextConfig.webpack === "function") {
|
||||||
return nextConfig.webpack(config, options)
|
return nextConfig.webpack(config, options)
|
||||||
}
|
}
|
||||||
@@ -323,3 +348,15 @@ declare module "blitz" {
|
|||||||
prefetchInfiniteQuery: PrefetchQueryFn
|
prefetchInfiniteQuery: PrefetchQueryFn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const BlitzServerMiddleware = <
|
||||||
|
TMiddleware extends RequestMiddleware<NextApiRequest, BlitzNextApiResponse> = RequestMiddleware<
|
||||||
|
NextApiRequest,
|
||||||
|
BlitzNextApiResponse
|
||||||
|
>,
|
||||||
|
>(
|
||||||
|
middleware: TMiddleware,
|
||||||
|
): BlitzServerPlugin<{}> => ({
|
||||||
|
requestMiddlewares: [middleware],
|
||||||
|
exports: () => ({}),
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,5 +1,29 @@
|
|||||||
# @blitzjs/rpc
|
# @blitzjs/rpc
|
||||||
|
|
||||||
|
## 2.0.4
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [dd604c767]
|
||||||
|
- Updated dependencies [28a79040e]
|
||||||
|
- blitz@2.0.4
|
||||||
|
|
||||||
|
## 2.0.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 2f5c8a3a0: Address missing sodium native prebuilds required to use secure-password during server rendering
|
||||||
|
- Updated dependencies [2f5c8a3a0]
|
||||||
|
- blitz@2.0.3
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- e8fd12e4f: Fix: windows slash correction for rpc resolvers
|
||||||
|
- Updated dependencies [e8fd12e4f]
|
||||||
|
- blitz@2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzjs/rpc",
|
"name": "@blitzjs/rpc",
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"homepage": "https://blitzjs.com/",
|
"homepage": "https://blitzjs.com/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -37,18 +37,18 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tanstack/query-core": "4.24.4",
|
"@tanstack/query-core": "4.24.4",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "*",
|
"next": "*",
|
||||||
"react": "*"
|
"react": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/auth": "2.0.1",
|
"@blitzjs/auth": "2.0.4",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@tanstack/query-core": "4.24.4",
|
"@tanstack/query-core": "4.24.4",
|
||||||
"@types/debug": "4.1.7",
|
"@types/debug": "4.1.7",
|
||||||
"@types/react": "18.0.25",
|
"@types/react": "18.0.25",
|
||||||
"@types/react-dom": "17.0.14",
|
"@types/react-dom": "17.0.14",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"next": "14.0.4",
|
"next": "14.0.4",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ export interface InstallWebpackConfigOptions {
|
|||||||
[key: string]: boolean | string
|
[key: string]: boolean | string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
plugins: any[]
|
||||||
module: {
|
module: {
|
||||||
rules: WebpackRule[]
|
rules: WebpackRule[]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ export async function transformBlitzRpcServer(
|
|||||||
|
|
||||||
const importStrategy = options?.resolversDynamicImport ? "import" : "require"
|
const importStrategy = options?.resolversDynamicImport ? "import" : "require"
|
||||||
|
|
||||||
code += `__internal_addBlitzRpcResolver('${routePath}','${resolverFilePath}',() => ${importStrategy}('${slash(
|
code += `__internal_addBlitzRpcResolver('${routePath}','${slash(
|
||||||
resolverFilePath,
|
resolverFilePath,
|
||||||
)}'));`
|
)}',() => ${importStrategy}('${slash(resolverFilePath)}'));`
|
||||||
code += "\n"
|
code += "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,30 @@
|
|||||||
# blitz
|
# blitz
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
- 2f5c8a3a0: Address missing sodium native prebuilds required to use secure-password during server rendering
|
||||||
|
- Updated dependencies [47722e045]
|
||||||
|
- Updated dependencies [595f400e9]
|
||||||
|
- @blitzjs/generator@2.0.3
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- e8fd12e4f: Fix: windows slash correction for rpc resolvers
|
||||||
|
- @blitzjs/generator@2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "blitz",
|
"name": "blitz",
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"homepage": "https://blitzjs.com/",
|
"homepage": "https://blitzjs.com/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"blitz": "bin/blitz"
|
"blitz": "bin/blitz"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzjs/generator": "2.0.1",
|
"@blitzjs/generator": "2.0.4",
|
||||||
"@mrleebo/prisma-ast": "0.2.6",
|
"@mrleebo/prisma-ast": "0.2.6",
|
||||||
"@types/global-agent": "2.1.1",
|
"@types/global-agent": "2.1.1",
|
||||||
"arg": "5.0.1",
|
"arg": "5.0.1",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
"watchpack": "2.1.1"
|
"watchpack": "2.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@types/cookie": "0.4.1",
|
"@types/cookie": "0.4.1",
|
||||||
"@types/cross-spawn": "6.0.2",
|
"@types/cross-spawn": "6.0.2",
|
||||||
"@types/debug": "4.1.7",
|
"@types/debug": "4.1.7",
|
||||||
|
|||||||
@@ -1,5 +1,35 @@
|
|||||||
# @blitzjs/codemod
|
# @blitzjs/codemod
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
- 956a739e8: codemod: provide correct path to new template paths
|
||||||
|
- Updated dependencies [47722e045]
|
||||||
|
- Updated dependencies [2f5c8a3a0]
|
||||||
|
- Updated dependencies [595f400e9]
|
||||||
|
- @blitzjs/generator@2.0.3
|
||||||
|
- blitz@2.0.3
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [e8fd12e4f]
|
||||||
|
- blitz@2.0.2
|
||||||
|
- @blitzjs/generator@2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzjs/codemod",
|
"name": "@blitzjs/codemod",
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "unbuild",
|
"build": "unbuild",
|
||||||
"dev": "watch unbuild src --wait=0.2",
|
"dev": "watch unbuild src --wait=0.2",
|
||||||
@@ -25,9 +25,9 @@
|
|||||||
"@babel/plugin-proposal-class-properties": "7.17.12",
|
"@babel/plugin-proposal-class-properties": "7.17.12",
|
||||||
"@babel/plugin-syntax-jsx": "7.17.12",
|
"@babel/plugin-syntax-jsx": "7.17.12",
|
||||||
"@babel/plugin-syntax-typescript": "7.17.12",
|
"@babel/plugin-syntax-typescript": "7.17.12",
|
||||||
"@blitzjs/generator": "2.0.1",
|
"@blitzjs/generator": "2.0.4",
|
||||||
"arg": "5.0.1",
|
"arg": "5.0.1",
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"cross-spawn": "7.0.3",
|
"cross-spawn": "7.0.3",
|
||||||
"debug": "4.3.3",
|
"debug": "4.3.3",
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "7.12.10",
|
"@babel/preset-env": "7.12.10",
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@types/jscodeshift": "0.11.2",
|
"@types/jscodeshift": "0.11.2",
|
||||||
"@types/node": "18.11.9",
|
"@types/node": "18.11.9",
|
||||||
"ast-types": "0.14.2",
|
"ast-types": "0.14.2",
|
||||||
|
|||||||
@@ -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(
|
const isInternalBlitzMonorepoDevelopment = fs.existsSync(
|
||||||
path.join(__dirname, "../../../blitz-next"),
|
path.join(__dirname, "../../../blitz-next"),
|
||||||
)
|
)
|
||||||
@@ -46,7 +52,22 @@ const upgradeLegacy = async () => {
|
|||||||
if (blitzConfigFile === "") {
|
if (blitzConfigFile === "") {
|
||||||
throw new ExpectedError("Could not identify Legacy Blitz Config file")
|
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 =
|
let failedAt =
|
||||||
fs.existsSync(path.resolve(".migration.json")) && fs.readJSONSync("./.migration.json").failedAt
|
fs.existsSync(path.resolve(".migration.json")) && fs.readJSONSync("./.migration.json").failedAt
|
||||||
let collectedErrors: {message: string; step: number}[] = []
|
let collectedErrors: {message: string; step: number}[] = []
|
||||||
@@ -536,10 +557,10 @@ const upgradeLegacy = async () => {
|
|||||||
isInternalBlitzMonorepoDevelopment ? "templates" : "dist/templates",
|
isInternalBlitzMonorepoDevelopment ? "templates" : "dist/templates",
|
||||||
)
|
)
|
||||||
const blitzServer = fs
|
const blitzServer = fs
|
||||||
.readFileSync(path.join(templatePath, "app", "app", "blitz-server.ts"))
|
.readFileSync(path.join(templatePath, "app", "src", "app", "blitz-server.ts"))
|
||||||
.toString()
|
.toString()
|
||||||
const blitzClient = fs
|
const blitzClient = fs
|
||||||
.readFileSync(path.join(templatePath, "app", "app", "blitz-client.ts"))
|
.readFileSync(path.join(templatePath, "app", "src", "app", "blitz-client.ts"))
|
||||||
.toString()
|
.toString()
|
||||||
|
|
||||||
const replaceTemplateValues = (input: string) => {
|
const replaceTemplateValues = (input: string) => {
|
||||||
@@ -584,7 +605,9 @@ const upgradeLegacy = async () => {
|
|||||||
j.Identifier,
|
j.Identifier,
|
||||||
(node) => node.name === "cookiePrefix",
|
(node) => node.name === "cookiePrefix",
|
||||||
)
|
)
|
||||||
cookieIdentifierBlitzClient.get().parentPath.value.value.value = cookiePrefix
|
if (cookieIdentifierBlitzClient.length) {
|
||||||
|
cookieIdentifierBlitzClient.get().parentPath.value.value.value = cookiePrefix
|
||||||
|
}
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
`${appDir}/blitz-client.${isTypescript ? "ts" : "js"}`,
|
`${appDir}/blitz-client.${isTypescript ? "ts" : "js"}`,
|
||||||
@@ -676,7 +699,7 @@ const upgradeLegacy = async () => {
|
|||||||
steps.push({
|
steps.push({
|
||||||
name: "create pages/api/rpc directory and add [[...blitz]].ts wildecard API route",
|
name: "create pages/api/rpc directory and add [[...blitz]].ts wildecard API route",
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const pagesDir = path.resolve("pages/api/rpc")
|
const pagesDir = path.resolve(`${findPagesDirectory()}/api/rpc`)
|
||||||
const templatePath = path.join(
|
const templatePath = path.join(
|
||||||
require.resolve("@blitzjs/generator"),
|
require.resolve("@blitzjs/generator"),
|
||||||
"..",
|
"..",
|
||||||
@@ -684,7 +707,9 @@ const upgradeLegacy = async () => {
|
|||||||
isInternalBlitzMonorepoDevelopment ? "templates" : "dist/templates",
|
isInternalBlitzMonorepoDevelopment ? "templates" : "dist/templates",
|
||||||
)
|
)
|
||||||
const rpcRoute = fs
|
const rpcRoute = fs
|
||||||
.readFileSync(path.join(templatePath, "app", "pages", "api", "rpc", "blitzrpcroute.ts"))
|
.readFileSync(
|
||||||
|
path.join(templatePath, "app", "src", "pages", "api", "rpc", "blitzrpcroute.ts"),
|
||||||
|
)
|
||||||
.toString()
|
.toString()
|
||||||
|
|
||||||
if (!fs.existsSync(pagesDir)) {
|
if (!fs.existsSync(pagesDir)) {
|
||||||
@@ -925,7 +950,7 @@ const upgradeLegacy = async () => {
|
|||||||
name: "convert useRouterQuery to useRouter",
|
name: "convert useRouterQuery to useRouter",
|
||||||
action: async () => {
|
action: async () => {
|
||||||
//First check ./pages
|
//First check ./pages
|
||||||
const pagesDir = path.resolve("pages")
|
const pagesDir = findPagesDirectory()
|
||||||
getAllFiles(pagesDir, [], [], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
|
getAllFiles(pagesDir, [], [], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
|
||||||
try {
|
try {
|
||||||
const filepath = path.resolve(pagesDir, file)
|
const filepath = path.resolve(pagesDir, file)
|
||||||
@@ -1057,7 +1082,7 @@ const upgradeLegacy = async () => {
|
|||||||
steps.push({
|
steps.push({
|
||||||
name: "wrap App component with withBlitz HOC",
|
name: "wrap App component with withBlitz HOC",
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const pagesDir = path.resolve("pages")
|
const pagesDir = findPagesDirectory()
|
||||||
|
|
||||||
const program = getCollectionFromSource(
|
const program = getCollectionFromSource(
|
||||||
path.join(pagesDir, `_app.${isTypescript ? "tsx" : "jsx"}`),
|
path.join(pagesDir, `_app.${isTypescript ? "tsx" : "jsx"}`),
|
||||||
@@ -1107,7 +1132,7 @@ const upgradeLegacy = async () => {
|
|||||||
steps.push({
|
steps.push({
|
||||||
name: "update imports in the _document file",
|
name: "update imports in the _document file",
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const pagesDir = path.resolve("pages")
|
const pagesDir = findPagesDirectory()
|
||||||
|
|
||||||
if (fs.existsSync(path.join(pagesDir, `_document.${isTypescript ? "tsx" : "jsx"}`))) {
|
if (fs.existsSync(path.join(pagesDir, `_document.${isTypescript ? "tsx" : "jsx"}`))) {
|
||||||
const program = getCollectionFromSource(
|
const program = getCollectionFromSource(
|
||||||
@@ -1187,7 +1212,7 @@ const upgradeLegacy = async () => {
|
|||||||
steps.push({
|
steps.push({
|
||||||
name: "wrap getServerSideProps, getStaticProps and API handlers with gSSP, gSP, and api",
|
name: "wrap getServerSideProps, getStaticProps and API handlers with gSSP, gSP, and api",
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const pagesDir = path.resolve("pages")
|
const pagesDir = findPagesDirectory()
|
||||||
getAllFiles(pagesDir, [], ["api"], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
|
getAllFiles(pagesDir, [], ["api"], [".ts", ".tsx", ".js", ".jsx"]).forEach((file) => {
|
||||||
try {
|
try {
|
||||||
const program = getCollectionFromSource(file)
|
const program = getCollectionFromSource(file)
|
||||||
@@ -1310,7 +1335,9 @@ const upgradeLegacy = async () => {
|
|||||||
steps.push({
|
steps.push({
|
||||||
name: "check for usages of invokeWithMiddleware",
|
name: "check for usages of invokeWithMiddleware",
|
||||||
action: async () => {
|
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)
|
const program = getCollectionFromSource(file)
|
||||||
try {
|
try {
|
||||||
const invokeWithMiddlewarePath = findCallExpression(program, "invokeWithMiddleware")
|
const invokeWithMiddlewarePath = findCallExpression(program, "invokeWithMiddleware")
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @blitzjs/config
|
# @blitzjs/config
|
||||||
|
|
||||||
|
## 2.0.4
|
||||||
|
|
||||||
|
## 2.0.3
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzjs/config",
|
"name": "@blitzjs/config",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "5.42.1",
|
"@typescript-eslint/eslint-plugin": "5.42.1",
|
||||||
|
|||||||
@@ -1,5 +1,20 @@
|
|||||||
# @blitzjs/generator
|
# @blitzjs/generator
|
||||||
|
|
||||||
|
## 2.0.4
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 71b995003: fix: ajv dependency was not installed with blitz new
|
||||||
|
|
||||||
|
## 2.0.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 47722e045: Fix: search inside any subdirectory to inside `src|app` directories to find `blitz-server.ts` to use the `BlitzCliConfig` configurations.
|
||||||
|
- 595f400e9: fix: add missing `prettier`, `pretty-quick` and other missing dev dependencies in the new app template
|
||||||
|
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzjs/generator",
|
"name": "@blitzjs/generator",
|
||||||
"version": "2.0.1",
|
"version": "2.0.4",
|
||||||
"homepage": "https://blitzjs.com/",
|
"homepage": "https://blitzjs.com/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
"zod": "3.20.2"
|
"zod": "3.20.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@juanm04/cpx": "2.0.1",
|
"@juanm04/cpx": "2.0.1",
|
||||||
"@types/babel__core": "7.1.19",
|
"@types/babel__core": "7.1.19",
|
||||||
"@types/diff": "5.0.2",
|
"@types/diff": "5.0.2",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export const customTemplatesBlitzConfig = async (
|
|||||||
codemod = false,
|
codemod = false,
|
||||||
) => {
|
) => {
|
||||||
const {globby} = await import("globby")
|
const {globby} = await import("globby")
|
||||||
const blitzServer = await globby(["{app,src}/**/blitz-server.{ts,js}"], {
|
const blitzServer = await globby(["{app,src}/**/**/blitz-server.{ts,js}"], {
|
||||||
cwd: getProjectRootSync(),
|
cwd: getProjectRootSync(),
|
||||||
})
|
})
|
||||||
if (blitzServer.length === 0) {
|
if (blitzServer.length === 0) {
|
||||||
|
|||||||
@@ -39,14 +39,28 @@
|
|||||||
"zod": "3.22.4"
|
"zod": "3.22.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "18.11.7",
|
"@next/env": "13.4.19",
|
||||||
"@types/preview-email": "3.0.4",
|
"@testing-library/jest-dom": "5.16.5",
|
||||||
"@types/react": "18.0.23",
|
"@testing-library/react": "13.4.0",
|
||||||
"@types/react-dom": "18.0.7",
|
"@testing-library/react-hooks": "8.0.1",
|
||||||
"eslint": "8.26.0",
|
"@types/node": "18.11.9",
|
||||||
"eslint-config-next": "13.0.0",
|
"@types/preview-email": "2.0.1",
|
||||||
|
"@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",
|
||||||
"husky": "8.0.2",
|
"husky": "8.0.2",
|
||||||
|
"jsdom": "20.0.3",
|
||||||
|
"lint-staged": "13.0.3",
|
||||||
|
"prettier": "^2.7.1",
|
||||||
|
"prettier-plugin-prisma": "4.4.0",
|
||||||
|
"pretty-quick": "3.1.3",
|
||||||
"preview-email": "3.0.7",
|
"preview-email": "3.0.7",
|
||||||
"typescript": "4.8.4"
|
"typescript": "^4.8.4",
|
||||||
|
"vite-tsconfig-paths": "3.6.0",
|
||||||
|
"vitest": "0.25.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
"@types/react": "18.0.25",
|
"@types/react": "18.0.25",
|
||||||
"@typescript-eslint/eslint-plugin": "5.42.1",
|
"@typescript-eslint/eslint-plugin": "5.42.1",
|
||||||
"@vitejs/plugin-react": "2.2.0",
|
"@vitejs/plugin-react": "2.2.0",
|
||||||
|
"ajv": "^7.0.0",
|
||||||
"eslint": "8.27.0",
|
"eslint": "8.27.0",
|
||||||
"eslint-config-next": "12.3.1",
|
"eslint-config-next": "12.3.1",
|
||||||
"eslint-config-prettier": "8.5.0",
|
"eslint-config-prettier": "8.5.0",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"@typescript-eslint/parser": "5.9.1"
|
"@typescript-eslint/parser": "5.9.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blitzjs/config": "2.0.1",
|
"@blitzjs/config": "2.0.4",
|
||||||
"@types/react": "18.0.25",
|
"@types/react": "18.0.25",
|
||||||
"@types/react-dom": "17.0.14",
|
"@types/react-dom": "17.0.14",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
|
|||||||
739
pnpm-lock.yaml
generated
739
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1"
|
"blitz": "2.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1"
|
"blitz": "2.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0",
|
"jscodeshift": "0.13.0",
|
||||||
"uuid": "^8.3.1"
|
"uuid": "^8.3.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -23,6 +23,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1"
|
"blitz": "2.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1"
|
"blitz": "2.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,6 +22,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1"
|
"blitz": "2.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0",
|
"jscodeshift": "0.13.0",
|
||||||
"uuid": "^8.3.1"
|
"uuid": "^8.3.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blitz": "2.0.1",
|
"blitz": "2.0.4",
|
||||||
"jscodeshift": "0.13.0"
|
"jscodeshift": "0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user