Releases: chharvey/schemaorg-jsd
Releases · chharvey/schemaorg-jsd
Release list
v0.17.1
v0.17.0
v0.16.0
- type-only imports
- update dependencies
- clean code
- fix security vulns
v0.15.0
Breaking
-
sdo_jsd.getMetaSchemata()has been replaced withsdo_jsd.META_SCHEMATA, an already-resolved Promise -
sdo_jsd.getSchemata()has been replaced withsdo_jsd.SCHEMATA, an already-resolved Promise -
sdoValidatefirst param type is narrowed toJSONLDObject(previouslyJSONLDDocument) — you can still send in a JSON-LD document, but it will silently pass without throwing an error, even if invalid - if using
ajvto validate your own schema, must call.addSchema(await sdo_jsd.JSONLD_SCHEMA)before calling.addSchema(await sdo_jsd.SCHEMATA)since that is now excluded from the codebase (see README for details) - remove file
/schema/json-ld.jsdand link to https://cdn.jsdelivr.net/gh/json-ld/json-ld.org@1.0/schemas/jsonld-schema.json instead (exported assdo_jsd.JSONLD_SCHEMA)
Features
- export Schema.org vocabulary interfaces along with index file:
// import * as sdo from 'schemaorg-jsd/dist/schemaorg.d' // old way import * as sdo from 'schemaorg-jsd' // new way
- migrate some core functionality to
@chharvey/requirejson, includingrequireJSONand some TypeScript interfaces - add TypeScript interfaces for some JSON types (JSON meta-schema and JSON-LD for
rdfs:Classes andrdf:Propertys)
Fixes
- the
.detailsproperty of the error thrown bysdoValidate()now contains all the validation errors, instead of just the first one - update docs
- simplify gulp build tasks
- TypeScript v3.3
- Gulp v4
v0.14.0
Features
New Content
Classes
-
HowTo -
LocalBusiness -
LodgingBusiness -
Recipe
Properties
-
agent -
availableLanguage -
checkinTime -
checkoutTime -
currenciesAccepted -
openingHours -
paymentAccepted -
petsAllowed -
priceRange -
recipeIngredient -
recipeYield -
starRating -
yield
Changed
- add
Action#agent
v0.13.1
v0.13.0
v0.12.0
Features
New Content
- CompoundPriceSpecification
- PriceSpecification
- UnitPriceSpecification
- WebPageElement
- Website
- creator
- funder (sub of sponsor)
- maxPrice
- minPrice
- organizer
- price
- priceComponent
- priceCurrency
- priceSpecification
- text
Fixes
- dependency updates
v0.11.0
Programmatic Features
- all properties are documented as global (i.e. no longer belonging to specific classes)
- BREAKING: revamped API
- more consistent documentation back-end
- document sub- and super-properties
Content Features
- BREAKING: subproperties: if schema
xis a subproperty of schemay, then whenever a JSON object validates againstxit must also validate againsty. - make
{Boolean,Integer,Number,Text}.jsd - make
CreativeWork#position - make
Place#photo
Fixes
-
#dateCreatedrange should includeDateTime - update README
- formatting updates
v0.10.0
New Content
Classes
- Accommodation
- AdministrativeArea
- City
- Country
- State
Properties
- Event#{performer,subEvent,superEvent}
- Thing#{disambiguatingDescription,sameAs}
- {Place,Organization}#event
- {CreativeWork,Event,Organization,Person}#sponsor
Fixes
- fix an error disallowing
Thing#potentialActionto be an array