Skip to content

Commit

Permalink
Remove legacy fields-content (#5036)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Mar 8, 2021
1 parent 9639c5a commit afccc27
Show file tree
Hide file tree
Showing 88 changed files with 13 additions and 5,327 deletions.
8 changes: 8 additions & 0 deletions .changeset/nervous-melons-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@keystone-next/fields-cloudinary-image-legacy': major
'@keystone-next/fields-oembed-legacy': major
'@keystone-next/fields-unsplash-legacy': major
'@keystone-next/cypress-project-basic-legacy': patch
---

Remove support for `fields-content` blocks.
1 change: 0 additions & 1 deletion docs/discussions/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ We would like to have full support for all Keystone field types, and are working
| `Virtual` | `N/A` |
| **Extra fields** | |
| `Color` | `String` |
| `Content` | `@relation` |
| `AuthedRelationship` | `@relation` |
| `AutoIncrement` | `Int` |
| `CloudinaryImage` | `Json` |
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
"packages/fields-mongoid",
"packages/fields-location-google",
"packages/fields-wysiwyg-tinymce",
"packages/fields-content",
"packages/fields-color",
"packages/fields",
"packages-next/*",
Expand Down
19 changes: 0 additions & 19 deletions packages/fields-cloudinary-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,3 @@ query getFirstCloudinaryImage {
}
}
```

## Cloudinary image block

The `CloudinaryImage` field also exposes a block that can be used in the [Content](/packages/fields-content/README.md) field.

### Usage

```js title=index.js
const { Content } = require('@keystone-next/fields-content-legacy');

keystone.createList('Post', {
fields: {
body: {
type: Content,
blocks: [Content.blocks.heading, [CloudinaryImage.blocks.image, { adapter }]],
},
},
});
```
4 changes: 1 addition & 3 deletions packages/fields-cloudinary-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@iframely/embed.js": "^1.3.1",
"@keystone-next/adapter-knex-legacy": "^13.1.0",
"@keystone-next/adapter-mongoose-legacy": "^11.1.0",
"@keystone-next/fields-content-legacy": "^9.0.7",
"@keystone-next/fields-legacy": "^22.0.1",
"@primer/octicons-react": "^11.3.0",
"image-extensions": "^1.1.0",
Expand All @@ -37,8 +36,7 @@
"preconstruct": {
"entrypoints": [
"index.js",
"views/*.js",
"views/blocks/single-image.js"
"views/*.js"
]
},
"devDependencies": {
Expand Down
118 changes: 0 additions & 118 deletions packages/fields-cloudinary-image/src/ImageBlock.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/fields-cloudinary-image/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
KnexCloudinaryImageInterface,
PrismaCloudinaryImageInterface,
} from './Implementation';
import { ImageBlock } from './ImageBlock';

export const CloudinaryImage = {
type: 'CloudinaryImage',
Expand All @@ -21,10 +20,4 @@ export const CloudinaryImage = {
knex: KnexCloudinaryImageInterface,
prisma: PrismaCloudinaryImageInterface,
},
blocks: {
image: ImageBlock,
// gallery: {
// type: 'cloudinaryGallery',
// },
},
};
Loading

1 comment on commit afccc27

@vercel
Copy link

@vercel vercel bot commented on afccc27 Mar 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.