create-keystone-app 5.1.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ var terminalLink__default = /*#__PURE__*/_interopDefault(terminalLink);
44
44
 
45
45
  var currentPkgJson = {
46
46
  name: "create-keystone-app",
47
- version: "5.1.0",
47
+ version: "6.0.0",
48
48
  main: "dist/create-keystone-app.cjs.js",
49
49
  files: [
50
50
  "dist",
@@ -97,12 +97,8 @@ Usage
97
97
 
98
98
  const versionInfo = () => {
99
99
  process.stdout.write('\n');
100
- console.log(`🚩 You're about to generate a project using ${c__default["default"].bold('Keystone Next')} packages.
101
-
102
- 🚏 If you'd like to use ${c__default["default"].bold('Keystone 5')}, please use \`create-keystone-5-app\` instead.
103
-
104
- 📖 Learn more about the changes between ${c__default["default"].bold('Keystone 5')} and ${c__default["default"].bold('Keystone Next')} on our ${terminalLink__default["default"]('website', 'https://keystonejs.com/guides/keystone-5-vs-keystone-next')}.
105
- `);
100
+ console.log(`✨ You're about to generate a project using ${c__default["default"].bold('Keystone 6')} packages.
101
+ `);
106
102
  };
107
103
 
108
104
  async function normalizeArgs() {
@@ -44,7 +44,7 @@ var terminalLink__default = /*#__PURE__*/_interopDefault(terminalLink);
44
44
 
45
45
  var currentPkgJson = {
46
46
  name: "create-keystone-app",
47
- version: "5.1.0",
47
+ version: "6.0.0",
48
48
  main: "dist/create-keystone-app.cjs.js",
49
49
  files: [
50
50
  "dist",
@@ -97,12 +97,8 @@ Usage
97
97
 
98
98
  const versionInfo = () => {
99
99
  process.stdout.write('\n');
100
- console.log(`🚩 You're about to generate a project using ${c__default["default"].bold('Keystone Next')} packages.
101
-
102
- 🚏 If you'd like to use ${c__default["default"].bold('Keystone 5')}, please use \`create-keystone-5-app\` instead.
103
-
104
- 📖 Learn more about the changes between ${c__default["default"].bold('Keystone 5')} and ${c__default["default"].bold('Keystone Next')} on our ${terminalLink__default["default"]('website', 'https://keystonejs.com/guides/keystone-5-vs-keystone-next')}.
105
- `);
100
+ console.log(`✨ You're about to generate a project using ${c__default["default"].bold('Keystone 6')} packages.
101
+ `);
106
102
  };
107
103
 
108
104
  async function normalizeArgs() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-keystone-app",
3
- "version": "5.1.0",
3
+ "version": "6.0.0",
4
4
  "main": "dist/create-keystone-app.cjs.js",
5
5
  "files": [
6
6
  "dist",
@@ -1,5 +1,11 @@
1
1
  # keystone-next-app
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#260](https://github.com/keystonejs/create-keystone-app/pull/260) [`6288ac4`](https://github.com/keystonejs/create-keystone-app/commit/6288ac493d82a4f4f669f70daa2f24cefd8e375e) Thanks [@bladey](https://github.com/bladey)! - Updated to use Keystone 6.
8
+
3
9
  ## 3.1.0
4
10
 
5
11
  ### Minor Changes
package/starter/auth.ts CHANGED
@@ -7,10 +7,10 @@ Welcome to the auth file! Here we have put a config to do basic auth in Keystone
7
7
  For more on auth, check out: https://keystonejs.com/docs/apis/auth#authentication-api
8
8
  */
9
9
 
10
- import { createAuth } from '@keystone-next/auth';
10
+ import { createAuth } from '@keystone-6/auth';
11
11
 
12
12
  // See https://keystonejs.com/docs/apis/session#session-api for the session docs
13
- import { statelessSessions } from '@keystone-next/keystone/session';
13
+ import { statelessSessions } from '@keystone-6/core/session';
14
14
 
15
15
  let sessionSecret = process.env.SESSION_SECRET;
16
16
 
@@ -6,7 +6,7 @@ It looks at the default export, and expects a Keystone config object.
6
6
  You can find all the config options in our docs here: https://keystonejs.com/docs/apis/config
7
7
  */
8
8
 
9
- import { config } from '@keystone-next/keystone';
9
+ import { config } from '@keystone-6/core';
10
10
 
11
11
  // Look in the schema file for how we define our lists, and how users interact with them through graphql or the Admin UI
12
12
  import { lists } from './schema';
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "keystone-app",
3
- "version": "3.1.0",
3
+ "version": "5.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "dev": "keystone-next dev",
7
- "start": "keystone-next start",
8
- "build": "keystone-next build",
9
- "postinstall": "keystone-next postinstall"
6
+ "dev": "keystone dev",
7
+ "start": "keystone start",
8
+ "build": "keystone build",
9
+ "postinstall": "keystone postinstall"
10
10
  },
11
11
  "dependencies": {
12
- "@keystone-next/auth": "^36.0.0",
13
- "@keystone-next/fields-document": "^13.0.0",
14
- "@keystone-next/keystone": "^28.0.0",
15
- "typescript": "^4.4.4"
12
+ "@keystone-6/auth": "^1.0.0",
13
+ "@keystone-6/core": "^1.0.0",
14
+ "@keystone-6/fields-document": "^1.0.0",
15
+ "typescript": "^4.5.2"
16
16
  },
17
17
  "engines": {
18
- "node": "^12.20 || >= 14.13"
18
+ "node": "^14.15 || ^16.13"
19
19
  }
20
20
  }
@@ -7,9 +7,8 @@ datasource sqlite {
7
7
  }
8
8
 
9
9
  generator client {
10
- provider = "prisma-client-js"
11
- output = "node_modules/.prisma/client"
12
- engineType = "binary"
10
+ provider = "prisma-client-js"
11
+ output = "node_modules/.prisma/client"
13
12
  }
14
13
 
15
14
  model User {
@@ -28,7 +27,7 @@ model Post {
28
27
  publishDate DateTime?
29
28
  author User? @relation("Post_author", fields: [authorId], references: [id])
30
29
  authorId String? @map("author")
31
- tags Tag[] @relation("Post_tags_Tag_posts")
30
+ tags Tag[] @relation("Post_tags")
32
31
 
33
32
  @@index([authorId])
34
33
  }
@@ -36,5 +35,5 @@ model Post {
36
35
  model Tag {
37
36
  id String @id @default(cuid())
38
37
  name String @default("")
39
- posts Post[] @relation("Post_tags_Tag_posts")
38
+ posts Post[] @relation("Post_tags")
40
39
  }
package/starter/schema.ts CHANGED
@@ -15,7 +15,7 @@ A field: The individual bits of data on your list, each with its own type.
15
15
  // Like the `config` function we use in keystone.ts, we use functions
16
16
  // for putting in our config so we get useful errors. With typescript,
17
17
  // we get these even before code runs.
18
- import { list } from '@keystone-next/keystone';
18
+ import { list } from '@keystone-6/core';
19
19
 
20
20
  // We're using some common fields in the starter. Check out https://keystonejs.com/docs/apis/fields#fields-api
21
21
  // for the full list of fields.
@@ -25,11 +25,11 @@ import {
25
25
  password,
26
26
  timestamp,
27
27
  select,
28
- } from '@keystone-next/keystone/fields';
28
+ } from '@keystone-6/core/fields';
29
29
  // The document field is a more complicated field, so it's in its own package
30
30
  // Keystone aims to have all the base field types, but you can make your own
31
31
  // custom ones.
32
- import { document } from '@keystone-next/fields-document';
32
+ import { document } from '@keystone-6/fields-document';
33
33
 
34
34
  // We have a users list, a blogs list, and tags for blog posts, so they can be filtered.
35
35
  // Each property on the exported object will become the name of a list (a.k.a. the `listKey`),