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

chore: bump warehouse from 4.0.2 to 5.0.0 #5101

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/hexo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const Promise = require('bluebird');
const { sep, join, dirname } = require('path');
const tildify = require('tildify');
const Database = require('warehouse');
const Database = require('warehouse').default;
const { magenta, underline } = require('picocolors');
const { EventEmitter } = require('events');
const { readFile } = require('hexo-fs');
Expand Down
2 changes: 1 addition & 1 deletion lib/models/asset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const { join } = require('path');

module.exports = ctx => {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const Promise = require('bluebird');

module.exports = ctx => {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/category.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const { slugize, full_url_for } = require('hexo-util');

module.exports = ctx => {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/data.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;

module.exports = ctx => {
const Data = new Schema({
Expand Down
2 changes: 1 addition & 1 deletion lib/models/page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const { join } = require('path');
const Moment = require('./types/moment');
const moment = require('moment');
Expand Down
2 changes: 1 addition & 1 deletion lib/models/post.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const moment = require('moment');
const { extname, join, sep } = require('path');
const Promise = require('bluebird');
Expand Down
2 changes: 1 addition & 1 deletion lib/models/post_asset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const { join } = require('path');

module.exports = ctx => {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/post_category.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;

module.exports = ctx => {
const PostCategory = new Schema({
Expand Down
2 changes: 1 addition & 1 deletion lib/models/post_tag.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;

module.exports = ctx => {
const PostTag = new Schema({
Expand Down
2 changes: 1 addition & 1 deletion lib/models/tag.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { Schema } = require('warehouse');
const { Schema } = require('warehouse').default;
const { slugize, full_url_for } = require('hexo-util');
const { hasOwnProperty: hasOwn } = Object.prototype;

Expand Down
2 changes: 1 addition & 1 deletion lib/models/types/moment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { SchemaType } = require('warehouse');
const { SchemaType } = require('warehouse').default;
const { moment, toMomentLocale } = require('../../plugins/helper/date');

class SchemaTypeMoment extends SchemaType {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"text-table": "^0.2.0",
"tildify": "^2.0.0",
"titlecase": "^1.1.3",
"warehouse": "^4.0.2"
"warehouse": "^5.0.0"
},
"devDependencies": {
"@easyops/git-exec-and-restage": "^1.0.4",
Expand Down