diff --git a/.changeset/add-error-message.md b/.changeset/add-error-message.md deleted file mode 100644 index ddab1bd84b0..00000000000 --- a/.changeset/add-error-message.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@keystone-6/core": minor ---- - -Adds error messages for GraphQL errors on the List view in the AdminUI diff --git a/.changeset/add-field-hooks.md b/.changeset/add-field-hooks.md deleted file mode 100644 index 4af4b57ee93..00000000000 --- a/.changeset/add-field-hooks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@keystone-6/core": minor ---- - -Add type `FieldHooks` to `@keystone-6/core/types` exports diff --git a/.changeset/contributors.json b/.changeset/contributors.json index af7560730e9..85e548bd3c1 100644 --- a/.changeset/contributors.json +++ b/.changeset/contributors.json @@ -14,6 +14,7 @@ "MohammadKurjieh", "MurzNN", "Noviny", + "ScottAgirs", "SeanDoyleGit", "Skulek", "TasinIshmam", @@ -81,6 +82,7 @@ "ticidesign", "timgates42", "timleslie", + "ttbarnes", "u-ishii", "u-u-z", "willemmulder", diff --git a/.changeset/fix-cloudinary-init.md b/.changeset/fix-cloudinary-init.md deleted file mode 100644 index 8143c29cb84..00000000000 --- a/.changeset/fix-cloudinary-init.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@keystone-6/cloudinary': patch ---- - -Remove runtime errors from the Cloudinary field, fall back to the `cloudinary` package for Cloudinary errors diff --git a/.changeset/fix-id-filters.md b/.changeset/fix-id-filters.md deleted file mode 100644 index dba37487317..00000000000 --- a/.changeset/fix-id-filters.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@keystone-6/core": patch ---- - -Fix `Input error: only a int can be passed to id filters` for AdminUI diff --git a/.changeset/odd-lemons-hide.md b/.changeset/odd-lemons-hide.md deleted file mode 100644 index e28d968f972..00000000000 --- a/.changeset/odd-lemons-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@keystone-6/core': patch ---- - -Fix `hooks.validateInput` argument types for update operations diff --git a/.changeset/refine-hook-types.md b/.changeset/refine-hook-types.md deleted file mode 100644 index 51a25d8f8ee..00000000000 --- a/.changeset/refine-hook-types.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@keystone-6/core": minor ---- - -Add `beforeOperation.[create|update|delete]` and `afterOperation.[create|update|delete]` operation routing for list hooks diff --git a/.changeset/strong-swans-destroy.md b/.changeset/strong-swans-destroy.md deleted file mode 100644 index 87a4f2cd878..00000000000 --- a/.changeset/strong-swans-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@keystone-6/core': patch ---- - -Remove deprecated `experimental.appDir` flag from generated next.config diff --git a/STYLE_GUIDE.md b/docs/STYLE_GUIDE.md similarity index 100% rename from STYLE_GUIDE.md rename to docs/STYLE_GUIDE.md diff --git a/examples/cloudinary/package.json b/examples/cloudinary/package.json index 8c563840a1e..fa61ce0556d 100644 --- a/examples/cloudinary/package.json +++ b/examples/cloudinary/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@keystone-6/cloudinary": "workspace:^", - "@keystone-6/core": "^5.0.0", + "@keystone-6/core": "^5.7.0", "@prisma/client": "^4.16.2", "dotenv": "^16.0.0" }, diff --git a/examples/custom-id/README.md b/examples/custom-id/README.md index 6c46461837a..c489a627755 100644 --- a/examples/custom-id/README.md +++ b/examples/custom-id/README.md @@ -32,12 +32,6 @@ This example includes sample data. To add it to your database: 2. Run `pnpm seed-data`. This will populate your database with sample content. 3. Run `pnpm dev` again to startup Admin UI with sample data in place. -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. - ## Try it out in CodeSandbox 🧪 You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. diff --git a/examples/limits/README.md b/examples/limits/README.md index 13178a7c434..fbc24188ac1 100644 --- a/examples/limits/README.md +++ b/examples/limits/README.md @@ -28,9 +28,3 @@ This example includes sample data. To add it to your database: ## Try it out in CodeSandbox 🧪 You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. - -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. diff --git a/examples/script/README.md b/examples/script/README.md index 784297005fc..e8fe194bdae 100644 --- a/examples/script/README.md +++ b/examples/script/README.md @@ -22,9 +22,3 @@ Congratulations, you're now up and running with Keystone! 🚀 ## Try it out in CodeSandbox 🧪 You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. - -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. diff --git a/examples/usecase-blog/README.md b/examples/usecase-blog/README.md index c7cb3485f33..330f1a3746f 100644 --- a/examples/usecase-blog/README.md +++ b/examples/usecase-blog/README.md @@ -30,9 +30,3 @@ This example includes sample data. To add it to your database: ## Try it out in CodeSandbox 🧪 You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. - -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. diff --git a/examples/usecase-blog/package.json b/examples/usecase-blog/package.json index 3e157851959..e541400ae42 100644 --- a/examples/usecase-blog/package.json +++ b/examples/usecase-blog/package.json @@ -7,8 +7,8 @@ "dev": "keystone dev", "start": "keystone start", "build": "keystone build", - "seed-data": "tsx seed-data.ts", - "postinstall": "keystone postinstall" + "postinstall": "keystone postinstall", + "seed-data": "tsx seed-data.ts" }, "dependencies": { "@keystone-6/core": "^5.2.0", diff --git a/examples/usecase-relationship-union/README.md b/examples/usecase-relationship-union/README.md index e4e2e0222c5..121782cc62d 100644 --- a/examples/usecase-relationship-union/README.md +++ b/examples/usecase-relationship-union/README.md @@ -1,8 +1,7 @@ -## Base Project - Versioning +## Base Project - Relationship Union -This project demonstrates a Posts list where a particular field is always required to be sent in a GraphQL request; this can useful for optimistic locking and versioning. - -Use it as a starting place for learning how to use Keystone. +This project demonstrates a meta-list relationship approach that effectively acts as union of a number of different relationships. +This can be useful when trying to use represent union (or sum) types in a list, without forgoing relational or database integrity. ## Instructions @@ -19,20 +18,6 @@ You can also access a GraphQL Playground at [localhost:3000/api/graphql](http:// Congratulations, you're now up and running with Keystone! 🚀 -### Optional: add sample data - -This example includes sample data. To add it to your database: - -1. Ensure you’ve initialised your project with `pnpm dev` at least once. -2. Run `pnpm seed-data`. This will populate your database with sample content. -3. Run `pnpm dev` again to startup Admin UI with sample data in place. - ## Try it out in CodeSandbox 🧪 -You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. - -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. +You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. diff --git a/examples/usecase-todo/README.md b/examples/usecase-todo/README.md index da2a45cfb56..191c0c51d77 100644 --- a/examples/usecase-todo/README.md +++ b/examples/usecase-todo/README.md @@ -1,4 +1,4 @@ -## Base Project - Task Manager +## Base Project - Task Management Application This base project implements a simple **Task Management** app, with `Tasks` and `People` who can be assigned to tasks. @@ -26,12 +26,6 @@ This example includes sample data. To add it to your database: 2. Run `pnpm seed-data`. This will populate your database with sample content. 3. Run `pnpm dev` again to startup Admin UI with sample data in place. -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. - ## Try it out in CodeSandbox 🧪 You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. diff --git a/examples/usecase-versioning/README.md b/examples/usecase-versioning/README.md index e4e2e0222c5..f3de6846f9f 100644 --- a/examples/usecase-versioning/README.md +++ b/examples/usecase-versioning/README.md @@ -2,8 +2,6 @@ This project demonstrates a Posts list where a particular field is always required to be sent in a GraphQL request; this can useful for optimistic locking and versioning. -Use it as a starting place for learning how to use Keystone. - ## Instructions To run this project, clone the Keystone repository locally, run `pnpm` at the root of this repository, then navigate to this directory and run: @@ -30,9 +28,3 @@ This example includes sample data. To add it to your database: ## Try it out in CodeSandbox 🧪 You can play with this example online in a web browser using the free [codesandbox.io](https://codesandbox.io/) service. To launch this example, open the URL . You can also fork this sandbox to make your own changes. - -## Next steps - -Experiment with the code in this example to see how Keystone works, familiarise yourself with the Admin UI, and learn about the GraphQL Playground. - -When you’ve got the hang of this base project, try a [feature project](../) to learn Keystone’s advanced features and take your knowledge to the next level. diff --git a/packages/cloudinary/CHANGELOG.md b/packages/cloudinary/CHANGELOG.md index 9e5d0787ccd..a5cfb92c2ed 100644 --- a/packages/cloudinary/CHANGELOG.md +++ b/packages/cloudinary/CHANGELOG.md @@ -1,5 +1,11 @@ # @keystone-6/cloudinary +## 7.0.2 + +### Patch Changes + +- [#8836](https://github.com/keystonejs/keystone/pull/8836) [`a216bc2d2`](https://github.com/keystonejs/keystone/commit/a216bc2d211dbb056e7226377323a41b9699c86d) Thanks [@dcousens](https://github.com/dcousens)! - Remove runtime errors from the Cloudinary field, fall back to the `cloudinary` package for Cloudinary errors + ## 7.0.1 ### Patch Changes diff --git a/packages/cloudinary/package.json b/packages/cloudinary/package.json index cf109ad16d8..043925e4994 100644 --- a/packages/cloudinary/package.json +++ b/packages/cloudinary/package.json @@ -1,6 +1,6 @@ { "name": "@keystone-6/cloudinary", - "version": "7.0.1", + "version": "7.0.2", "license": "MIT", "main": "dist/keystone-6-cloudinary.cjs.js", "module": "dist/keystone-6-cloudinary.esm.js", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 4458e5a37bd..80d0b30e1f0 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,9 +1,25 @@ # @keystone-6/core +## 5.7.0 + +### Minor Changes + +- [#8837](https://github.com/keystonejs/keystone/pull/8837) [`650fae574`](https://github.com/keystonejs/keystone/commit/650fae574951f91454eb1169ff2b1f9ff51e918c) Thanks [@dcousens](https://github.com/dcousens)! - Add type `FieldHooks` to `@keystone-6/core/types` exports + +* [#8826](https://github.com/keystonejs/keystone/pull/8826) [`dc26bdfed`](https://github.com/keystonejs/keystone/commit/dc26bdfedb783a0d73174e579e46d9f00410e8ef) Thanks [@dcousens](https://github.com/dcousens)! - Add `beforeOperation.[create|update|delete]` and `afterOperation.[create|update|delete]` operation routing for list hooks + +### Patch Changes + +- [#8819](https://github.com/keystonejs/keystone/pull/8819) [`52337e3aa`](https://github.com/keystonejs/keystone/commit/52337e3aa6a57c23c2f0756199a90058a6e5a2ac) Thanks [@acburdine](https://github.com/acburdine)! - Fix `hooks.validateInput` argument types for update operations + +* [#8824](https://github.com/keystonejs/keystone/pull/8824) [`712ebb427`](https://github.com/keystonejs/keystone/commit/712ebb42700cd418bb2642858493f57cf7825a40) Thanks [@ScottAgirs](https://github.com/ScottAgirs)! - Remove deprecated `experimental.appDir` flag from generated next.config + ## 5.6.0 ### Minor Changes +- [#8810](https://github.com/keystonejs/keystone/pull/8810) [`27a893380`](https://github.com/keystonejs/keystone/commit/27a8933807804ddad17ce51e5aa418e958e48ce3) Thanks [@dcousens](https://github.com/dcousens)! - Adds error messages for GraphQL errors on the List view in the AdminUI + - [#8773](https://github.com/keystonejs/keystone/pull/8773) [`32f7a6ad4`](https://github.com/keystonejs/keystone/commit/32f7a6ad4a5a51a58988e7be495c96b06771b9b7) Thanks [@marekryb](https://github.com/marekryb)! - Adds `config.graphql.schemaPath` * [#8777](https://github.com/keystonejs/keystone/pull/8777) [`e3438dcad`](https://github.com/keystonejs/keystone/commit/e3438dcad7a97fb976c1d012b0b53919d0514747) Thanks [@dcousens](https://github.com/dcousens)! - Adds `config.db.prismaSchemaPath` @@ -12,6 +28,8 @@ ### Patch Changes +- [#8810](https://github.com/keystonejs/keystone/pull/8810) [`27a893380`](https://github.com/keystonejs/keystone/commit/27a8933807804ddad17ce51e5aa418e958e48ce3) Thanks [@dcousens](https://github.com/dcousens)! - Fix `Input error: only a int can be passed to id filters` for AdminUI + - [#8790](https://github.com/keystonejs/keystone/pull/8790) [`b830b7c6d`](https://github.com/keystonejs/keystone/commit/b830b7c6deebcffabcf6cd84919a7326a66e9bc9) Thanks [@dcousens](https://github.com/dcousens)! - Reduce number of package dependencies * [#8788](https://github.com/keystonejs/keystone/pull/8788) [`7b2bb087c`](https://github.com/keystonejs/keystone/commit/7b2bb087c475255322893b01dc1be08174bcca80) Thanks [@borisno2](https://github.com/borisno2)! - Fixes `keystone build` hanging with next version >13.4.12 diff --git a/packages/core/package.json b/packages/core/package.json index 091478898f9..88d74672452 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@keystone-6/core", - "version": "5.6.0", + "version": "5.7.0", "repository": "https://github.com/keystonejs/keystone/tree/main/packages/core", "license": "MIT", "main": "dist/keystone-6-core.cjs.js", @@ -248,7 +248,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@keystone-6/core": "5.6.0", + "@keystone-6/core": "5.7.0", "@types/apollo-upload-client": "17.0.3", "@types/bcryptjs": "^2.4.2", "@types/body-parser": "^1.19.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18ac4c5a7d8..827e49afec4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -690,7 +690,7 @@ importers: specifier: workspace:^ version: link:../../packages/cloudinary '@keystone-6/core': - specifier: ^5.0.0 + specifier: ^5.7.0 version: link:../../packages/core '@prisma/client': specifier: ^4.16.2 @@ -2100,7 +2100,7 @@ importers: version: 9.0.0 devDependencies: '@keystone-6/core': - specifier: 5.6.0 + specifier: 5.7.0 version: 'link:' '@types/apollo-upload-client': specifier: 17.0.3