🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-as

Package Overview
Dependencies
Maintainers
1
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-as - npm Package Versions

1345
20

1.1.14

Diff
jairussw
published 1.1.14 •

Changelog

Source

2025-05-29 - 1.1.14

  • fix: hotfix schema resolver
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
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
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
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
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
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
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
jairussw
published 1.1.6 •

Changelog

Source

2025-05-23 - 1.1.6

  • fix: null and boolean fields would miscalculate offsets when deserializing
jairussw
published 1.1.5 •

Changelog

Source

2025-05-23 - 1.1.5

  • fix: index.js didn't point to correct file, thus creating a compiler crash