@blazetrails/rack-session
A session implementation for Rack, mirroring Ruby's rack-session
| Measure | Value |
|---|---|
| Rails counterpart | rack-session v2.1.1 |
| API methods matched | 100% (98 of 98) |
| Rails tests matched | 100% (82 of 82) |
| Ruby files ported | 4 |
| Ruby files unported | 0 |
| Measured at | fe89b44726 |
Gaps by file
No gaps recorded for this package.
Missing methods
None recorded for this package.
Unported Ruby files
Every compared Ruby file has a TypeScript file.
Deviation receipts
JSDoc receipt tags in the package's source, by the receipt each carries.
| Tag | PERMANENT | CONVERGEABLE | none |
|---|---|---|---|
@noRailsEquivalent | 4 | 0 | 0 |
@missingRailsCall | 3 | 0 | 0 |
@missingRailsArgs | 1 | 0 | 0 |
@inventedArm | 2 | 0 | 0 |
@inlinedFrom | 0 | 0 | 1 |
@internal | 0 | 0 | 43 |
Permanently skipped tests
inherited is deferred to own-property memo guards (ModelSchema.inherited) (1)
Ratified deviations
Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.
inherited is deferred to own-property memo guards (ModelSchema.inherited)
§ "Module mixins" says only inherited has no JS equivalent. JS has no hook that fires when class Child extends Parent is evaluated, so wherever Rails' inherited resets or seeds per-class state, trails defers it to the first read or first write on the subclass: a memo is answered only when it is an own property of the class being asked (Object.hasOwn(host, key)), so an inherited memo reads as unset — the observable state inherited's reset leaves behind — with nothing running at definition time. A lazy reset at first read would clobber memos written to the child before it, and a decorator or registration step on every model is invented Rails-facing surface. This is a genuine language shortcoming, ratified repo-wide; an own-property memo guard is the port of inherited, not a deviation to retire, and there is no story to port inherited as a hook.