Commit fcb555f7 authored by Liang Ding's avatar Liang Ding

🔖 发布 v3.8.0

parent b50216fd
## v3.8.0 / 2020-01-16
### 引入特性
* [评论社区组件化](https://github.com/88250/solo/issues/18)
### 改进皮肤
* [皮肤 Casper 标签页标题显示异常](https://github.com/88250/solo/issues/43)
### 改进功能
* [移除计数相关数据填充和功能](https://github.com/88250/solo/issues/45)
### 修复缺陷
* [Jar 包运行时皮肤目录名问题](https://github.com/88250/solo/issues/41)
* [自定义表前缀后存档 404](https://github.com/88250/solo/issues/42)
## v3.7.0 / 2020-01-13 ## v3.7.0 / 2020-01-13
### 引入特性 ### 引入特性
......
{ {
"name": "Solo", "name": "solo",
"version": "3.7.0", "version": "3.8.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
...@@ -1764,7 +1764,8 @@ ...@@ -1764,7 +1764,8 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
...@@ -1785,12 +1786,14 @@ ...@@ -1785,12 +1786,14 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -1805,17 +1808,20 @@ ...@@ -1805,17 +1808,20 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
...@@ -1932,7 +1938,8 @@ ...@@ -1932,7 +1938,8 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
...@@ -1944,6 +1951,7 @@ ...@@ -1944,6 +1951,7 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
...@@ -1958,6 +1966,7 @@ ...@@ -1958,6 +1966,7 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
...@@ -1965,12 +1974,14 @@ ...@@ -1965,12 +1974,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
...@@ -1989,6 +2000,7 @@ ...@@ -1989,6 +2000,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
...@@ -2069,7 +2081,8 @@ ...@@ -2069,7 +2081,8 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
...@@ -2081,6 +2094,7 @@ ...@@ -2081,6 +2094,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
...@@ -2166,7 +2180,8 @@ ...@@ -2166,7 +2180,8 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
...@@ -2202,6 +2217,7 @@ ...@@ -2202,6 +2217,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
...@@ -2221,6 +2237,7 @@ ...@@ -2221,6 +2237,7 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
...@@ -2264,12 +2281,14 @@ ...@@ -2264,12 +2281,14 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
} }
} }
}, },
......
{ {
"name": "Solo", "name": "Solo",
"version": "3.7.0", "version": "3.8.0",
"description": " 一款小而美的博客系统,专为程序员设计。", "description": " 一款小而美的博客系统,专为程序员设计。",
"homepage": "https://github.com/88250/solo", "homepage": "https://github.com/88250/solo",
"repository": { "repository": {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<artifactId>solo</artifactId> <artifactId>solo</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Solo</name> <name>Solo</name>
<version>3.7.0</version> <version>3.8.0</version>
<description> <description>
一款小而美的博客系统,专为程序员设计。 一款小而美的博客系统,专为程序员设计。
</description> </description>
......
...@@ -60,7 +60,7 @@ public final class Server extends BaseServer { ...@@ -60,7 +60,7 @@ public final class Server extends BaseServer {
/** /**
* Solo version. * Solo version.
*/ */
public static final String VERSION = "3.7.0"; public static final String VERSION = "3.8.0";
/** /**
* Main. * Main.
......
...@@ -31,7 +31,7 @@ import org.json.JSONObject; ...@@ -31,7 +31,7 @@ import org.json.JSONObject;
* Upgrade service. * Upgrade service.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.1.15, Jan 13, 2020 * @version 1.2.1.16, Jan 16, 2020
* @since 1.2.0 * @since 1.2.0
*/ */
@Service @Service
...@@ -98,6 +98,8 @@ public class UpgradeService { ...@@ -98,6 +98,8 @@ public class UpgradeService {
V367_368.perform(); V367_368.perform();
case "3.6.8": case "3.6.8":
V368_370.perform(); V368_370.perform();
case "3.7.0":
V370_380.perform();
break; break;
default: default:
......
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-present, b3log.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.b3log.solo.upgrade;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.b3log.latke.ioc.BeanManager;
import org.b3log.latke.repository.Transaction;
import org.b3log.solo.model.Option;
import org.b3log.solo.repository.OptionRepository;
import org.json.JSONObject;
/**
* Upgrade script from v3.7.0 to v3.8.0.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Jan 16, 2020
* @since 3.8.0
*/
public final class V370_380 {
/**
* Logger.
*/
private static final Logger LOGGER = LogManager.getLogger(V370_380.class);
/**
* Performs upgrade from v3.7.0 to v3.8.0.
*
* @throws Exception upgrade fails
*/
public static void perform() throws Exception {
final String fromVer = "3.7.0";
final String toVer = "3.8.0";
LOGGER.log(Level.INFO, "Upgrading from version [" + fromVer + "] to version [" + toVer + "]....");
final BeanManager beanManager = BeanManager.getInstance();
final OptionRepository optionRepository = beanManager.getReference(OptionRepository.class);
try {
final Transaction transaction = optionRepository.beginTransaction();
final JSONObject versionOpt = optionRepository.get(Option.ID_C_VERSION);
versionOpt.put(Option.OPTION_VALUE, toVer);
optionRepository.update(Option.ID_C_VERSION, versionOpt);
transaction.commit();
LOGGER.log(Level.INFO, "Upgraded from version [" + fromVer + "] to version [" + toVer + "] successfully");
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Upgrade failed!", e);
throw new Exception("Upgrade failed from version [" + fromVer + "] to version [" + toVer + "]");
}
}
}
## v3.8.0 / 2020-01-16
### 引入特性
* [评论社区组件化](https://github.com/88250/solo/issues/18)
### 改进皮肤
* [皮肤 Casper 标签页标题显示异常](https://github.com/88250/solo/issues/43)
### 改进功能
* [移除计数相关数据填充和功能](https://github.com/88250/solo/issues/45)
### 修复缺陷
* [Jar 包运行时皮肤目录名问题](https://github.com/88250/solo/issues/41)
* [自定义表前缀后存档 404](https://github.com/88250/solo/issues/42)
## v3.7.0 / 2020-01-13 ## v3.7.0 / 2020-01-13
### 引入特性 ### 引入特性
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment