Commit Graph

11578 Commits

Author SHA1 Message Date
Jacob Fletcher
4cd89cd5d7 fixes type imports 2024-10-02 10:06:24 -04:00
Jacob Fletcher
1d7bcb365d removes duplicate test 2024-10-02 09:39:03 -04:00
Jacob Fletcher
8ffc090cac Merge branch 'beta' into feat/server-actions 2024-10-02 09:35:02 -04:00
Jacob Fletcher
039bd0f76d adds proper error handling 2024-10-02 09:33:54 -04:00
Jacob Fletcher
5235ce819d temp 2024-10-02 00:03:08 -04:00
Jacob Fletcher
c1d2736e8b reverts auto-changes to test modules 2024-10-01 23:41:50 -04:00
Jacob Fletcher
eca0a25063 regenerates lockfile 2024-10-01 23:33:12 -04:00
Jacob Fletcher
e737c8db32 fix test component deps 2024-10-01 23:27:10 -04:00
Jacob Fletcher
bc84def8d8 temp: filter args before calling server fn 2024-10-01 23:22:38 -04:00
Jacob Fletcher
2cf4a58e89 renames ClientServerFunction to ServerFunctionClient 2024-10-01 22:26:59 -04:00
Jacob Fletcher
9c8f623068 renames props to proper plural/singular for semantics 2024-10-01 22:05:16 -04:00
Paul
86371449b8 fix(templates): fixed drafts not being unpublished in the frontend of the website template (#8514) 2024-10-01 23:01:06 +00:00
Jacob Fletcher
60edd35671 more docs 2024-10-01 17:52:34 -04:00
Jacob Fletcher
bca9aece06 cleanup 2024-10-01 17:16:51 -04:00
Jacob Fletcher
e43a03d0ff scaffolds docs 2024-10-01 17:13:07 -04:00
Jacob Fletcher
4424904f58 excludes examples until released 2024-10-01 16:48:50 -04:00
Jacob Fletcher
5150a5a30f lints 2024-10-01 16:44:32 -04:00
Jacob Fletcher
b6d829acd8 updates all app dirs 2024-10-01 16:33:29 -04:00
Paul
69203c5515 docs: fix formatting on join field specifying additional fields section (#8509) 2024-10-01 20:24:26 +00:00
Jacob Fletcher
41d622f613 adds temp log to test ci 2024-10-01 16:11:18 -04:00
Jacob Fletcher
c32c7d50ef builds 2024-10-01 14:42:47 -04:00
Jacob Fletcher
d59c1c01c9 cleanup 2024-10-01 14:32:15 -04:00
Sasha
a8eceb03b6 fix(next): current published version label (#8505)
Fixes https://github.com/payloadcms/payload/issues/8502

includes `parent` to the `getLatestVersion` query
2024-10-01 21:22:00 +03:00
Jacob Fletcher
e5ce24eafb Merge branch 'beta' into feat/server-actions 2024-10-01 14:07:04 -04:00
Jacob Fletcher
0de81afa92 aborts server function results in docinfoprovider 2024-10-01 14:06:31 -04:00
Sasha
fa59d4c0b2 feat!: update next@15.0.0-canary.173, react@19.0.0-rc-3edc000d-20240926 (#8489)
Updates the minimal supported versions of next.js to
[`15.0.0-canary.173`](https://github.com/vercel/next.js/releases/tag/v15.0.0-canary.173)
and react to `19.0.0-rc-3edc000d-20240926`.

Adds neccessary awaits according to this breaking change
https://github.com/vercel/next.js/pull/68812

## Breaking Changes

The `params` and `searchParams` types in
`app/(payload)/admin/[[...segments]]/page.tsx` and
`app/(payload)/admin/[[...segments]]/not-found.tsx` must be changed to
promises:

```diff
- type Args = {
-   params: {
-     segments: string[]
-   }
-   searchParams: {
-     [key: string]: string | string[]
-   }
- }

+ type Args = {
+   params: Promise<{
+     segments: string[]
+   }>
+   searchParams: Promise<{
+     [key: string]: string | string[]
+   }>
+ }

```
2024-10-01 13:16:11 -04:00
Jacob Fletcher
0f5fe98a1b renames BaseServerFunctionArgs to DefaultServerFunctionArgs 2024-10-01 12:32:00 -04:00
Jacob Fletcher
e330f1756f renames RootServerFunction type to ServerFunctionHandler 2024-10-01 12:30:33 -04:00
Jacob Fletcher
c353a0f296 renames serverFunction to plural 2024-10-01 12:27:39 -04:00
Jacob Fletcher
a7c1dd057d properly inits req 2024-10-01 12:02:30 -04:00
Jacob Fletcher
3cbf7b2603 gets language from action itself and properly drills user into local req 2024-10-01 11:27:30 -04:00
Jacob Fletcher
a4135e5975 renames function property to fn 2024-10-01 10:49:04 -04:00
Jacob Fletcher
7fb860f15b removes unnecessary useAuth hooks 2024-10-01 10:43:52 -04:00
Jacob Fletcher
e684f3ac2e adds test for custom server functions 2024-10-01 10:23:06 -04:00
Jacob Fletcher
ac25118945 sanitizes server functions from client config 2024-10-01 00:47:42 -04:00
Jacob Fletcher
9a859a453e cleanup 2024-09-30 23:25:38 -04:00
Jacob Fletcher
dc46f18af9 epxoses in config and renames server actions to server function in preparation for react v19-beta 2024-09-30 22:20:53 -04:00
Germán Jabloñski
d80410b228 fix(ui): admin.allowCreate in upload field (#8484)
The admin.allowCreate property on the upload field was not doing what it
was supposed to do. In fact, it was doing nothing.

From now on, when set to false, the option to create a new upload from
the UI disappears.


![image](https://github.com/user-attachments/assets/f6776c4e-833c-4a65-8ea0-68edc0a57235)


![image](https://github.com/user-attachments/assets/b99f1969-1a07-4f9f-8b5e-0d5a708f7802)


![image](https://github.com/user-attachments/assets/519e19ea-f0ba-410e-8930-dd5231556bf5)


The tests cover:
- the create new button disappears.
- the option to create one by drag and drop disappears.
- the create new button inside the drawer disappears.
2024-09-30 18:54:34 -03:00
Jacob Fletcher
271a8c7191 cleanup 2024-09-30 17:51:15 -04:00
Jacob Fletcher
0dbc3bad57 passing tests 2024-09-30 17:46:46 -04:00
Dan Ribbens
27b1629927 fix(db-postgres, db-sqlite): joins relation name (#8491)
A join field on a relationship with a camelCase name would cause an
error from drizzle due to the relation name not matching.
2024-09-30 16:47:21 -04:00
Jacob Fletcher
4f0cb93204 creates local req 2024-09-30 15:54:57 -04:00
Jacob Fletcher
b035afe4e3 adds auth 2024-09-30 15:36:24 -04:00
Paul
dfdea0d4eb chore: update vscode launch settings for debugging test suites (#8399) 2024-09-30 15:18:03 -04:00
Elliot DeNolf
96d99cb361 chore(release): v3.0.0-beta.110 [skip ci] v3.0.0-beta.110 2024-09-30 13:19:32 -04:00
Dan Ribbens
3f375cc6ee feat: join field on upload fields (#8379)
This PR makes it possible to use the new `join` field in connection with
an `upload` field. Previously `join` was reserved only for
relationships.
2024-09-30 13:12:30 -04:00
Dan Ribbens
3847428f0a fix(db-*): make db.begintransactions required (#8419)
Changing the transcations functions on the db so that projects using
typescript `strict: true` do not need to type narrow before using it.
2024-09-30 13:12:07 -04:00
Sasha
7b6a760e97 fix(db-mongodb): duplicate versions with parent string ids (#8487)
Fixes https://github.com/payloadcms/payload/issues/8441

we may want to add a predifined migration that changes all what's needed
to ObjectIDs @DanRibbens
2024-09-30 13:06:48 -04:00
James Mikrut
0c1004537d fix: draft status access control checks (#8486) 2024-09-30 16:41:54 +00:00
Sasha
e765a5e866 fix: reset password link extra slash and thread admin.routes.reset property (#8448)
Removes extra slash
from: 
`http://host/admin//reset/token`
to:
`http://host/admin/reset/token`

Threads `admin.routes.reset`:
```ts
const config: Config = {
  admin: {
    routes: {
      reset: '/custom-reset',
    },
  },
}
```
2024-09-30 19:06:19 +03:00