This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
Releases: siren-js/core
Releases · siren-js/core
v0.4.0
Added
stringify
andparse
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 andAction
'sget*
methods tofind*
Removed
- Query methods:
Entity.prototype.getActionsByClass()
Entity.prototype.getEntitiesByClass()
Entity.prototype.getLinksByClass()
v0.4.0-alpha.4
requiring hrefs to be URIs instead of URLs
v0.4.0-alpha.3
Update npm-publish.yaml
v0.4.0-alpha.2
Update build.yaml
v0.4.0-alpha.1
updating and standardizing README
v0.3.2
v0.3.1
Changed
- Tranpiling to CommonJS modules
v0.3.0
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
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 includesrel
- Generated type for
Entity.prototype.actions
- Type declarations for option objects (#4)
v0.1.2
Added
- Contribution guidelines
- Code of conduct
Fixed
- Corrected validation of
rel
inEmbeddedLink
's constructor; aTypeError
is still thrown, but now includes a better message. EmbeddedLink.isValid
now returnstrue
ifrel
is a string.