Skip to content

Commit

Permalink
chore: upgrade to hexo 7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Feb 3, 2024
1 parent 0dc59c2 commit 040a9cd
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 32 deletions.
4 changes: 2 additions & 2 deletions fixture/site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"hexo": {
"version": "6.3.0"
"version": "7.1.1"
}
}
}
55 changes: 28 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "ppoffice <ppoffice@users.noreply.github.com>",
"license": "MIT",
"engines": {
"node": ">=12.4.0"
"node": ">=14"
},
"scripts": {
"test": "jest",
Expand All @@ -29,38 +29,39 @@
"asset/"
],
"devDependencies": {
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@types/hexo": "^3.8.5",
"@types/hexo-util": "^0.6.2",
"babel-plugin-inferno": "^6.1.0",
"cheerio": "^1.0.0-rc.10",
"deepmerge": "^4.2.2",
"eslint": "^8.6.0",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@types/hexo": "^3.8.12",
"@types/hexo-util": "^0.6.8",
"babel-plugin-inferno": "^6.7.1",
"cheerio": "^1.0.0-rc.12",
"deepmerge": "^4.3.1",
"eslint": "^8.56.0",
"eslint-config-hexo": "^5.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^25.3.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-react": "^7.18.0",
"hexo-renderer-marked": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"hexo-renderer-marked": "^6.2.0",
"html-minifier": "^4.0.0",
"inferno-server": "^7.4.1",
"inferno-test-utils": "^8.1.1",
"jest": "^27.4.7",
"jsdoc": "^3.6.3",
"inferno-server": "^7.4.11",
"inferno-test-utils": "^8.2.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdoc": "^4.0.2",
"minami": "^1.2.3",
"prettier": "^2.0.5"
"prettier": "^3.2.4"
},
"dependencies": {
"ajv": "^8.8.2",
"hexo": "^6.0.0",
"hexo-pagination": "^2.0.0",
"hexo-util": "^2.2.0",
"inferno": "^7.3.3",
"inferno-create-element": "^7.3.3",
"ajv": "^8.12.0",
"hexo": "^7.1.1",
"hexo-pagination": "^3.0.0",
"hexo-util": "^3.2.0",
"inferno": "^7.4.11",
"inferno-create-element": "^7.4.11",
"js-yaml": "^4.1.0",
"moment": "^2.24.0",
"semver": "^7.1.1"
"moment": "^2.30.1",
"semver": "^7.5.4"
}
}
4 changes: 2 additions & 2 deletions src/hexo/filter/locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const yaml = require('js-yaml');
*/
module.exports = (hexo) => {
const RESERVED_KEYS = {
post: Object.keys(require('hexo/lib/models/post')(hexo).paths),
page: Object.keys(require('hexo/lib/models/page')(hexo).paths),
post: Object.keys(require('hexo/dist/models/post')(hexo).paths),
page: Object.keys(require('hexo/dist/models/page')(hexo).paths),
};

function loadLayoutConfig(layout) {
Expand Down
2 changes: 1 addition & 1 deletion src/view/widget/archives.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module view/widget/archives
*/
const { Component } = require('inferno');
const { toMomentLocale } = require('hexo/lib/plugins/helper/date');
const { toMomentLocale } = require('hexo/dist/plugins/helper/date');
const { cacheComponent } = require('../../util/cache');

/**
Expand Down

0 comments on commit 040a9cd

Please sign in to comment.