Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #5274

Merged
merged 1 commit into from
Apr 6, 2021
Merged

Version Packages #5274

merged 1 commit into from
Apr 6, 2021

Conversation

keystonejs-release-bot
Copy link
Collaborator

@keystonejs-release-bot keystonejs-release-bot commented Mar 30, 2021

What's New

Controlled code demolition 🏗️ 👷‍♀️

We pruned a lot of code from the Keystone garden – cutting out the dead wood to make way for a more efficient and productive core in Keystone 6. Notable changes include:

  • Removed Keystone‘s DB adapters and the db.adapter config option (now that Keystone 6 uses Prisma under the hood).
  • Said goodbye to a bunch of redundant methods and arguments for the same reasons as above.
  • Exchanged deploy, reset and generate commands for keystone-next prisma e.g:
    • keystone-next deploy -> keystone-next prisma migrate deploy

Better pagination in Admin UI ⏭️ ✨

Pagination in the Admin UI has fresh styles and is easier to use.

Enjoying Keystone?

Star this repo 🌟 ☝️ or connect to Keystone on Twitter and in Slack.


Releases

@keystone-next/admin-ui@13.0.0

Major Changes

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Updated Next API route template to use createSystem without the dotKeystonePath argument and import from the new Prisma Client location.

Minor Changes

Patch Changes

@keystone-next/fields@6.0.0

Major Changes

Patch Changes

@keystone-next/fields-document@4.0.0

Major Changes

Patch Changes

@keystone-next/keystone@15.0.0

Major Changes

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Replaced deploy, reset and generate commands with keystone-next prisma. You can use these commands as replacements for the old commands:

    • keystone-next deploy -> keystone-next prisma migrate deploy
    • keystone-next reset -> keystone-next prisma migrate reset
    • keystone-next generate -> keystone-next prisma migrate dev
  • #5266 c28e765d1 Thanks @mitchellhamilton! - Removed migrationAction argument to createSystem and require that the PrismaClient is passed to createSystem to be able to connect to the database.

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Updated keystone-next build command to validate that the GraphQL and Prisma schemas are up to date.

  • #5287 95fefaf81 Thanks @mitchellhamilton! - Removed getDbSchemaName and getPrismaPath database adapter options. To change the database schema that Keystone uses, you can add ?schema=whatever to the database url.

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Moved generated schema.prisma to the root of the project directory. Note that this also moves the location of migrations from .keystone/prisma/migrations to migrations at the root of the project.

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Removed dotKeystonePath argument from createSystem

  • #5256 399e6db39 Thanks @timleslie! - Removed support for the knex and mongoose database adapters. We now only support prisma_postgresql and prisma_sqlite.

  • #5285 5cd94b2a3 Thanks @mitchellhamilton! - Removed dropDatabase method and config option

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Moved generated GraphQL schema to schema.graphql to the root of the project. We recommend that you commit this file to your repo.

Minor Changes

Patch Changes

@keystone-next/types@16.0.0

Major Changes

  • #5266 c28e765d1 Thanks @mitchellhamilton! - Removed migrationAction argument to createSystem and require that the PrismaClient is passed to createSystem to be able to connect to the database.

  • #5256 399e6db39 Thanks @timleslie! - Removed support for the knex and mongoose database adapters. We now only support prisma_postgresql and prisma_sqlite.

Minor Changes

  • #5368 b40016301 Thanks @timleslie! - The config option db.adapter is now deprecated. It has been repaced with db.provider which can take the values postgresql or sqlite.

  • #5283 192393d0d Thanks @timleslie! - The flag { experimental: { prismaSqlite: true } } is no longer required to use the SQLite adapter.

  • #5341 1886b4323 Thanks @mitchellhamilton! - Added generateNextGraphqlAPI and generateNodeAPI experimental options

@keystone-next/adapter-prisma-legacy@5.0.0

Major Changes

  • #5319 1261c398b Thanks @timleslie! - Removed legacy PrismaAdapter.listAdapterClass, PrismaAdapter.postConnect(), and PrismaAdapter.checkDatabaseVersion().

  • #5302 1e6d12f47 Thanks @mitchellhamilton! - Removed CLIOptionsForCreateMigration and createMigration exports

  • #5324 e702fea44 Thanks @timleslie! - Removed legacy .find(), .findAll(), .findOne(), .findById(), .itemsQueryMeta(), .getFieldAdapterByPath(), and .getPrimaryKeyAdapter() methods from PrismaListAdapter.

  • #5287 95fefaf81 Thanks @mitchellhamilton! - Removed getDbSchemaName and getPrismaPath database adapter options. To change the database schema that Keystone uses, you can add ?schema=whatever to the database url.

  • #5302 1e6d12f47 Thanks @mitchellhamilton! - Removed formatting of Prisma schema returned from _generatePrismaSchema method and made it return synchronously

  • #5320 fda82869c Thanks @timleslie! - Removed legacy default ID field support.

  • #5285 5cd94b2a3 Thanks @mitchellhamilton! - Removed dropDatabase method and config option

  • #5287 95fefaf81 Thanks @mitchellhamilton! - Removed migrationMode and all migration related methods on the adapter and instead require that a prisma client is passed to the adapter to be able to connect to the database

Patch Changes

@keystone-next/fields-legacy@25.0.0

Major Changes

Patch Changes

@keystone-next/fields-auto-increment-legacy@10.0.0

Major Changes

Patch Changes

@keystone-next/fields-cloudinary-image-legacy@5.0.0

Major Changes

Patch Changes

@keystone-next/keystone-legacy@23.0.0

Major Changes

Patch Changes

  • #5324 e702fea44 Thanks @timleslie! - Removed legacy .find(), .findAll(), .findOne(), .findById(), .itemsQueryMeta(), .getFieldAdapterByPath(), and .getPrimaryKeyAdapter() methods from PrismaListAdapter.

@keystone-next/test-utils-legacy@16.0.0

Major Changes

  • #5276 1a4db6c87 Thanks @mitchellhamilton! - Removed usage of getDbSchemaName, getPrismaPath, migrationMode and dropDatabase adapter options. Note this means that dropping the database and running migrations will now only happen when creating a keystone instance from setupFromConfig rather than on every keystone.connect

  • #5256 399e6db39 Thanks @timleslie! - Removed support for the knex and mongoose database adapters. We now only support prisma_postgresql and prisma_sqlite.

Patch Changes

@keystone-ui/fields@2.1.0

Minor Changes

  • #5322 d93bab17b Thanks @gwyneplaine! - Added styles prop to @keystone-ui/fields select components to enable style customisations to propagate to the underlying reaect-select implementation.

@keystone-next/admin-ui-utils@3.0.3

Patch Changes

@keystone-next/auth@20.0.0

Patch Changes

@keystone-next/cloudinary@3.0.6

Patch Changes

@keystone-next/server-side-graphql-client-legacy@3.0.1

Patch Changes

@keystone-next/website@1.3.0

Minor Changes

  • #5368 b40016301 Thanks @timleslie! - The config option db.adapter is now deprecated. It has been repaced with db.provider which can take the values postgresql or sqlite.

Patch Changes

@keystone-next/example-auth@2.0.1

Patch Changes

@keystone-next/app-basic@2.0.1

Patch Changes

@keystone-next/example-ecommerce@2.0.1

Patch Changes

keystone-next-app@0.0.5

Patch Changes

@keystone-next/example-next-lite@1.0.4

Patch Changes

@keystone-next/example-roles@2.0.1

Patch Changes

@keystone-next/example-sandbox@1.0.5

Patch Changes

@keystone-next/example-todo@1.0.5

Patch Changes

@keystone-next/api-tests-legacy@9.2.2

Patch Changes

@keystone-next/benchmarks-legacy@5.2.5

Patch Changes

@vercel
Copy link

vercel bot commented Mar 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/5n76iBdVwQ7GAAo2QfygMcknxjV4
✅ Preview: https://keystone-next-docs-git-changeset-release-master-keystonejs.vercel.app

@vercel vercel bot temporarily deployed to Preview March 30, 2021 01:42 Inactive
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 30, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 52fd888:

Sandbox Source
@keystone-next/example-sandbox Configuration

@vercel vercel bot temporarily deployed to Preview March 30, 2021 01:56 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 02:02 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 03:10 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 04:14 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 04:37 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 04:48 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 05:58 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 06:16 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 06:48 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 09:41 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 14:07 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 21:38 Inactive
@vercel vercel bot temporarily deployed to Preview March 30, 2021 21:53 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 21:55 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 22:38 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 23:00 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 23:12 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 23:20 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 23:34 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2021 23:42 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 00:38 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 00:46 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 01:19 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 01:32 Inactive
@bladey bladey self-requested a review April 6, 2021 01:38
@bladey bladey merged commit af79d91 into master Apr 6, 2021
@bladey bladey deleted the changeset-release/master branch April 6, 2021 01:43
@bladey bladey changed the title Version Packages ✨ Release - 6th April 2021 May 7, 2021
@bladey bladey changed the title ✨ Release - 6th April 2021 Version Packages May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants