Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Releases: siren-js/core

v0.4.0

07 Oct 19:59
Compare
Choose a tag to compare

Added

  • stringify and parse functions for generating and parsing Siren JSON

Changed

  • Object creation now done via static factory methods (e.g., Entity.of({...}))
  • Validation is now done via class-validator
  • Renamed Entity's and Action's get* methods to find*

Removed

  • Query methods:
    • Entity.prototype.getActionsByClass()
    • Entity.prototype.getEntitiesByClass()
    • Entity.prototype.getLinksByClass()

v0.4.0-alpha.4

12 Sep 21:49
Compare
Choose a tag to compare
v0.4.0-alpha.4 Pre-release
Pre-release
requiring hrefs to be URIs instead of URLs

v0.4.0-alpha.3

10 Sep 22:02
Compare
Choose a tag to compare
v0.4.0-alpha.3 Pre-release
Pre-release
Update npm-publish.yaml

v0.4.0-alpha.2

10 Sep 21:52
Compare
Choose a tag to compare
v0.4.0-alpha.2 Pre-release
Pre-release
Update build.yaml

v0.4.0-alpha.1

10 Sep 21:46
Compare
Choose a tag to compare
v0.4.0-alpha.1 Pre-release
Pre-release
updating and standardizing README

v0.3.2

06 Jul 02:13
5d4b060
Compare
Choose a tag to compare

Changed

  • Explicitly mentioning cross-platform support in README

Fixed

  • #9 - Mentioning minimum TypeScript version in README
  • #10 - Link relation types are now compared in a case-insensitive fashion, per RFC 8288.

v0.3.1

26 Apr 23:29
ae7a489
Compare
Choose a tag to compare

Changed

  • Tranpiling to CommonJS modules

v0.3.0

26 Apr 21:17
46948e1
Compare
Choose a tag to compare

Added

  • Examples for using extensions
  • Documentation for TypeScript limitations

Changed

  • Code is now written in TypeScript to more easily manage type declarations. The API has not changed, but the code now transpiles to ES2015, which may cause compatibility issues.

Fixed

  • Extension support in TypeScript (#6)

v0.2.0

22 Apr 21:46
abe76d7
Compare
Choose a tag to compare

Added

  • Methods for looking up components:
    • Action.prototype.getFieldByName()
    • Action.prototype.getFieldsByClass()
    • Entity.prototype.getActionByName()
    • Entity.prototype.getActionsByClass()
    • Entity.prototype.getEntitiesByClass()
    • Entity.prototype.getEntitiesByRel()
    • Entity.prototype.getLinksByClass()
    • Entity.prototype.getLinksByRel()

Fixed

  • Serializing EmbeddedEntity now includes rel
  • Generated type for Entity.prototype.actions
  • Type declarations for option objects (#4)

v0.1.2

09 Apr 23:10
99f4ab3
Compare
Choose a tag to compare

Added

  • Contribution guidelines
  • Code of conduct

Fixed

  • Corrected validation of rel in EmbeddedLink's constructor; a TypeError is still thrown, but now includes a better message.
  • EmbeddedLink.isValid now returns true if rel is a string.