Commit graph

604 commits

Author SHA1 Message Date
Marc Durdin
5da24ff279
Merge pull request #7307 from keymanapp/dependabot/npm_and_yarn/nanoid-and-mocha--removed
chore(deps): bump nanoid and mocha
2022-09-19 15:34:19 +10:00
dependabot[bot]
93ec6106e1
chore(deps): bump nanoid and mocha
Bumps [nanoid](https://github.com/ai/nanoid) and [mocha](https://github.com/mochajs/mocha). These dependencies needed to be updated together.

Removes `nanoid`

Updates `mocha` from 8.4.0 to 10.0.0
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v10.0.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
- dependency-name: mocha
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-16 21:06:23 +00:00
Joshua A. Horton
26fb6da3ab feat(common/models): adds tokenization tests for wordbreaks near the caret 2022-09-15 13:23:21 +07:00
Joshua A. Horton
94face23d0 chore(common/models): minor cleanup 2022-09-13 11:06:54 +07:00
Joshua A. Horton
261e252026 docs(common/models): adds minor doc re 'sot', 'eot' 2022-09-13 10:38:34 +07:00
Joshua A. Horton
8e076fe3fd feat(common/models): actual wordbreaker customization 2022-09-13 10:18:24 +07:00
Joshua A. Horton
51caf533a8 feat(common/models): interface for custom breaker rules 2022-09-12 15:14:28 +07:00
Joshua A. Horton
991a5bc271 feat(common/models): wordbreaker context .match method 2022-09-12 15:14:27 +07:00
Joshua A. Horton
5bad267e11 refactor(common/models): default wordbreaker state tracking 2022-09-12 15:14:26 +07:00
Joshua A. Horton
3f36a07abb change(common/models): tweak to flag-emoji test for clarity 2022-09-08 09:11:26 +07:00
Joshua A. Horton
91448c344f feat(web): more default-breaker unit tests 2022-09-06 14:52:16 +07:00
Joshua A. Horton
413e88daa2 chore(web): where'd that extra indentation come from? 2022-09-06 10:10:33 +07:00
Joshua A. Horton
a09cc5d822 fix(common/models): models/templates unit tests 2022-09-06 09:48:52 +07:00
Joshua A. Horton
a6e65333c5 fix(common/models): wordbreaker test require paths 2022-09-06 08:54:56 +07:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
jahorton
e801406640 fix(common/models): replaces the single 'startsWith' use 2022-06-14 14:41:56 +07:00
Marc Durdin
fcf78bcd94 chore: merge master into branch 2022-05-27 13:11:23 +10:00
Marc Durdin
05a4c33200 chore(web): move common/core/web to common/web
Relates to #5816.

Moves folders under common/core/web to common/web:

* input-processor -> common/web/input-processor
* keyboard-processor -> common/web/keyboard-processor
* tools/recorder -> common/web/recorder
* tools/sentry-manager -> common/web/sentry-manager
* utils -> common/web/utils

Updates scripts and configuration to point to new folders.
2022-05-18 06:01:03 +10:00
Marc Durdin
833dde0ae4 chore: remove unnecessary package-lock.json files 2022-05-16 14:47:58 +10:00
Marc Durdin
15f4aa8af2 chore(web): update npm version refs for publishing packages
Note that the version entry will be added to the local package.json
which will then be dirty. This version entry should not be committed.
2022-05-16 08:46:09 +10:00
Keyman Build Agent
e1d28a85d8 auto: increment master version to 16.0.11 2022-05-15 14:03:47 -04:00
Marc Durdin
c1ef2651ab chore: beta to master A16S1 2022-05-15 18:32:36 +10:00
Keyman Build Agent
bd85fc895e auto: increment beta version to 15.0.247 2022-05-11 14:02:08 -04:00
Keyman Build Agent
5dbb6642b7 auto: increment beta version to 15.0.246 2022-05-10 14:01:54 -04:00
Keyman Build Agent
7448674fe0 auto: increment beta version to 15.0.245 2022-05-09 14:01:48 -04:00
Marc Durdin
bb07ab7eee chore(web): make build paths consistent 2022-05-04 10:13:44 +10:00
Keyman Build Agent
52b42a5958 auto: increment beta version to 15.0.244 2022-05-03 14:02:37 -04:00
Joshua Horton
e15798ded4
Merge pull request #6574 from keymanapp/fix/common/models/templates/6572-contraction-detokenization
fix(common/models): prevents preemptive tokenization of potential contractions
2022-05-03 10:14:06 -05:00
Keyman Build Agent
6d5517ff8b auto: increment master version to 16.0.10 2022-04-29 14:03:21 -04:00
Keyman Build Agent
9286a67ee0 auto: increment beta version to 15.0.243 2022-04-29 14:02:29 -04:00
jahorton
b2eca8b7c4 docs(common/models): addresses PR concerns 2022-04-29 09:42:34 -05:00
Keyman Build Agent
d2edf15283 auto: increment beta version to 15.0.242 2022-04-27 14:02:30 -04:00
Keyman Build Agent
2a59670bf2 auto: increment beta version to 15.0.241 2022-04-26 14:02:34 -04:00
jahorton
058e83464f fix(common/models): re-attaches left-context-final single-quote for contractions 2022-04-26 10:09:21 -05:00
Keyman Build Agent
d17e03a35a auto: increment beta version to 15.0.240 2022-04-22 14:02:30 -04:00
Keyman Build Agent
c5199698ac auto: increment beta version to 15.0.239 2022-04-21 14:02:18 -04:00
Keyman Build Agent
0e3173c528 auto: increment beta version to 15.0.238 2022-04-20 14:02:18 -04:00
Keyman Build Agent
414199711f auto: increment beta version to 15.0.237 2022-04-19 14:02:23 -04:00
Keyman Build Agent
f4473990a7 auto: increment beta version to 15.0.236 2022-04-18 14:02:00 -04:00
Keyman Build Agent
6770f87d7a auto: increment master version to 16.0.9 2022-04-17 14:04:01 -04:00
Marc Durdin
0fbf53f8d7 chore(web): move version from package.json to keyman-version package
Starts to resolve the chaos of putting version numbers into every
package.json file.

Adds a new keyman-version package which mimics the
version information in build-utils.sh. This will eventually replace
resources/web-environment.

Fixes the build for the lexical model compiler tools to remove refs to
package.json version and use keyman-version instead.

More fixes coming in a follow-up.
2022-04-17 06:47:39 +10:00
Keyman Build Agent
4052e00890 auto: increment beta version to 15.0.235 2022-04-14 14:02:32 -04:00
Keyman Build Agent
767817c425 auto: increment beta version to 15.0.234 2022-04-13 14:02:17 -04:00
Marc Durdin
e0b308b983 chore(web): cleanup for ts projects 2022-04-13 15:19:55 +10:00
Marc Durdin
0ac04d0530 chore(web): Merge branch 'beta' into chore/web/no-more-lerna 2022-04-12 21:17:15 +10:00
Marc Durdin
4d94786852 chore(web): replace lerna with npm workspaces and ts projects
Fixes #6320.

Part 1 of moving from lerna to a simpler, maintained monorepo solution,
using TypeScript Projects and NPM Workspaces.

There is more work to be done here. At this point, KeymanWeb builds and
runs without errors, but the built file is substantially different,
mostly in include order.

Using TypeScript Projects, we move away from the need to run build
scripts in various locations for almost all the Typescript modules.

TODO: Embedded versions and tests have not been verified.

TODO: developer/server is not yet verified.

TODO: developer/js (needs a rename!) is not yet verified.

TODO: Currently, the predictive-text folder needs refactoring to move
the construction of the worker wrapper out of the Predictive Text build
and into the final assembly of keymanweb.js (as it should be valid to
run it as a separate .js anyway).

TODO: Most of the `<reference>` paths need to be re-verified. Ideally
there should be no references outside the current module for any given
.ts.

TODO: The embedded vs browser vs node (headless) builds should be tidied
up for consistency so that it's obvious what depends on what. This is
currently messiest in the predictive-text folder, where the output names
diverge from the filenames and the various files are mixed in the same
folder (as evidenced by the exclusions listed in each tsconfig.json).

TODO: `npm install` should be removed from most build scripts and
instead `npm ci` (#6196) should be run only once from the top-level
folder for any given build. I've had eliminated side-effects from the
`install` action for npm, which makes it easier to reason about state.

TODO: verify_npm_setup and related functions can probably be eliminated.

TODO: most of the build scripts should be largely eliminated for web.

TODO: several ts projects use inconsistent output folders.

TODO: it may be possible to generate a .d.ts for models/types so that
we can use a consistent reference for those as well.

TODO: build.sh, tsconfig.json should always be in the module's top-level
folder, not in a subfolder such as src (e.g. see input-processor/src,
keyboard-processor/src, web/source).

TODO: resources/web-environment should be in common/web.

TODO: other js node_modules imports should be wrapped like es6-shim.

TODO: fix up the publish code for npm modules

TODO: eliminate version numbers from package.json if possible?

Whew, that's most of the stuff I noticed!
2022-04-12 21:02:33 +10:00
Keyman Build Agent
114f58ee7f auto: increment beta version to 15.0.233 2022-04-11 14:02:20 -04:00
Marc Durdin
2340eb14a9
Merge pull request #6512 from keymanapp/feat/web/prediction-casing-follows-layer-redux
feat(web): prediction casing follows current layer redux
2022-04-11 06:09:03 +10:00
Keyman Build Agent
cdb4680698 auto: increment beta version to 15.0.232 2022-04-09 14:02:21 -04:00
Keyman Build Agent
01c089cf35 auto: increment beta version to 15.0.231 2022-04-08 14:02:37 -04:00