Skip to content

@blazetrails/rack-session ​

A session implementation for Rack, mirroring Ruby's rack-session

MeasureValue
Rails counterpartrack-session v2.1.1
API methods matched100% (98 of 98)
Rails tests matched100% (82 of 82)
Ruby files ported4
Ruby files unported0
Measured atfe89b44726

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.

TagPERMANENTCONVERGEABLEnone
@noRailsEquivalent400
@missingRailsCall300
@missingRailsArgs100
@inventedArm200
@inlinedFrom001
@internal0043

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.

CLAUDE.md →

Source ​

packages/rack-session on GitHub →