Skip to content

Releases: ruby-rdf/json-ld

Release 3.3.2

29 Jul 22:15
Compare
Choose a tag to compare
  • CI on Ruby 3.3.
  • Point to release notes in README.
  • Explicit dependency for getoptlong.
  • Add SCRIPT_LOADERS and API.add_script_loader to allow alternate formats (e.g., YAML-LD) to define loaders for extracting script content.
  • Fix logic on retaining protected term definitions if redefined equivalently.
  • Pass extractAllScripts to documentLoader.
  • In load_html, load scripts from all matched types, not just the first.
  • The extractAllScripts should default to false in flatten.
  • When compacting @type or @language maps, account for compacted_item not being a Hash. (Fixes #62)

Release 3.3.1

04 Dec 21:22
Compare
Choose a tag to compare

Use version 1.0.0 of the json-canonicalization gem.

Release 3.3.0

01 Sep 20:11
Compare
Choose a tag to compare
  • Don't check simple when comparing term definitions. (Relates to w3c/json-ld-api#570).
  • Simplify dependencies.
  • Updates for version 3.3 with minimum Ruby version 3.0.

Release 3.2.5

02 May 20:02
Compare
Choose a tag to compare
  • Enhance code lisibility @abrisse
  • Add URI constants @abrisse
  • Enhance performance @abrisse
  • Optimize Context memory usage @abrisse
  • In Context#gen_vocab, require 'rdf/vocab', and use RDF::Vocab::SCHEMA instead of RDF::SCHEMA.
  • Update dependency on json-canonicalization for Rails interop.

Release 3.2.4

15 Apr 20:57
Compare
Choose a tag to compare
  • Separate RDF::Literal handling from Context#expand_value directly into FromRDF#resource_representation.
  • Pass through RDF literals in ToRDF#item_to_rdf.
  • Use internalRepresentation option in fromRdf to preserve raw RDF literals as values.
  • Use context loader when loading contexts.
  • Add allowed_content_types keyword argument to loadRemoteDocument to allow additional content types to be considered valid.
  • Add Context#to_rb tests, and make sure preloaded context has a context_base.
  • Update dependencies and relax dependencies on rack and sinatra.
  • fix(performance): comment all log_debug (@abrisse)

Release 3.2.3

07 Aug 22:25
Compare
Choose a tag to compare
  • Update serializer to use any serializer_opts option passed, which defaults to JSON_STATE.
  • Consolidate CLI command processing and allow for other formats than :jsonld. This allows for YAML-LD to re-used the same commands.

Release 3.2.2

04 Aug 20:51
Compare
Choose a tag to compare
  • Add serializer option to API methods and Writer to be able to specify the proc to use when serializing to JSON.
    • Useful for serializing to formats other than JSON.
    • Don't serialize when API methods are used internally.

Release 3.2.1

11 May 20:46
Compare
Choose a tag to compare
  • Mark quoted statements as such.
  • Update documentation links to use gh-pages, and add action to publish gh-pages from Yard docs.
  • Define the format URI to http://www.w3.org/ns/formats/JSON-LD.
  • CI on Windows.
  • When expanding, don't delete @context from input. Fixes #54.

Release 3.2.0

29 Dec 22:52
Compare
Choose a tag to compare
  • Minimum Ruby version now 2.6.
  • Fix reading @processingMode in context.

Release 3.1.10

26 Sep 20:03
Compare
Choose a tag to compare
  • Check for dot segments finding base and parents.
  • Add minor change to compaction algorith to expand property index before compacting it.
  • Better account for context_base when loading a scoped context.