API Changes

Open
#711 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
api, backend

Research direction

This is a roadmap thread rather than a scoped implementation task, and it names no concrete files or tests. Start by reviewing the existing context APIs, legacy handler.ts plugin format, vjudge integration, and installed-plugin handling; the unchecked vjudge and checksum items need separate scope and acceptance criteria before work can be considered done.

Written by the indexing model from the issue text.

Description

本 issue 列出计划进行的重大 API 更改。
This thread will announce the planned breaking API changes.

  • sync with cordis upstream: ctx.using -> ctx.inject, ctx.inject -> ctx.injectUI (drop legacy support in next major version)
  • drop legacy plugin format (handler.ts) in next major version
  • vjudge: move to judge client side (calls to some builtin model will be prohibited, refactor will be required)
  • Hydro Global Variable: drop in next major version. Use context instead.
  • Introduce checksum to installed plugins

如果对如上修改有任何的建议,请在下方评论。
If you have any suggestions to those, comment below.

Dominant language
TypeScript
Stars
7.3k
Forks
504
Avg merge
11h 29m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hydro-dev/Hydro

All issues in hydro-dev/Hydro

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.