bump version

This commit is contained in:
undefined committed 2024-11-13 11:31:34 +08:00
1 parent 4bf52b32fa
commit 7c98899987
8 files changed
+22 -14

No files matched your search

+10 -1
View File
@@ -111,6 +111,16 @@ Hydro 用户群:1085853538
<details> <details>
<summary><h2>更新日志(点击展开)</h2></summary> <summary><h2>更新日志(点击展开)</h2></summary>
## Hydro 4.17.4 / UI 4.55.3
- core: 修复 markdown 模式下使用 HTML 导入时解析异常
- core: 允许复制引用的题目
- core&judge: 添加 trusted 选项
- core: 修复导入用户 metadata 解析
- core: 修改 pid 校验格式
- ui: 禁用自动播放
- core: 题目列表性能优化
## Hydro 4.17.3 / UI 4.55.2 ## Hydro 4.17.3 / UI 4.55.2
- core: 限制显示名长度 - core: 限制显示名长度
@@ -124,7 +134,6 @@ Hydro 用户群:1085853538
- core: 支持 StorageModel.copy 和 StorageModel.exists - core: 支持 StorageModel.copy 和 StorageModel.exists
- core: 弃用 ProblemModel.list - core: 弃用 ProblemModel.list
- core: 添加 user/import/parse 和 user/import/create 钩子 - core: 添加 user/import/parse 和 user/import/create 钩子
- core: 优化题目列表查询性能
## Hydro 4.16.0 / UI 4.54.3 ## Hydro 4.16.0 / UI 4.54.3
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/framework", "name": "@hydrooj/framework",
"version": "0.1.2", "version": "0.1.3",
"main": "index.ts", "main": "index.ts",
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
+5 -5
View File
@@ -141,8 +141,8 @@ export class HandlerCommon {
url(name: string, ...kwargsList: Record<string, any>[]) { url(name: string, ...kwargsList: Record<string, any>[]) {
if (name === '#') return '#'; if (name === '#') return '#';
let res = '#'; let res = '#';
const args: any = {}; const args: any = Object.create(null);
const query: any = {}; const query: any = Object.create(null);
for (const kwargs of kwargsList) { for (const kwargs of kwargsList) {
for (const key in kwargs) { for (const key in kwargs) {
args[key] = kwargs[key].toString().replace(/\//g, '%2F'); args[key] = kwargs[key].toString().replace(/\//g, '%2F');
@@ -325,14 +325,14 @@ export interface WebServiceConfig {
} }
export class WebService extends Service { export class WebService extends Service {
private registry: Record<string, any> = {}; private registry: Record<string, any> = Object.create(null);
private registrationCount = Counter(); private registrationCount = Counter();
private serverLayers = []; private serverLayers = [];
private handlerLayers = []; private handlerLayers = [];
private wsLayers = []; private wsLayers = [];
private captureAllRoutes = {}; private captureAllRoutes = Object.create(null);
renderers: Record<string, RendererFunction> = {}; renderers: Record<string, RendererFunction> = Object.create(null);
server = koa; server = koa;
router = router; router = router;
HandlerCommon = HandlerCommon; HandlerCommon = HandlerCommon;
+2 -3
View File
@@ -20,7 +20,7 @@ import { compilerText, md5 } from './utils';
const logger = new Logger('judge'); const logger = new Logger('judge');
export class JudgeTask { export class JudgeTask {
stat: Record<string, Date>; stat: Record<string, Date> = Object.create(null);
source: string; source: string;
rid: string; rid: string;
lang: string; lang: string;
@@ -38,7 +38,6 @@ export class JudgeTask {
callbackCache?: TestCase[]; callbackCache?: TestCase[];
constructor(public session: Session, public request: JudgeRequest) { constructor(public session: Session, public request: JudgeRequest) {
this.stat = {};
this.stat.receive = new Date(); this.stat.receive = new Date();
logger.debug('%o', request); logger.debug('%o', request);
} }
@@ -112,7 +111,7 @@ export class JudgeTask {
next: this.next, next: this.next,
isSelfSubmission: this.meta.problemOwner === this.request.uid, isSelfSubmission: this.meta.problemOwner === this.request.uid,
key: md5(`${this.source}/${getConfig('secret')}`), key: md5(`${this.source}/${getConfig('secret')}`),
trusted: this.request.trusted, trusted: this.request.trusted && this.session.config.trusted,
lang: this.lang, lang: this.lang,
langConfig: (this.request.type === 'generate' || ['objective', 'submit_answer'].includes(this.request.config.type)) langConfig: (this.request.type === 'generate' || ['objective', 'submit_answer'].includes(this.request.config.type))
? null : this.session.getLang(this.lang), ? null : this.session.getLang(this.lang),
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "4.17.3", "version": "4.17.4",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/plugin-api", "main": "src/plugin-api",
"module": "src/plugin-api", "module": "src/plugin-api",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.55.2", "version": "4.55.3",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "index.ts", "main": "index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/utils", "name": "@hydrooj/utils",
"version": "1.4.29", "version": "1.4.30",
"description": "hydrooj utils", "description": "hydrooj utils",
"main": "lib/utils.ts", "main": "lib/utils.ts",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/vjudge", "name": "@hydrooj/vjudge",
"version": "1.9.13", "version": "1.9.14",
"description": "Submit problems to remote oj", "description": "Submit problems to remote oj",
"main": "./src/index.ts", "main": "./src/index.ts",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",