This commit is contained in:
wjqserver 2025-05-28 21:35:52 +08:00
parent 16b6b05fb8
commit 68bf51aaed
7 changed files with 11 additions and 9 deletions

View file

@ -1,10 +1,15 @@
# 更新日志
25w41b - 2025-05-28
---
- PRE-RELEASE: 此版本是v3.4.1预发布版本,请勿在生产环境中使用;
- CHANGE: 把json库替换到[sonic](github.com/bytedance/sonic)
25w41a - 2025-05-28
---
- PRE-RELEASE: 此版本是v3.4.1预发布版本,请勿在生产环境中使用;
- ADD: 为`errorpage`部分增加lru缓存, 避免重复渲染
- CHANGE: 替换到实验性的`encode/json/v2`
- CHANGE: 替换到实验性的`encoding/json/v2`
3.4.0 - 2025-05-21
---

View file

@ -1 +1 @@
25w41a
25w41b

View file

@ -7,7 +7,7 @@ import (
"strings"
"sync"
"github.com/go-json-experiment/json"
json "github.com/bytedance/sonic"
)
type Blacklist struct {

View file

@ -7,7 +7,7 @@ import (
"strings"
"sync"
"github.com/go-json-experiment/json"
json "github.com/bytedance/sonic"
)
// Whitelist 用于存储白名单信息

3
go.mod
View file

@ -14,7 +14,7 @@ require (
require (
github.com/WJQSERVER-STUDIO/go-utils/limitreader v0.0.2
github.com/go-json-experiment/json v0.0.0-20250517221953-25912455fbc8
github.com/bytedance/sonic v1.13.2
github.com/hashicorp/golang-lru/v2 v2.0.7
)
@ -22,7 +22,6 @@ require (
github.com/WJQSERVER-STUDIO/go-utils/copyb v0.0.4 // indirect
github.com/WJQSERVER-STUDIO/go-utils/log v0.0.3 // indirect
github.com/bytedance/gopkg v0.1.2 // indirect
github.com/bytedance/sonic v1.13.2 // indirect
github.com/bytedance/sonic/loader v0.2.4 // indirect
github.com/cloudwego/base64x v0.1.5 // indirect
github.com/cloudwego/gopkg v0.1.4 // indirect

2
go.sum
View file

@ -35,8 +35,6 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/go-json-experiment/json v0.0.0-20250517221953-25912455fbc8 h1:o8UqXPI6SVwQt04RGsqKp3qqmbOfTNMqDrWsc4O47kk=
github.com/go-json-experiment/json v0.0.0-20250517221953-25912455fbc8/go.mod h1:TiCD2a1pcmjd7YnhGH0f/zKNcCD06B029pHhzV23c2M=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=

View file

@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/go-json-experiment/json"
json "github.com/bytedance/sonic"
"ghproxy/config"
"ghproxy/weakcache"