This is an automated email from the ASF dual-hosted git repository.
gerben pushed a change to branch simpler-matcher-creation
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.
from d896d01 Make rangeSelector work as a plugin
add decfe8c Restrict DOM scopes to be instances of Range
add f4adabd Reintroduce ownerDocument(), now in util.ts
add b118253 Remove the no-relative-parent-imports eslint rule.
add 983f005 Fix default scope in describeTextQuote
add e5f3d46 Fix some references to global `document`
add 14df40f Delete unused types.ts
add 1d8ca69 Rename util.ts→owner-document.ts
add 267bbcb Merge pull request #88 from apache/range-as-dom-scope
add 9e36aaf Fix forgotten scope→Range change
add 934746a Fix describeTextQuote’s clipping range to scope
add 83e00f8 Fix spec mismatch: RangeSelector’s start is inclusive.
add 871e51d Support multi-selection in demo
add 6a790ff Update test names and tweak some tests.
add f9ce4f6 Update .travis.yml to only build master branch
add 8823057 Change approach to choose prefix/suffix.
add 35d3ebe More performance tweaking
add 486c59f Add test, fix bug
add 8300e73 Inline helper function
add 3e8a105 Merge pull request #93 from apache/faster-describeTextQuote
add db32ad5 Update babel to support "import * as" syntax
add 8934df0 Add apache-annotator meta-package
add 6221881 Merge pull request #94 from apache/meta-package
add 311e8db Remove core-js dependency
add 9eb9774 Autofix lint
add 23e0754 Add directory entries to package repository metadata
add 3f1243e Add meta-package reference to top-level tsconfig.json solution
add 363b360 Resolve sources to absolute filenames for development and
testing
add 66edfaf Make the build concurrent
add 18a1df0 Forbid importing absolute paths
add c5963bb Update the import order rules
add a5b400a Drop ESLint and TypeScript compilation target from es2018 to
es2017
add 6635e19 Remove extraneous parser option in ESLint configuration
add 13b6b35 Simplify TypeScript library support definition
add 832a664 Update the README
add bb78bd5 Copy the README and DISCLAIMER into every package
add f50583b Mark annotator packages as internal for eslint-plugin-import
add 2de1a07 Remove the import/no-internal-modules lint rule
add 67a1353 Upgrade @typescript-eslint packages from v3.7.0 to v4.1.1
add 0177c9c Enable @typescript-eslint/consistent-type-imports rule and
apply fixes
add ef23df0 Remove unused eslint-disable comment
add 21de281 Make file extension handling consistent
add c6f0b10 Rewrite Cartesian product without dependencies
add c14c8c6 Tweaks to cartesian rewrite
add ccfd928 Implement text-position matching.
add d604bf6 Move dom-seek dependency into this repo
add ac25875 Make Seeker a class that keeps char count.
add bb9988c Extract node iteration into chunker
add 7b5e6d4 Split seek.ts into multiple files
add 9755cdb add licences
add f054c96 Clean up interfaces, define NonEmptyChunker
add 0ef8115 Make text quote search chunk by chunk
add 140ed79 Simplify TextSeeker chunk access
add 8518f30 Create Chunk(Range) equality tests
add dbc19dd Make describeTextQuote work again
add 3cc034d Add babel class-properties plugin
add 18c83db Test&fix for empty quotes at chunk edges
add efb0619 Reimplement seeking to chunk
add f6e78c3 Fix normalizeRange edge case
add 91fad53 Make abstract TextPosition matcher
add 24599d2 Make ChunkSeeker interface, drop BoundaryPointer/DomSeeker
add d0237db Implement describe text position
add a2be2a5 Factor out chunkRangeToRange
add 2fdaf66 Handle half-characters in CodePointSeeker.seekToChunk
add 9830d68 Make CodePointSeeker.seekToChunk count units, not points
add e877c9b Create basic tests for describe text position
add f702075 Export describeTextPosition & use it in demo
add 4a93fa7 Make demo more challenging.
add e6e091e Require all Chunkers to be non-empty
add 87c0199 This is what do–while was invented for :)
add a8c50a9 Refactor clip range to scope
add 173dbef Refactor pre/suffix disambiguation
add c6062be Compare *extra* pre/suffix lengths (ignore sunk costs)
add e7b0327 Linting
add 32dffb6 Move abstract code into @annotator/selector
add 009508c Distinguish absolute/relative Seeker, rename, document
add 6ecfaa2 Merge pull request #98 from apache/text-position
add 4c826b3 Tweak Seeker documentation (add @throws)
add c4b5598 lint
add 149c7b3 Generate less minimal prefixes&suffixes
add 8dd8995 Update tests
add 1126e14 Merge pull request #99: Generate less minimal
prefixes&suffixes
add 4b2d6fb Move from @annotator to @apache-annotator scope
add a4d4b7a Merge pull request #102 from apache/apache-annotator-scope
add 69ead89 Add Deploy step to Travis CI config
add b0a8028 Merge pull request #100 from chesterton-org/master
add 87e0114 Upgrade babel dependencies to v7.12
add 82ce0b1 Remove workarounds for broken babel runtime ESM helpers
add a2580d4 Merge pull request #103 from apache/babel-7-12
add 3fbd430 Publish master to the dev tag from CI
add f194f3c Use Travis Deployment v2
add e2adf73 Set preid to dev in lerna.json
add 1e457de v0.2.0-dev.0
add 2116a01 Do not push or tag automatically with lerna version
add 79c5cf2 Remove trailing comma in lerna.json
add 5c39325 Move --pre-dist-tag and --preid options to publish command
settings
add 8accc93 Restore 0.1.0 version number
add 2387fa1 Fix double negative options in lerna.json
add 2ce103f Update publish command
add 490a232 Publish from a single CI job
add 25260df Switch to Ubuntu Focal and LXD for Travis builds
add d008592 Switch back to VM builds
add 3f35c00 Do not cleanup the build before the CI deploy step
add 03f3bfd Remove yarn install script in CI
add e8db78f Create release clones without tags
add 8e00f8d Fetch deep history in Travis before deploying
add 9b65fd6 Add missing license headers
add 9119f8f Update CI npm token
add 6ec1f9e Extract CI publish script into package.json
add f7d6794 Use newer condition syntax for CI deploy stage
add 09ad1f7 Move before_deploy block into the CI stage definition
add 1598653 Add some debugging to the publish command
add 508869e Temporarily log the npmrc during deployment
add 2680416 Try the CI publish debugging again, with the right command
add 9cf4936 Quote the encrypted npm token in CI
add a67f819 Pass the npm token in CI as an environment variable
add ba36b3b Move npm api token environment variable into the deploy stage
definition
add 2b366d8 Re-encrypt the npm token
add f018623 Re-encrypt the npm token for CI after hopefully resolving
Travis auth
add 9a88d4a Try once more to configure the npm token per the Travis CI
docs
add 1e1da26 Encrypt a new npm token for CI using an explicit repo in the
command
add 2247f1d Try the master branch of travis-ci/dpl
add 23eb7a1 Set the npm token for CI in the Travis UI
add cb67dc1 Try a simplified CI with only one environment
add 0dbb5c9 Use latest stable Node.js for CI
add 9328ef5 Update CI status badge URL in README to travis-ci.com
add 5038de0 Echo part of the npm token before CI deploy step for debugging
add 16a9fc0 Do not verify the npm token for lerna CI publish
add 2563ac7 Fix the incorrect lerna flag for the CI publish
add 0ec75ed #104 fixed yarn start on windows
add e31bac4 Merge pull request #105 from
krismeister/issue-104/fix-windows-build
add c535608 Make tests their own TypeScript project
add 02b721f Add typedoc for documentation generation
add 6616534 Fix trailing comma in tsconfig.json
add 0123e79 Bump minimum Node.js versions
add a31443d Add support module format interoperability
add 848dc3c Remove main export for the apache-annotator meta-package
add 6f6c259 Remove the explicit types references in package.json files
add d36f7ff Fix style lint in babel.config.js
add ff60502 Add test plugins last in babel setup
add 9bd8cfa Remove unused ESLint configuration override
add 18fd4ff Set language version in ESLint configuration
add 3811161 Remove ESLint environment and globals configuration for
TypeScript files
add bb5534a Add globalThis to the JavaScript ESLint setup
add fb8b128 Remove references to window
add d11614b Enable more recommended TypeScript configurations
add 96f7b85 Upgrade @typescript-eslint dependencies from v4.1.1 to v4.20.0
add edf97f2 Upgrade TypeScript from v3.9.7 to v4.2.3
add b0a33b3 Opt into explicit TypeScript index property access
add 24c41fa Upgrade global-jsdom from v6.1.0 to v8.0.0
add 6024938 Upgrade babel dependencies from v7.12 to v7.13
add 5c62d9e Move babel targets to the top level of the configuration
add a0153ca Enable support for proposals in the babel runtime
transformation
add 2760a8a Enable the @typescript-eslint/no-duplicate-imports rule
add 147cb6b Add build:docs command, remove /docs in clean command
add 6d55001 Fix typedoc entrypoint
add dec7849 Actually, don’t always build the docs.
add e05cd88 More API documentation!
add 552b6ca Turn tsdoc into typedoc
add 7b7c13c Minor changes
add 2ba4fe0 Merge pull request #108 from fredsterorg/master
add c913f53 Remove CommonJS build
add dae0d6e Emit source maps as separate files
add 21ecff2 Enable experimental support for linting TypeScript project
references
add 6a42375 Remove mocha tests from webpack build
add ed0ff6e Do not publish declaration maps
add 87e3a44 Do not publish tsconfig.json and tsconfig.tsbuildinfo files
add 0fc90d3 Add watch files to mocha configuration
add 5ba4b0a Close source iterators on cartesian exit
add 7690d5b Make web:build work again
add 32fea01 Clean up remnants of in-browser tests
add aee8d73 Fix link to demo source code
add 846870a Tweak typedoc config
add 1f27df5 Lint cartesian.test.ts
add d18eb22 Simplify the ESLint module resolver configuration
add 1224802 Improve hot module reloading in demo
add 9c18a78 Make Readme point to docs on website
add b0413a6 Add short typedoc @module descriptions
add 7f5667b tweak doc
add c8ef340 Add describeCss & tests, document spec ambiguity
add cf5a13c Make default scope of describeCss the whole document
add 9ed925e Document describeCss, tweak docs of describeText…
add cf54a84 Remove forgotten .only in tests
add 7f9461d Make css matcher return an Element, not Range
add 9e11829 Make css matcher also accept a Node as scope
add f1068ff Make all functions also accept a Node as scope
add 0f8f897 Rename range-node-conversion.ts → to-range.ts
add c28d5d3 Merge branch 'allow-node-as-scope' (PR #110)
add 65cafd1 Run linter
add 08575e9 Declare types for optimal-select dependency
add adfdd09 Use node as scope in demo
add e69c6d1 tweak documentation
add b01648e Add node 16 to engines
add d95ab66 …also in each package
new 88baa29 Test for range without Text nodes (describe text quote)
new cc99947 Simplify tests
new 92531b4 Merge branch 'master' into simpler-matcher-creation
The 3 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:
.eslintignore | 1 +
.eslintrc.js | 82 +-
.gitignore | 5 +
.mocharc.js | 7 +-
.travis.yml | 23 +-
Makefile | 1 +
README.md | 116 +-
babel-register.js | 5 +-
babel.config.js | 33 +-
lerna.json | 8 +-
package.json | 44 +-
packages/apache-annotator/.npmignore | 5 +
packages/apache-annotator/package.json | 28 +
.../apache-annotator/src/dom.ts | 18 +-
.../types.ts => apache-annotator/src/selector.ts} | 16 +-
packages/{dom => apache-annotator}/tsconfig.json | 1 +
packages/dom/.npmignore | 7 +-
packages/dom/@types/optimal-select/index.d.ts | 9 +
packages/dom/README.md | 3 -
packages/dom/package.json | 23 +-
packages/dom/src/css.ts | 83 +-
packages/dom/src/highlight-range.ts | 37 +-
packages/dom/src/index.ts | 1 +
packages/dom/src/normalize-range.ts | 165 ++
packages/dom/src/{scope.ts => owner-document.ts} | 27 +-
packages/dom/src/range/cartesian.ts | 113 +-
packages/dom/src/range/match.ts | 105 +-
packages/dom/src/text-node-chunker.ts | 170 ++
packages/dom/src/text-position/describe.ts | 72 +
.../dom/src/{text-quote => text-position}/index.ts | 0
packages/dom/src/text-position/match.ts | 68 +
packages/dom/src/text-quote/describe.ts | 221 +-
packages/dom/src/text-quote/match.ts | 117 +-
.../dom/src/{types/cartesian.d.ts => to-range.ts} | 28 +-
packages/dom/src/types/dom-seek.d.ts | 26 -
packages/dom/test/css/describe.test.ts | 58 +
packages/dom/test/css/match-cases.ts | 56 +
packages/dom/test/css/match.test.ts | 59 +
.../test/highlight-range/highlight-range.test.ts | 8 +-
packages/dom/test/range/cartesian.test.ts | 66 +-
packages/dom/test/text-position/describe.test.ts | 56 +
packages/dom/test/text-position/match-cases.ts | 143 ++
.../{text-quote => text-position}/match.test.ts | 134 +-
packages/dom/test/text-quote/describe-cases.ts | 316 ++-
packages/dom/test/text-quote/describe.test.ts | 79 +-
packages/dom/test/text-quote/match-cases.ts | 58 +-
packages/dom/test/text-quote/match.test.ts | 50 +-
packages/dom/tsconfig.json | 2 +-
packages/selector/.npmignore | 7 +-
packages/selector/README.md | 3 -
packages/selector/package.json | 18 +-
packages/selector/src/index.ts | 10 +-
packages/selector/src/text/chunker.ts | 157 ++
packages/selector/src/text/code-point-seeker.ts | 196 ++
.../selector/src/text/describe-text-position.ts | 61 +
packages/selector/src/text/describe-text-quote.ts | 298 +++
packages/{dom/src => selector/src/text}/index.ts | 9 +-
packages/selector/src/text/match-text-position.ts | 76 +
packages/selector/src/text/match-text-quote.ts | 208 ++
packages/selector/src/text/seeker.ts | 415 ++++
packages/selector/src/types.ts | 61 +
test/data-model.test.ts | 5 +-
tsconfig.base.json | 7 +-
tsconfig.json | 15 +-
tsconfig.test.json | 8 +
typedoc.json | 5 +
web/demo/index.html | 99 -
web/index.html | 79 +-
web/{demo => }/index.js | 59 +-
web/test/index.html | 24 -
web/webpack.config.js | 20 +-
yarn.lock | 2328 ++++++++++----------
72 files changed, 4845 insertions(+), 2076 deletions(-)
create mode 100644 packages/apache-annotator/.npmignore
create mode 100644 packages/apache-annotator/package.json
copy .mocharc.js => packages/apache-annotator/src/dom.ts (62%)
rename packages/{dom/src/types.ts => apache-annotator/src/selector.ts} (62%)
copy packages/{dom => apache-annotator}/tsconfig.json (87%)
create mode 100644 packages/dom/@types/optimal-select/index.d.ts
delete mode 100644 packages/dom/README.md
create mode 100644 packages/dom/src/normalize-range.ts
rename packages/dom/src/{scope.ts => owner-document.ts} (61%)
create mode 100644 packages/dom/src/text-node-chunker.ts
create mode 100644 packages/dom/src/text-position/describe.ts
copy packages/dom/src/{text-quote => text-position}/index.ts (100%)
create mode 100644 packages/dom/src/text-position/match.ts
rename packages/dom/src/{types/cartesian.d.ts => to-range.ts} (53%)
delete mode 100644 packages/dom/src/types/dom-seek.d.ts
create mode 100644 packages/dom/test/css/describe.test.ts
create mode 100644 packages/dom/test/css/match-cases.ts
create mode 100644 packages/dom/test/css/match.test.ts
create mode 100644 packages/dom/test/text-position/describe.test.ts
create mode 100644 packages/dom/test/text-position/match-cases.ts
copy packages/dom/test/{text-quote => text-position}/match.test.ts (62%)
delete mode 100644 packages/selector/README.md
create mode 100644 packages/selector/src/text/chunker.ts
create mode 100644 packages/selector/src/text/code-point-seeker.ts
create mode 100644 packages/selector/src/text/describe-text-position.ts
create mode 100644 packages/selector/src/text/describe-text-quote.ts
copy packages/{dom/src => selector/src/text}/index.ts (81%)
create mode 100644 packages/selector/src/text/match-text-position.ts
create mode 100644 packages/selector/src/text/match-text-quote.ts
create mode 100644 packages/selector/src/text/seeker.ts
create mode 100644 tsconfig.test.json
create mode 100644 typedoc.json
delete mode 100644 web/demo/index.html
rename web/{demo => }/index.js (67%)
delete mode 100644 web/test/index.html