@typeonce/oxlint-plugin-ritmo 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/rules/handle-tick-result.d.ts +1 -1
- package/dist/rules/handle-tick-result.js +1 -1
- package/dist/rules/prefix-descriptor-and-system-names.d.ts +2 -2
- package/dist/rules/prefix-descriptor-and-system-names.js +2 -2
- package/package.json +1 -1
- package/src/rules/handle-tick-result.ts +1 -1
- package/src/rules/prefix-descriptor-and-system-names.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @typeonce/oxlint-plugin-ritmo
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
## 0.11.0
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- e46f284: **Documentation pass over every public module.** Every export has JSDoc saying what it is for and which neighbouring API to use instead; examples that no longer compiled (`Session.make` without `hostClock`, `Replay.session`, the `Pointer` rebind) are fixed; `Debug.Lint` lists every lint code the runtime emits. The `stale-target` lint's fix now names `queries.x.getHandle(handle)`.
|
|
10
|
+
|
|
3
11
|
## 0.10.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -120,7 +120,7 @@ The simulation runs in tests, bots, replays, and on servers, where there is no p
|
|
|
120
120
|
|
|
121
121
|
| Reported | Setup instead |
|
|
122
122
|
|---|---|
|
|
123
|
-
| Page globals: `window`, `document`, `navigator`, `matchMedia`, ... | Capture input in the host with `Keyboard`, `Pointer`, or `Touch` from `@typeonce/ritmo-browser` and `InputCapture` into a resource that systems read. Pass page state (size, settings) in with `runtime.send(...)` or a resource. |
|
|
123
|
+
| Page globals: `window`, `document`, `navigator`, `matchMedia`, ... | Capture input in the host with `Keyboard`, `Gamepad`, `Pointer`, or `Touch` (merged with `Controls`) from `@typeonce/ritmo-browser` and `InputCapture` into a resource that systems read. Pass page state (size, settings) in with `runtime.send(...)` or a resource. |
|
|
124
124
|
| Host I/O: `localStorage`, `fetch`, `WebSocket`, `location`, ... | Do the I/O in host code and pass the result in with `runtime.send(...)` or a resource. Save and load the world in the host with `runtime.snapshot()` and `runtime.restore(...)`. |
|
|
125
125
|
| Renderer and UI imports, types included: `pixi.js`, `three`, `@typeonce/ritmo-render`, `react`, `preact`, ... | Draw from a render schedule in render code: mirror entities into nodes with `RenderSync` and a `NodeRegistry` from `@typeonce/ritmo-render`, and declare renderer services (a node registry) and their types there; renderer nodes stay in the registry, never in components. The schema and simulation systems name no renderer type, so another renderer can replace this one. |
|
|
126
126
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineRule } from "@oxlint/plugins";
|
|
2
2
|
import { calledMethod, docsUrl, receiverName } from "../internal/ast.js";
|
|
3
3
|
/**
|
|
4
|
-
* The result of `runtime.tick(...)` and `
|
|
4
|
+
* The result of `runtime.tick(...)`, `tryTick(...)`, and `restore(...)` is read: a
|
|
5
5
|
* failed system or an invalid save comes back as data, and dropping it hides
|
|
6
6
|
* the failure.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Names Ritmo registers (descriptors, systems, state machines, scopes,
|
|
3
|
-
* plugin systems) carry a
|
|
4
|
-
* packages it uses never clash.
|
|
3
|
+
* plugin systems) carry a `<Game>/` prefix (the game's or package's name),
|
|
4
|
+
* so names from a game and from the packages it uses never clash.
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: import("@oxlint/plugins").Rule;
|
|
7
7
|
export default _default;
|
|
@@ -35,8 +35,8 @@ const namesIn = (node) => {
|
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* Names Ritmo registers (descriptors, systems, state machines, scopes,
|
|
38
|
-
* plugin systems) carry a
|
|
39
|
-
* packages it uses never clash.
|
|
38
|
+
* plugin systems) carry a `<Game>/` prefix (the game's or package's name),
|
|
39
|
+
* so names from a game and from the packages it uses never clash.
|
|
40
40
|
*/
|
|
41
41
|
export default defineRule({
|
|
42
42
|
meta: {
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ interface Options {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* The result of `runtime.tick(...)` and `
|
|
10
|
+
* The result of `runtime.tick(...)`, `tryTick(...)`, and `restore(...)` is read: a
|
|
11
11
|
* failed system or an invalid save comes back as data, and dropping it hides
|
|
12
12
|
* the failure.
|
|
13
13
|
*/
|
|
@@ -40,8 +40,8 @@ const namesIn = (node: ESTree.CallExpression): ReadonlyArray<ESTree.Node> => {
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Names Ritmo registers (descriptors, systems, state machines, scopes,
|
|
43
|
-
* plugin systems) carry a
|
|
44
|
-
* packages it uses never clash.
|
|
43
|
+
* plugin systems) carry a `<Game>/` prefix (the game's or package's name),
|
|
44
|
+
* so names from a game and from the packages it uses never clash.
|
|
45
45
|
*/
|
|
46
46
|
export default defineRule({
|
|
47
47
|
meta: {
|