diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d79a813..e28c2a0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,10 @@ - Trading off some performance to align node and browser testing. - Moves some test setup code into config data and manifest. +### Fixed +- Fix [fromRdf#t0027](https://w3c.github.io/json-ld-api/tests/fromRdf-manifest.html#t0027) + and `useNativeTypes` handling. + ### Removed - **BREAKING**: Remove `application/nquads` alias for `application/n-quads`. @@ -273,7 +277,7 @@ ## 3.1.0 - 2020-04-15 ### Fixed -- Support recusrive scoped contexts. +- Support recursive scoped contexts. - Various EARL report updates. - Fixed `prependBase` to start path with a '/' for a zero length path if there is an authority in base. @@ -495,17 +499,17 @@ ### Changed - [rdf-canonize][] updated: - **BREAKING**: A fix was applied that makes the canonical output format - properly match the N-Triples canoncial format. This fixes the format to no + properly match the N-Triples canonical format. This fixes the format to no longer escape tabs in literals. This may cause canonical output from `jsonld.normalize()`/`jsonld.canonize()` to differ from previous versions depending on your literal data. If a backwards compatibility mode is needed please use 1.4.x and file an issue. - **BREAKING**: [rdf-canonize-native][] was removed as an indirect optional - dependency and the JavaScript implemenation is now the default. The former + dependency and the JavaScript implementation is now the default. The former `usePureJavaScript` flag was removed and a new `useNative` flag was added to force use of the native bindings. Higher level applications must explicitly install `rdf-canonize-native` to use this mode. Note that in - many cases the JavaScript implemenation will be *faster*. Apps should be + many cases the JavaScript implementation will be *faster*. Apps should be benchmarked before using the specialized native mode. - **NOTE**: The Travis-CI C++11 compiler update fixes are no longer needed when using jsonld.js! [rdf-canonize-native][] was updated to not use C++11 diff --git a/README.md b/README.md index b3052a99..9848deca 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ JavaScript. JSON, as specified in [RFC7159][], is a simple language for representing objects on the Web. Linked Data is a way of describing content across different documents or Web sites. Web resources are described using -IRIs, and typically are dereferencable entities that may be used to find +IRIs, and typically are dereferenceable entities that may be used to find more information, creating a "Web of Knowledge". [JSON-LD][] is intended to be a simple publishing method for expressing not only Linked Data in JSON, but for adding semantics to existing JSON. diff --git a/benchmarks/compare/compare.js b/benchmarks/compare/compare.js index f3f32011..8150d95d 100755 --- a/benchmarks/compare/compare.js +++ b/benchmarks/compare/compare.js @@ -137,7 +137,7 @@ async function compare({ ['Comment', 'jldb:comment'] ]; - // show all properites + // show all properties if(env === 'all') { console.log(); console.log('## Environment'); @@ -158,7 +158,7 @@ async function compare({ } } - // show present properites + // show present properties if(env === 'present') { console.log(); console.log('## Environment'); diff --git a/lib/compact.js b/lib/compact.js index 4aa11316..8fd82eac 100644 --- a/lib/compact.js +++ b/lib/compact.js @@ -377,7 +377,7 @@ api.compact = async ({ }); } - // recusively process array values + // recursively process array values for(const expandedItem of expandedValue) { // compact property and get container type const itemActiveProperty = api.compactIri({ @@ -713,7 +713,7 @@ api.compactIri = ({ value = value['@preserve'][0]; } - // prefer most specific container including @graph, prefering @set + // prefer most specific container including @graph, preferring @set // variations if(_isGraph(value)) { // favor indexmap if the graph is indexed diff --git a/lib/context.js b/lib/context.js index 2d282f84..f9fdcc84 100644 --- a/lib/context.js +++ b/lib/context.js @@ -379,7 +379,7 @@ api.process = async ({ } } - // Note: this could potenially conflict if the import + // Note: this could potentially conflict if the import // were used in the same active context as a referenced // context and an import. In this case, we // could override the cached result, but seems unlikely. diff --git a/lib/events.js b/lib/events.js index 8650b9f6..89c32f17 100644 --- a/lib/events.js +++ b/lib/events.js @@ -53,7 +53,7 @@ api.setupEventHandler = ({options = {}}) => { * should be called to let the next handler process the event. * * NOTE: Only call this function if options.eventHandler is set and is an - * array of hanlers. This is an optimization. Callers are expected to check + * array of handlers. This is an optimization. Callers are expected to check * for an event handler before constructing events and calling this function. * * @param {object} event - event structure: diff --git a/lib/jsonld.js b/lib/jsonld.js index 0a001b72..b420e42d 100644 --- a/lib/jsonld.js +++ b/lib/jsonld.js @@ -121,7 +121,8 @@ const _resolvedContextCache = new LRU({max: RESOLVED_CONTEXT_CACHE_MAX_SIZE}); * expansion, false not to, defaults to false. Some well-formed * and safe-mode checks may be omitted. * [documentLoader(url, options)] the document loader. - * [framing] true if compaction is occuring during a framing operation. + * [framing] true if compaction is occurring during a framing + * operation. * [safe] true to use safe mode. (default: false) * [contextResolver] internal use only. * @@ -1022,7 +1023,7 @@ jsonld.util = util; // backwards compatibility Object.assign(jsonld, util); -// reexpose API as jsonld.promises for backwards compatability +// reexpose API as jsonld.promises for backwards compatibility jsonld.promises = jsonld; // backwards compatibility diff --git a/tests/misc.js b/tests/misc.js index b9ebbbc3..2d8c8cf7 100644 --- a/tests/misc.js +++ b/tests/misc.js @@ -548,7 +548,7 @@ describe('events', () => { eventCounts, // event array eventLog, - // parial event array + // partial event array eventPartialLog, // event code array eventCodeLog, @@ -4010,7 +4010,7 @@ _:b0 "v" . }); }); - it('should handle generlized RDF blank node predicates', async () => { + it('should handle generalized RDF blank node predicates', async () => { const input = [ { diff --git a/tests/test.js b/tests/test.js index 005c8ed3..dc9d82cd 100644 --- a/tests/test.js +++ b/tests/test.js @@ -4,7 +4,7 @@ * Use environment vars to control: * * General: - * Boolean env options enabled with case insensitve values: + * Boolean env options enabled with case insensitive values: * 'true', 't', 'yes', 'y', 'on', '1', similar for false * Set dirs, manifests, or js to run: * TESTS="r1 r2 ..." diff --git a/webpack.config.js b/webpack.config.js index 58e14b7c..f6f34585 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,7 +17,7 @@ module.exports = []; // all built files will export the "jsonld" library but with different content const outputs = [ // core jsonld library (standard) - // larger version for wide compatibilty + // larger version for wide compatibility { entry: [ // main lib