Skip to content

Releases: chharvey/schemaorg-jsd

v0.17.1

28 Feb 20:53
Compare
Choose a tag to compare
  • updates & fixes

v0.17.0

25 Jan 20:31
Compare
Choose a tag to compare

Non-breaking:

  • refactor & update tests, code, and deps
  • now pass an options argument (optional) to sdoValidate, which is sent to Ajv

v0.16.0

12 Apr 05:34
Compare
Choose a tag to compare

v0.15.0

27 Feb 16:51
Compare
Choose a tag to compare

Breaking

  • sdo_jsd.getMetaSchemata() has been replaced with sdo_jsd.META_SCHEMATA, an already-resolved Promise
  • sdo_jsd.getSchemata() has been replaced with sdo_jsd.SCHEMATA, an already-resolved Promise
  • sdoValidate first param type is narrowed to JSONLDObject (previously JSONLDDocument) — you can still send in a JSON-LD document, but it will silently pass without throwing an error, even if invalid
  • if using ajv to 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.jsd and link to https://cdn.jsdelivr.net/gh/json-ld/[email protected]/schemas/jsonld-schema.json instead (exported as sdo_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, including requireJSON and some TypeScript interfaces
  • add TypeScript interfaces for some JSON types (JSON meta-schema and JSON-LD for rdfs:Classes and rdf:Propertys)

Fixes

  • the .details property of the error thrown by sdoValidate() 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

02 Feb 07:08
Compare
Choose a tag to compare

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

28 Nov 17:09
Compare
Choose a tag to compare
  • security patches & fixups

v0.13.0

26 Sep 07:46
Compare
Choose a tag to compare

New Features

  • add TypeScript types

New Content

  • Person#jobTitle
  • Offer#availabilityStarts
  • Offer#availabilityEnds
  • {Organization,Person}#memberOf
  • Organization#member
  • Person#affiliation
  • CreativeWork#publisher (#2, credit to @oillescas)

v0.12.0

23 Aug 04:16
Compare
Choose a tag to compare

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

21 May 19:54
Compare
Choose a tag to compare

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 x is a subproperty of schema y, then whenever a JSON object validates against x it must also validate against y.
  • make {Boolean,Integer,Number,Text}.jsd
  • make CreativeWork#position
  • make Place#photo

Fixes

  • #dateCreated range should include DateTime
  • update README
  • formatting updates

v0.10.0

30 Mar 23:42
Compare
Choose a tag to compare

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#potentialAction to be an array