create-keystone-app 6.0.0 → 7.0.1

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.
Files changed (49) hide show
  1. package/dist/create-keystone-app.cjs.dev.js +5 -5
  2. package/dist/create-keystone-app.cjs.prod.js +5 -5
  3. package/package.json +5 -5
  4. package/starter/CHANGELOG.md +10 -0
  5. package/starter/package.json +5 -5
  6. package/starter/schema.graphql +1 -0
  7. package/starter/schema.prisma +3 -2
  8. package/starter/schema.ts +8 -2
  9. package/starter/.keystone/admin/.next/build-manifest.json +0 -30
  10. package/starter/.keystone/admin/.next/cache/webpack/client-development/0.pack +0 -0
  11. package/starter/.keystone/admin/.next/cache/webpack/client-development/index.pack +0 -0
  12. package/starter/.keystone/admin/.next/cache/webpack/server-development/0.pack +0 -0
  13. package/starter/.keystone/admin/.next/cache/webpack/server-development/index.pack +0 -0
  14. package/starter/.keystone/admin/.next/react-loadable-manifest.json +0 -1
  15. package/starter/.keystone/admin/.next/server/middleware-manifest.json +0 -6
  16. package/starter/.keystone/admin/.next/server/pages/_app.js +0 -1534
  17. package/starter/.keystone/admin/.next/server/pages/_document.js +0 -156
  18. package/starter/.keystone/admin/.next/server/pages/_error.js +0 -56
  19. package/starter/.keystone/admin/.next/server/pages/api/__keystone_api_build.js +0 -123
  20. package/starter/.keystone/admin/.next/server/pages-manifest.json +0 -6
  21. package/starter/.keystone/admin/.next/server/webpack-api-runtime.js +0 -168
  22. package/starter/.keystone/admin/.next/server/webpack-runtime.js +0 -168
  23. package/starter/.keystone/admin/.next/static/chunks/amp.js +0 -366
  24. package/starter/.keystone/admin/.next/static/chunks/main.js +0 -1251
  25. package/starter/.keystone/admin/.next/static/chunks/pages/_app.js +0 -10481
  26. package/starter/.keystone/admin/.next/static/chunks/pages/_error.js +0 -28
  27. package/starter/.keystone/admin/.next/static/chunks/polyfills.js +0 -1
  28. package/starter/.keystone/admin/.next/static/chunks/react-refresh.js +0 -62
  29. package/starter/.keystone/admin/.next/static/chunks/webpack.js +0 -1202
  30. package/starter/.keystone/admin/.next/static/development/_buildManifest.js +0 -1
  31. package/starter/.keystone/admin/.next/static/development/_middlewareManifest.js +0 -1
  32. package/starter/.keystone/admin/.next/static/development/_ssgManifest.js +0 -1
  33. package/starter/.keystone/admin/.next/trace +0 -26
  34. package/starter/.keystone/admin/next-env.d.ts +0 -6
  35. package/starter/.keystone/admin/next.config.js +0 -4
  36. package/starter/.keystone/admin/pages/_app.js +0 -19
  37. package/starter/.keystone/admin/pages/api/__keystone_api_build.js +0 -3
  38. package/starter/.keystone/admin/pages/index.js +0 -1
  39. package/starter/.keystone/admin/pages/init.js +0 -5
  40. package/starter/.keystone/admin/pages/no-access.js +0 -3
  41. package/starter/.keystone/admin/pages/posts/[id].js +0 -3
  42. package/starter/.keystone/admin/pages/posts/index.js +0 -3
  43. package/starter/.keystone/admin/pages/signin.js +0 -3
  44. package/starter/.keystone/admin/pages/tags/[id].js +0 -3
  45. package/starter/.keystone/admin/pages/tags/index.js +0 -3
  46. package/starter/.keystone/admin/pages/users/[id].js +0 -3
  47. package/starter/.keystone/admin/pages/users/index.js +0 -3
  48. package/starter/.keystone/admin/tsconfig.json +0 -22
  49. package/starter/keystone.db +0 -0
@@ -44,7 +44,7 @@ var terminalLink__default = /*#__PURE__*/_interopDefault(terminalLink);
44
44
 
45
45
  var currentPkgJson = {
46
46
  name: "create-keystone-app",
47
- version: "6.0.0",
47
+ version: "7.0.1",
48
48
  main: "dist/create-keystone-app.cjs.js",
49
49
  files: [
50
50
  "dist",
@@ -55,15 +55,15 @@ var currentPkgJson = {
55
55
  bin: "./bin.js",
56
56
  license: "MIT",
57
57
  dependencies: {
58
- "@babel/runtime": "^7.16.3",
58
+ "@babel/runtime": "^7.17.2",
59
59
  chalk: "^4.1.2",
60
60
  enquirer: "^2.3.6",
61
61
  execa: "^5.1.1",
62
- "fs-extra": "^10.0.0",
62
+ "fs-extra": "^10.1.0",
63
63
  meow: "^9.0.0",
64
64
  ora: "^5.4.1",
65
- "package-json": "^6.5.0",
66
- semver: "^7.3.5",
65
+ "package-json": "^7.0.0",
66
+ semver: "^7.3.7",
67
67
  "terminal-link": "^2.1.1"
68
68
  }
69
69
  };
@@ -44,7 +44,7 @@ var terminalLink__default = /*#__PURE__*/_interopDefault(terminalLink);
44
44
 
45
45
  var currentPkgJson = {
46
46
  name: "create-keystone-app",
47
- version: "6.0.0",
47
+ version: "7.0.1",
48
48
  main: "dist/create-keystone-app.cjs.js",
49
49
  files: [
50
50
  "dist",
@@ -55,15 +55,15 @@ var currentPkgJson = {
55
55
  bin: "./bin.js",
56
56
  license: "MIT",
57
57
  dependencies: {
58
- "@babel/runtime": "^7.16.3",
58
+ "@babel/runtime": "^7.17.2",
59
59
  chalk: "^4.1.2",
60
60
  enquirer: "^2.3.6",
61
61
  execa: "^5.1.1",
62
- "fs-extra": "^10.0.0",
62
+ "fs-extra": "^10.1.0",
63
63
  meow: "^9.0.0",
64
64
  ora: "^5.4.1",
65
- "package-json": "^6.5.0",
66
- semver: "^7.3.5",
65
+ "package-json": "^7.0.0",
66
+ semver: "^7.3.7",
67
67
  "terminal-link": "^2.1.1"
68
68
  }
69
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-keystone-app",
3
- "version": "6.0.0",
3
+ "version": "7.0.1",
4
4
  "main": "dist/create-keystone-app.cjs.js",
5
5
  "files": [
6
6
  "dist",
@@ -11,15 +11,15 @@
11
11
  "bin": "./bin.js",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@babel/runtime": "^7.16.3",
14
+ "@babel/runtime": "^7.17.2",
15
15
  "chalk": "^4.1.2",
16
16
  "enquirer": "^2.3.6",
17
17
  "execa": "^5.1.1",
18
- "fs-extra": "^10.0.0",
18
+ "fs-extra": "^10.1.0",
19
19
  "meow": "^9.0.0",
20
20
  "ora": "^5.4.1",
21
- "package-json": "^6.5.0",
22
- "semver": "^7.3.5",
21
+ "package-json": "^7.0.0",
22
+ "semver": "^7.3.7",
23
23
  "terminal-link": "^2.1.1"
24
24
  }
25
25
  }
@@ -1,5 +1,15 @@
1
1
  # keystone-next-app
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#278](https://github.com/keystonejs/create-keystone-app/pull/278) [`26f9a79`](https://github.com/keystonejs/create-keystone-app/commit/26f9a79ef913915bac85657884f85ff7e4da46c2) Thanks [@Noviny](https://github.com/Noviny)! - Improve schema options for linking authors to posts:
8
+ - Add `inlineConnect: true` to the post's relationship to users
9
+ - Remove authors from being inline-creatable
10
+
11
+ * [#319](https://github.com/keystonejs/create-keystone-app/pull/319) [`94a859e`](https://github.com/keystonejs/create-keystone-app/commit/94a859e43123d2f348d5e21551d59bd7e257aa81) Thanks [@Achisingh](https://github.com/Achisingh)! - Fix dependencies and update schemas for the latest `keystone-6` release
12
+
3
13
  ## 5.0.0
4
14
 
5
15
  ### Major Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keystone-app",
3
- "version": "5.0.0",
3
+ "version": "1.0.1",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "keystone dev",
@@ -9,10 +9,10 @@
9
9
  "postinstall": "keystone postinstall"
10
10
  },
11
11
  "dependencies": {
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"
12
+ "@keystone-6/auth": "^4.0.0",
13
+ "@keystone-6/core": "^2.1.0",
14
+ "@keystone-6/fields-document": "^4.0.0",
15
+ "typescript": "^4.7.4"
16
16
  },
17
17
  "engines": {
18
18
  "node": "^14.15 || ^16.13"
@@ -423,6 +423,7 @@ type KeystoneAdminUIListMeta {
423
423
  type KeystoneAdminUIFieldMeta {
424
424
  path: String!
425
425
  label: String!
426
+ description: String
426
427
  isOrderable: Boolean!
427
428
  isFilterable: Boolean!
428
429
  fieldMeta: JSON
@@ -2,8 +2,9 @@
2
2
  // Modify your Keystone config when you want to change this.
3
3
 
4
4
  datasource sqlite {
5
- url = env("DATABASE_URL")
6
- provider = "sqlite"
5
+ url = env("DATABASE_URL")
6
+ shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
7
+ provider = "sqlite"
7
8
  }
8
9
 
9
10
  generator client {
package/starter/schema.ts CHANGED
@@ -31,10 +31,16 @@ import {
31
31
  // custom ones.
32
32
  import { document } from '@keystone-6/fields-document';
33
33
 
34
+ // We are using Typescript, and we want our types experience to be as strict as it can be.
35
+ // By providing the Keystone generated `Lists` type to our lists object, we refine
36
+ // our types to a stricter subset that is type-aware of other lists in our schema
37
+ // that Typescript cannot easily infer.
38
+ import { Lists } from '.keystone/types';
39
+
34
40
  // We have a users list, a blogs list, and tags for blog posts, so they can be filtered.
35
41
  // Each property on the exported object will become the name of a list (a.k.a. the `listKey`),
36
42
  // with the value being the definition of the list, including the fields.
37
- export const lists = {
43
+ export const lists: Lists = {
38
44
  // Here we define the user list.
39
45
  User: list({
40
46
  // Here are the fields that `User` will have. We want an email and password so they can log in
@@ -105,7 +111,7 @@ export const lists = {
105
111
  cardFields: ['name', 'email'],
106
112
  inlineEdit: { fields: ['name', 'email'] },
107
113
  linkToItem: true,
108
- inlineCreate: { fields: ['name', 'email'] },
114
+ inlineConnect: true,
109
115
  },
110
116
  }),
111
117
  // We also link posts to tags. This is a many <=> many linking.
@@ -1,30 +0,0 @@
1
- {
2
- "polyfillFiles": [
3
- "static/chunks/polyfills.js"
4
- ],
5
- "devFiles": [
6
- "static/chunks/react-refresh.js"
7
- ],
8
- "ampDevFiles": [
9
- "static/chunks/webpack.js",
10
- "static/chunks/amp.js"
11
- ],
12
- "lowPriorityFiles": [
13
- "static/development/_buildManifest.js",
14
- "static/development/_ssgManifest.js",
15
- "static/development/_middlewareManifest.js"
16
- ],
17
- "pages": {
18
- "/_app": [
19
- "static/chunks/webpack.js",
20
- "static/chunks/main.js",
21
- "static/chunks/pages/_app.js"
22
- ],
23
- "/_error": [
24
- "static/chunks/webpack.js",
25
- "static/chunks/main.js",
26
- "static/chunks/pages/_error.js"
27
- ]
28
- },
29
- "ampFirstPages": []
30
- }
@@ -1,6 +0,0 @@
1
- {
2
- "sortedMiddleware": [],
3
- "clientInfo": [],
4
- "middleware": {},
5
- "version": 1
6
- }