js-message works with bundlers and without a bundler.
Bundlers resolve the bare js-message import normally. Native browser ESM resolves it through a standard import map, with no build or transpilation step.
Construction and loading
| ID | Focused check |
|---|---|
FUNC-01 | The constructor parses JSON text. |
FUNC-02 | load() preserves nested values and ignores extra keys. |
FUNC-03 | load() preserves an object data reference. |
FUNC-04 | The constructor preserves an object data reference. |
FUNC-05 | A serialized message round-trips through the constructor. |
Error recovery
| ID | Focused check |
|---|---|
FUNC-06 | Malformed JSON becomes a recoverable error envelope. |
FUNC-07 | Malformed errors remain informative after serialization. |
FUNC-08 | A message recovers after a failed load. |
One public lifecycle at a time.
Complete consumer journeys live in the Behavioral suite. Edge cases kept for historical compatibility live on the Regression page.