Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/compare/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function compare({
['Comment', 'jldb:comment']
];

// show all properites
// show all properties
if(env === 'all') {
console.log();
console.log('## Environment');
Expand All @@ -158,7 +158,7 @@ async function compare({
}
}

// show present properites
// show present properties
if(env === 'present') {
console.log();
console.log('## Environment');
Expand Down
4 changes: 2 additions & 2 deletions lib/compact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions lib/jsonld.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ describe('events', () => {
eventCounts,
// event array
eventLog,
// parial event array
// partial event array
eventPartialLog,
// event code array
eventCodeLog,
Expand Down Expand Up @@ -4010,7 +4010,7 @@ _:b0 <ex:p> "v" .
});
});

it('should handle generlized RDF blank node predicates', async () => {
it('should handle generalized RDF blank node predicates', async () => {
const input =
[
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading