Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.x changes and more #74

Merged
merged 76 commits into from
Nov 16, 2023
Merged

3.x changes and more #74

merged 76 commits into from
Nov 16, 2023

Conversation

davidlehn
Copy link
Member

  • Staging PR for main.
  • Starting with cherry-pick of changes from the 3.x branch including the canonicalIdMap feature. Cherry-pick was used instead of a merge commit by request. Future 3.x changes will be cherry picked as needed.

dlongley and others added 20 commits June 6, 2023 23:15
- Add `inputFormat` option.
- Use "application/n-quads" for a N-Quads string that will be parsed.
- Omit option for a JSON dataset or legacy dataset.
- This can simplify a common case of using the internal parser to
  generate a dataset.
Co-authored-by: Dave Longley <dlongley@digitalbazaar.com>
The `inputFormat` change can break callers that mistakenly pass in an
incorrect `inputFormat`. jsonld.js was doing this. Backing this out for
now and it will be added to a future major version release.
- Add testing on Node.js 20.x.
- Run tools on 20.x.
This reverts commit 0c3118a.
- Move restored `inputFormat` text to the latest version.
- Fixes Node.js 20.x issues.
- Add eslint jsdoc support.
- Fix lint issues.
**BREAKING**: Change "URDNA2015" to "RDFC-1.0" to match latest spec
changes. Use of "URDNA2015" as a named algorithm option is now
deprecated and will cause a warning.
- Add docs.
- Add Algorithm Support docs.
- Add URDNA2015 Migration docs.
- Add migration tools:
  - Undocumented "rejectURDNA2015" API option to not allow URDNA2015.
    - Allows concerned code to explicitly fail in potential edge cases.
  - Global "RDF_CANONIZE_TRACE_URDNA2015" to trace URDNA2015 use.
    - Allows developers to find deep usage of URDNA2015 more easily.
  - These may exist as long as the URDNA2015 alias support exists. Both
    are not expected to have security implications.
davidlehn and others added 25 commits September 19, 2023 16:36
**BREAKING**: Check output `format` parameter. Must be omitted, falsey,
or "application/n-quads".
- Remove advanced "useNative" example.
- Add common N-Quads input example.
- Add `maxWorkFactor` to calculate `maxDeepIterations` based on
  non-unique blank nodes. Default to `1`.
- If `maxDeepIterations` is >= 0 then use it explicitly.
- Remove default timeout signal.
- Add docs.
- Add tests.
- Update async and sync versions.
- Update tests to handle `computationalComplexity` test paramter and map
  it to `maxWorkFactor` adjustments.
- Improve negative test handling.
Add support for generalized RDF `BlankNode` predicate during N-Quads
serialization.
Co-authored-by: Dave Longley <dlongley@digitalbazaar.com>
- Fix maxWorkFactor === 0 use case.
- Improve error if N-Quads input not a string.
- Fix calls without options.
- Test error messages to ensure correct errors are thrown.
- Remove default options not needed for testing.
- Add various tests for complexity controls, edge cases, and coverage.
- Add simple duplicate quads test.
- Rename `URDNA2015.js` to `RDFC10.js`.
- Rename 'URDNA2015` class to `RDFC10`.
- Rename `URDNA2015Sync.js` to `RDFC10Sync.js`.
- Rename 'URDNA2015Sync` class to `RDFC10Sync`.
- Add package.json section.
- Add instructions.
- Add simple invalid N-Quads test.
- Start of IRI escaping test.
When set to truthy string will setup tests that are run for official
test result reports.
@davidlehn davidlehn merged commit c78ecf9 into main Nov 16, 2023
6 checks passed
@davidlehn davidlehn deleted the main-with-3.4.0 branch November 16, 2023 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants