Skip to content

Commit 46e2a15

Browse files
chore: release v2.8.0 (#756)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c068f5a commit 46e2a15

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

CHANGELOG.md

+48
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,52 @@
11

2+
## [v2.8.0](https://github.com/ArtalkJS/Artalk/compare/v2.7.3...v2.8.0) (2024-01-31)
3+
4+
### Features
5+
6+
* **go:** upgrade golang to v1.21.5 and some deps
7+
* **notify:** add `notify_pending` config option ([#728](https://github.com/ArtalkJS/Artalk/issues/728)) ([#754](https://github.com/ArtalkJS/Artalk/issues/754))
8+
* **ui/admin:** add logout button in admin panel ([#488](https://github.com/ArtalkJS/Artalk/issues/488)) ([#753](https://github.com/ArtalkJS/Artalk/issues/753))
9+
10+
### Bug Fixes
11+
12+
* **cache:** unable to change admin list after caching ([#748](https://github.com/ArtalkJS/Artalk/issues/748)) ([#750](https://github.com/ArtalkJS/Artalk/issues/750))
13+
* **i18n:** sidebar language cannot be changed
14+
* **ui/editor:** prevent propagation of click event in editor ([#734](https://github.com/ArtalkJS/Artalk/issues/734))
15+
* **ui/layer:** unexpected behavior with multiple items when closing
16+
* **ui/lite:** correct the instance name for compiling ArtalkLite ([#740](https://github.com/ArtalkJS/Artalk/issues/740))
17+
* **ui/no_comment:** flickering when clearing list before fetch
18+
* **ui/pagination:** auto load list when scroll reaches bottom
19+
* **ui/sidebar:** incorrectly increasing pv count in sidebar ([#724](https://github.com/ArtalkJS/Artalk/issues/724))
20+
* **ui/sidebar_layer:** sidebar still displays when login is required
21+
22+
### Performance Improvements
23+
24+
* **ui/conf:** support for watching partial changes in config with `watchConf()` ([#755](https://github.com/ArtalkJS/Artalk/issues/755))
25+
* **ui/i18n:** refine some translation ([#743](https://github.com/ArtalkJS/Artalk/issues/743))
26+
* **ui/pagination:** replace the prev/next text on pagination buttons with icons ([#743](https://github.com/ArtalkJS/Artalk/issues/743))
27+
* **ui/sidebar:** prevent potential token leakage by clearing query in iframe url
28+
29+
### Code Refactoring
30+
31+
* **api:** update swagger file of API v2
32+
* **api:** refactor HTTP API to version 2 ([#735](https://github.com/ArtalkJS/Artalk/issues/735))
33+
* **transfer:** normalize transfer payload parameter name
34+
* **ui:** optimize init and update lifecycle events
35+
* **ui/comment:** rename class `Comment` to `CommentNode`
36+
* **ui/ctx:** add `getComments` and `getCommentNodes` in context ([#752](https://github.com/ArtalkJS/Artalk/issues/752))
37+
38+
### Documentation
39+
40+
* update multi-sites manual ([#747](https://github.com/ArtalkJS/Artalk/issues/747))
41+
42+
### BREAKING CHANGE
43+
44+
45+
For Developers: The HTTP API has now been updated to version v2, with a lot of adjustments made, such as changing to Restful API style, request type, request body, response body, etc. data structure, adding error response codes. You can refer to [#735](https://github.com/ArtalkJS/Artalk/issues/735) or https://artalk.js.org/http-api Please update all your existing clients to adapt to the new v2 server. The new base path is `/api/v2/`. The UI package's HTTP client has been implemented to auto-generate based on `Swagger.json`, and there have been a lot of adjustments to the `artalk.ctx.getApi()` related code. In addition, the HTTP API no longer enforces checks on the header's `Origin` and `Referer` (to implement strict isolation of different sites) but still maintains the original CORS origin check.
46+
47+
For General Users: Now all administrators have the same level of authority (there is no longer super admin authority), the function of assigning sub-administrators with independent scope authority to individual sites has been removed, which can simplify the HTTP server maintenance and implementation. Upgrading only requires updating the client and server application at the same time, and there are no additional operations.
48+
49+
250
## [v2.7.3](https://github.com/ArtalkJS/Artalk/compare/v2.7.2...v2.7.3) (2023-12-28)
351

452
### Features

docs/docs/code/ArtalkVersion.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"latest": "2.7.3"
2+
"latest": "2.8.0"
33
}

ui/artalk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "artalk",
3-
"version": "2.7.3",
3+
"version": "2.8.0",
44
"description": "A self-hosted comment system",
55
"keywords": [
66
"comment-system",

0 commit comments

Comments
 (0)