Skip to content

Commit

Permalink
Remove the mongoId field type (#5275)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Mar 30, 2021
1 parent 4fa66ac commit 8665cfe
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 1,029 deletions.
7 changes: 7 additions & 0 deletions .changeset/real-ears-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@keystone-next/fields': major
'@keystone-next/adapter-mongoose-legacy': major
'@keystone-next/fields-legacy': major
---

Removed the `mongoId` field type.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
"packages/utils",
"packages/fields-auto-increment",
"packages/fields-cloudinary-image",
"packages/fields-mongoid",
"packages/fields",
"packages/adapter-prisma",
"packages/server-side-graphql-client",
Expand Down
1 change: 0 additions & 1 deletion packages-next/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@keystone-next/admin-ui-utils": "^3.0.2",
"@keystone-next/fields-auto-increment-legacy": "^9.0.0",
"@keystone-next/fields-legacy": "^24.0.0",
"@keystone-next/fields-mongoid-legacy": "^10.0.0",
"@keystone-next/types": "^15.0.1",
"@keystone-ui/button": "^3.0.1",
"@keystone-ui/core": "^2.0.2",
Expand Down
21 changes: 0 additions & 21 deletions packages-next/fields/src/types/mongoId/index.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages-next/fields/src/types/mongoId/tests/test-fixtures.ts

This file was deleted.

85 changes: 0 additions & 85 deletions packages-next/fields/src/types/mongoId/views/index.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions packages/adapter-mongoose/lib/adapter-mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ class MongooseAdapter extends BaseKeystoneAdapter {

getDefaultPrimaryKeyConfig() {
// Required here due to circular refs
const { MongoId } = require('@keystone-next/fields-mongoid-legacy');
return MongoId.primaryKeyDefaults[this.name].getConfig();
return {};
}

async checkDatabaseVersion() {
Expand Down
1 change: 0 additions & 1 deletion packages/adapter-mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"node": ">=10.0.0"
},
"dependencies": {
"@keystone-next/fields-mongoid-legacy": "^10.0.0",
"@keystone-next/keystone-legacy": "^22.0.0",
"@keystone-next/utils-legacy": "^8.0.0",
"cuid": "^2.1.8",
Expand Down
Loading

1 comment on commit 8665cfe

@vercel
Copy link

@vercel vercel bot commented on 8665cfe Mar 30, 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.