You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

json-as

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-as - npm Package Versions

j
jairussw
published 1.1.14-preview.2 •
j
jairussw
published 1.1.14-preview.1 •
j
jairussw
published 1.1.14 •

Changelog

Source

2025-05-29 - 1.1.14

  • fix: hotfix schema resolver
j
jairussw
published 1.1.13 •

Changelog

Source

2025-05-29 - 1.1.13

  • fix: small issues with schema linking
  • tests: add tests for schema linking and discovery
j
jairussw
published 1.1.12 •

Changelog

Source

2025-05-29 - 1.1.12

  • fix: add helpful warning on unknown or unaccessible types in fields
  • feat: support deserialization of class generics
  • fix: add support for numerical generics
  • tests: add proper testing for generics
  • feat: support type aliases with a custom type resolver/linker
  • chore: add other linkers to tsconfig and clean up
  • feat: add type alias resolving
j
jairussw
published 1.1.11 •

Changelog

Source

2025-05-28 - 1.1.11

  • fix: class resolving should only search top level statements for class declarations
  • fix: add helpful error if class is missing an @json decorator
  • fix: properly calculate relative path when json-as is a library
  • fix: add proper null check when resolving imported classes
j
jairussw
published 1.1.10 •

Changelog

Source

2025-05-28 - 1.1.10

  • feat: add more debug levels (1 = print transform code, 2 = print keys/values at runtime)
  • feat: add write out feature (JSON_WRITE=path-to-file.ts) which writes out generated code
  • fix: complete full parity between port and original version for correct deserialization of all types
  • feat: add proper schema resolution and dependency resolution
  • feat: add proper type resolution to schema fields
  • fix: properly calculate the relative path between imports to modules
j
jairussw
published 1.1.9 •

Changelog

Source

2025-05-27 - 1.1.9

  • change: strict mode is disabled by default. Enable it with JSON_STRICT=true
  • fix: should ignore properties of same length and type if no matching key exists
  • fix: should ignore properties of different type if no matching key exists
  • fix: should ignore complex properties if no matching key exists
j
jairussw
published 1.1.8 •

Changelog

Source

2025-05-27 - 1.1.8

  • feat: add support for calling JSON.stringify/JSON.parse methods inside of custom serializers, but not yet deserializers
j
jairussw
published 1.1.7 •

Changelog

Source

2025-05-27 - 1.1.7

  • fix: bad boolean logic to decide whether to add 2nd break statement