You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2020/06/18 15:45:43 UTC
[incubator-annotator] branch master updated (353d041 -> 2124faa)
This is an automated email from the ASF dual-hosted git repository.
gerben pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.
from 353d041 Merge branch 'typescript'
add 127986b Set up jsdom in mocha to test dom package
add 44691fd First test for text quote matching
add 2e2ddcd Use XPaths to serialise Ranges
add f124bc4 Simplify that a lot.
add 4d25cfc Add a few more cases.
add e4bf6ae Refactor helper functions
add f4f3755 More tests — some failing
add 6e89537 Make reporting of failed tests more readable.
add 69bfb00 Update to dom-seek v5, improve its type declaration
add 786cc22 Remove dom-node-iterator polyfill
add 8f4251c Fix failing test case
add 040d860 Simplify skipping of empty text nodes
add 84aedb0 Remove superfluous seek, tidy up code
add a260449 Add tests with prefix, suffix, no matches
add f9a9467 Move test cases into own file
add ab005d5 Test if describe inverts test cases for match
add a1e7eb2 Simple (but failing!) tests for minimal prefix+suffix
add bf22fe2 Some fixes to satisfy tests
add 771b9a3 Fix & simplify implementation of describeTextQuote
add 1ae61df Make match & describe handle empty quotes ‘correctly’
add 0685f6b Test with custom/empty scopes and fix revealed mistakes
add e5b7c8e Rename test files to end with '.test.ts'
add dd005d5 Organise folder structure
add e39f489 Simplify demo’s use of describeTextQuote
add 186fb93 Add some licence headers.
new 072fb59 Merge branch 'dom-tests'
new 2124faa update yarn.lock
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.mocharc.js | 2 +-
@types/dom-node-iterator/index.d.ts | 4 -
@types/dom-seek/index.d.ts | 2 +-
package.json | 6 +-
packages/dom/package.json | 3 +-
packages/dom/src/index.ts | 2 +-
packages/dom/src/{ => range}/cartesian.ts | 0
packages/dom/{test/index.js => src/range/index.ts} | 2 +-
packages/dom/src/{range.ts => range/match.ts} | 6 +-
packages/dom/src/text-quote/describe.ts | 195 +++++------
packages/dom/src/text-quote/index.ts | 2 +-
packages/dom/src/text-quote/match.ts | 89 ++----
.../test/{cartesian.ts => range/cartesian.test.ts} | 2 +-
packages/dom/test/text-quote/describe-cases.ts | 138 ++++++++
packages/dom/test/text-quote/describe.test.ts | 95 ++++++
packages/dom/test/text-quote/match-cases.ts | 355 +++++++++++++++++++++
packages/dom/test/text-quote/match.test.ts | 214 +++++++++++++
packages/dom/test/text-quote/utils.ts | 45 +++
test/{data-model.ts => data-model.test.ts} | 0
web/demo/index.js | 8 +-
web/webpack.config.js | 2 +-
yarn.lock | 327 +++++++++++++++++--
22 files changed, 1294 insertions(+), 205 deletions(-)
delete mode 100644 @types/dom-node-iterator/index.d.ts
rename packages/dom/src/{ => range}/cartesian.ts (100%)
rename packages/dom/{test/index.js => src/range/index.ts} (97%)
rename packages/dom/src/{range.ts => range/match.ts} (91%)
rename packages/dom/test/{cartesian.ts => range/cartesian.test.ts} (96%)
create mode 100644 packages/dom/test/text-quote/describe-cases.ts
create mode 100644 packages/dom/test/text-quote/describe.test.ts
create mode 100644 packages/dom/test/text-quote/match-cases.ts
create mode 100644 packages/dom/test/text-quote/match.test.ts
create mode 100644 packages/dom/test/text-quote/utils.ts
rename test/{data-model.ts => data-model.test.ts} (100%)
[incubator-annotator] 01/02: Merge branch 'dom-tests'
Posted by ge...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gerben pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 072fb596b5f1a7340220913419c6d9c1d9b4ba93
Merge: 353d041 186fb93
Author: Gerben <ge...@treora.com>
AuthorDate: Thu Jun 18 16:25:33 2020 +0200
Merge branch 'dom-tests'
.mocharc.js | 2 +-
@types/dom-node-iterator/index.d.ts | 4 -
@types/dom-seek/index.d.ts | 2 +-
package.json | 6 +-
packages/dom/package.json | 3 +-
packages/dom/src/index.ts | 2 +-
packages/dom/src/{ => range}/cartesian.ts | 0
packages/dom/{test/index.js => src/range/index.ts} | 2 +-
packages/dom/src/{range.ts => range/match.ts} | 6 +-
packages/dom/src/text-quote/describe.ts | 195 +++++------
packages/dom/src/text-quote/index.ts | 2 +-
packages/dom/src/text-quote/match.ts | 89 ++----
.../test/{cartesian.ts => range/cartesian.test.ts} | 2 +-
packages/dom/test/text-quote/describe-cases.ts | 138 ++++++++
packages/dom/test/text-quote/describe.test.ts | 95 ++++++
packages/dom/test/text-quote/match-cases.ts | 355 +++++++++++++++++++++
packages/dom/test/text-quote/match.test.ts | 214 +++++++++++++
packages/dom/test/text-quote/utils.ts | 45 +++
test/{data-model.ts => data-model.test.ts} | 0
web/demo/index.js | 8 +-
web/webpack.config.js | 2 +-
yarn.lock | 325 +++++++++++++++++--
22 files changed, 1293 insertions(+), 204 deletions(-)
[incubator-annotator] 02/02: update yarn.lock
Posted by ge...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gerben pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 2124faae7ea8dcfaa8b527fd994ce2ea707232c4
Author: Gerben <ge...@treora.com>
AuthorDate: Thu Jun 18 16:28:03 2020 +0200
update yarn.lock
---
yarn.lock | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yarn.lock b/yarn.lock
index fcfea75..c46a680 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5300,7 +5300,7 @@ har-schema@^2.0.0:
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=
-har-validator@~5.1.0:
+har-validator@~5.1.0, har-validator@~5.1.3:
version "5.1.3"
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080"
integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==
@@ -9950,7 +9950,7 @@ toidentifier@1.0.0:
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==
-tough-cookie@^2.3.3:
+tough-cookie@^2.3.3, tough-cookie@~2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==