Commit Graph

44 Commits

Author SHA1 Message Date
Kevin Barabash
151376e8aa Port katex-a11y.js to KaTeX (#2062)
* copy katex-a11y.js from webapp to contrib/to-a11y-string.js

* first pass of updating to-a11y-string to use flow

* Set up test harness and write some tests
- add flow types for jest
- create wallaby config file
- add prettier as a dep and set up .prettierrc so that we use .toMatchInlineSnapshot() and have jest insert the snapshot for us
- add lots of TODOs (I'll create tickets for these later)

* Add some  to get the tests passing for now

* remove commented out parts of wallaby.js config file

* remove some stale strings, fix flow issue, add more coverage

* add , add few more tests, handle middle

* fix minor nits in tests

* rename to-a11y-string to render-a11y-string, updatte webpack config to build extension

* add test for \boxed

* remove commented out code
2019-08-02 11:24:51 -04:00
dependabot[bot]
45539c2e9c Bump handlebars from 4.1.0 to 4.1.2 (#2036)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.0 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.0...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-13 22:01:53 -04:00
dependabot[bot]
e055ca8a33 Bump webpack-bundle-analyzer from 3.0.4 to 3.3.2 (#2037)
Bumps [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) from 3.0.4 to 3.3.2.
- [Release notes](https://github.com/webpack-contrib/webpack-bundle-analyzer/releases)
- [Changelog](https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/webpack-bundle-analyzer/compare/v3.0.4...v3.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-13 21:56:31 -04:00
dependabot-preview[bot]
95d2690322 Bump flow-bin from 0.93.0 to 0.102.0 (#2013)
* Bump flow-bin from 0.93.0 to 0.102.0

Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.93.0 to 0.102.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.93.0...v0.102.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump flow-bin from 0.93.0 to 0.102.0

Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.93.0 to 0.102.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.93.0...v0.102.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix issue with flow after upgrading
2019-07-13 20:17:19 -04:00
dependabot-preview[bot]
0a55eb8a64 Bump commander from 2.19.0 to 2.20.0 (#2020)
Bumps [commander](https://github.com/tj/commander.js) from 2.19.0 to 2.20.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v2.19.0...v2.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 19:56:53 -04:00
dependabot-preview[bot]
9182b8aae4 Bump eslint-plugin-flowtype from 3.4.2 to 3.10.4 (#2023)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 3.4.2 to 3.10.4.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v3.4.2...v3.10.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 19:45:06 -04:00
dependabot-preview[bot]
89042d80e3 Bump css-loader from 2.1.0 to 3.0.0 (#2021)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v2.1.0...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 19:36:24 -04:00
dependabot-preview[bot]
d98164dd42 [Security] Bump lodash from 4.17.11 to 4.17.14 (#2030)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14. **This update includes security fixes.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-13 19:27:43 -04:00
dependabot-preview[bot]
403a728df5 Bump istanbul-lib-coverage from 2.0.3 to 2.0.5 (#2017)
Bumps [istanbul-lib-coverage](https://github.com/istanbuljs/istanbuljs) from 2.0.3 to 2.0.5.
- [Release notes](https://github.com/istanbuljs/istanbuljs/releases)
- [Commits](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-coverage@2.0.3...istanbul-lib-coverage@2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 23:28:38 -04:00
dependabot-preview[bot]
572fa9cc32 Bump babel-plugin-istanbul from 5.1.1 to 5.1.4 (#2012)
Bumps [babel-plugin-istanbul](https://github.com/istanbuljs/babel-plugin-istanbul) from 5.1.1 to 5.1.4.
- [Release notes](https://github.com/istanbuljs/babel-plugin-istanbul/releases)
- [Changelog](https://github.com/istanbuljs/babel-plugin-istanbul/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v5.1.1...v5.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 23:16:15 -04:00
dependabot-preview[bot]
a1b6d4d655 Bump eslint from 5.14.1 to 5.16.0 (#2016)
Bumps [eslint](https://github.com/eslint/eslint) from 5.14.1 to 5.16.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.14.1...v5.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 22:51:43 -04:00
ylemkimon
9c05e208ea Upgrade dependencies and remove yarn check (#1851)
* Remove Yarn check

Yarn check is buggy and will be removed in the future

* Upgrade dependencies

* Add --frozen-lockfile to CI
2019-02-20 14:56:06 -05:00
Erik Demaine
647c661db0 Remove double encoding in MathML via Unicode MathML spaces (#1813)
* Remove double encoding in MathML via Unicode MathML spaces

We used to have a complex mechanic for escaping strings, marking them as
`needsEscape = false`, and then not escaping those strings (for
combining strings in `\operatorname`).  But this doesn't really work
with `render`ing directly to a node, as `document.createTextNode` can't
be stopped from escaping.

I've thus removed this mechanic, which required the following changes:

* Switch MathML "smart space" encoding to use Unicode instead of
  `&LongNames;` (which weren't working with `render` for the same reason).
* Hack our HTML/MathML serializer to not use `String.trim`, which wrecks
  havoc with emitted Unicode spaces.

Now `toText()` doesn't escape, so strings concatenate in unescaped form,
and `toHTML()` only does the necessary escaping.  Thus fix #1782.

* Fix src/utils.js

Co-Authored-By: edemaine <edemaine@mit.edu>

* Fix src/mathMLTree.js documentation

Co-Authored-By: edemaine <edemaine@mit.edu>

* Remove trim hack thanks to diffable-html@4.0.0

* Switch back to jest-serializer-html

* Update mathMLTree.js
2019-01-02 01:55:44 +09:00
Kevin Barabash
1a7ce6cf15 update flow to 0.89 (#1808)
* update flow to 0.89

* only use a single core when running tests on circleci
2018-12-26 17:57:28 -05:00
ylemkimon
45a58f8d30 Update lockfile, fix test reporting, throwOnError on yarn start test page (#1798)
* Update lockfile

* Fix test reporting

* Set throwOnError on `yarn start` test page
2018-12-23 18:46:25 -05:00
ylemkimon
ce3840d4ce Include only necessary fonts for target environment specified by Browserslist (#1674)
* Include only necessary fonts for target environment specified by Browserslist

Allow WOFF and WOFF2 to be controlled using environment variables

* Fix links

* Fix merge error

* Update dependencies

* Replace uglifyjs-webpack-plugin with terser-webpack-plugin

* Do not set `targets` if !isESMBuild
2018-12-02 17:51:13 -05:00
ylemkimon
f628ca142b Generate ECMAScript module for contrib (#1624)
* Create separate entry point of copy-tex for webpack

* Update katex.webpack.js comment

* Generate ECMAScript for contrib

* Update dependencies

* Comment out documentations
2018-10-31 11:37:54 +09:00
greenkeeper[bot]
ca38cbf8b2 Update flow-bin to the latest version 🚀 (#1754)
* chore(package): update flow-bin to version 0.84.0

* chore(package): update lockfile yarn.lock

* Update config.yml

* Update config.yml

* Update lockfile
2018-10-29 16:58:23 +09:00
greenkeeper[bot]
de961dedd5 Update eslint-plugin-flowtype to the latest version 🚀 (#1743)
* chore(package): update eslint-plugin-flowtype to version 3.0.0

* chore(package): update lockfile yarn.lock
2018-10-13 20:03:39 -04:00
greenkeeper[bot]
94d433805a chore(package): update eslint-plugin-transform-runtime-aliasing to version 2.0.0 (#1742)
* chore(package): update eslint-plugin-transform-runtime-aliasing to version 2.0.0

* chore(package): update lockfile yarn.lock
2018-10-13 23:49:57 +09:00
greenkeeper[bot]
274dfdae4f Update flow-bin to the latest version 🚀 (#1737)
* chore(package): update flow-bin to version 0.83.0

* chore(package): update lockfile yarn.lock
2018-10-12 22:06:12 -04:00
ylemkimon
5e4c0bec74 chore(package): update babel-eslint to version 10.0.1 (#1729)
* chore(package): update babel-eslint to version 10.0.1

Closes #1728

* chore(package): update lockfile yarn.lock
2018-10-12 21:38:33 -04:00
greenkeeper[bot]
68fdb52733 Update query-string to the latest version 🚀 (#1734)
* chore(package): update query-string to version 6.2.0

* chore(package): update lockfile yarn.lock
2018-10-10 14:00:14 +09:00
greenkeeper[bot]
0cbfaef32d Update flow-bin to the latest version 🚀 (#1733)
* chore(package): update flow-bin to version 0.82.0

* chore(package): update lockfile yarn.lock
2018-10-02 11:04:42 +09:00
greenkeeper[bot]
c52d3bee70 Update rollup to the latest version 🚀 (#1716)
* chore(package): update rollup to version 0.66.0

* chore(package): update lockfile yarn.lock
2018-09-16 17:48:47 +09:00
greenkeeper[bot]
6151907ecb Update uglifyjs-webpack-plugin to the latest version 🚀 (#1714)
* chore(package): update uglifyjs-webpack-plugin to version 2.0.0

* chore(package): update lockfile yarn.lock
2018-09-16 15:23:33 +09:00
greenkeeper[bot]
db5d75db07 Update flow-bin to the latest version 🚀 (#1715)
* chore(package): update flow-bin to version 0.81.0

* chore(package): update lockfile yarn.lock
2018-09-16 00:37:40 +09:00
ylemkimon
1cf3cd6fe5 Remove greenkeeper-lockfile (#1710) 2018-09-12 22:01:30 +09:00
greenkeeper[bot]
91553c1dfe Update webpack-bundle-analyzer to the latest version 🚀 (#1709)
* chore(package): update webpack-bundle-analyzer to version 3.0.0

* chore(package): update lockfile

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-11 23:47:55 -04:00
ylemkimon
7f7d063e73 chore(package): update file-loader to version 2.0.0 (#1697) 2018-09-04 21:55:46 -04:00
greenkeeper[bot]
a88310e51d chore(package): update style-loader to version 0.23.0 (#1668)
* chore(package): update style-loader to version 0.23.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-04 09:06:52 +09:00
ylemkimon
4178639ea5 Upgrade to Babel 7 (#1595)
* Upgrade to Babel 7

* Update dependencies

* Remove `modules` and `useEsModules` as module support is automatically detected

Target browsers supporting ESM in the ESM build.

* Disable corejs aliasing (polyfill)

* Fix package.json and update lockfile

* Bump CircleCI cache version

* Remove `Object.values()` use for Node 6 compatability

* Remove redundant arguments to @babel/register

* Update rollup and rollup-plugin-babel

* Add ignore option to no-transform-runtime-aliasing

Ignore JSON.stringify, parseInt, and ParseFloat

* Upgrade babel-loader to 8.0.1

* Use api.env() in Babel configuration

* Upgrade babel-loader to 8.0.2
2018-09-03 17:19:12 -04:00
greenkeeper[bot]
5585187abb Update flow-bin to the latest version 🚀 (#1689)
* chore(package): update flow-bin to version 0.80.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-01 11:10:02 +09:00
greenkeeper[bot]
16f79435b3 Update rollup to the latest version 🚀 (#1663)
* chore(package): update rollup to version 0.65.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-25 23:13:21 +09:00
ylemkimon
93b1b7947c Fix scrollspy.js & use query-string@5 to support IE (#1621)
* Fix scrollspy.js syntax error on IE

* Use query-string@5 to support IE
2018-08-18 21:25:37 +09:00
greenkeeper[bot]
46e7939fa9 chore(package): update flow-bin to version 0.79.0 (#1628)
* chore(package): update flow-bin to version 0.79.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-17 20:00:14 +09:00
ylemkimon
f829ebc692 Improve prestart and tests (#1610)
* screenshotter: replace promisify(fs) and mkdirp with fs-extra

* screenshotter: replace selenium.promise with builtin Promise

* Lint all JavaScript files in the root

* unicodeMake: replace console.log with writeFile(string)

* unicodeMake: check timestamp, do not build if up-to-date

* Replace check-dependencies with yarn check

* Exclude src/unicodeMake.js from coverage

* Add (missing) dependencies

* Skip CircleCI if only unrelated has been changed

* Fix commit range

* Use fs-extra in update-sri
2018-08-17 16:29:27 +09:00
greenkeeper[bot]
4e53f9d059 Update eslint-plugin-transform-runtime-aliasing to the latest version 🚀 (#1608)
* chore(package): update eslint-plugin-transform-runtime-aliasing to version 1.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-13 18:30:46 +09:00
ylemkimon
fdb155aa97 Build ECMAScript modules (#1479)
* Separate type import statement from module import statement

* Remove extension from import statements

* Build ECMAScript modules

* Add `cross-env` devDependency

* Use `babel-plugin-import-rename` instead of custom plugin

* Improve `.babelrc` style and add comments

* Update README.md

* Change file extension to `.mjs`

Comply with Node.js spec. Use extensionless package:main.

* Enforce only ESM compatible imports

* Dedupe packages

* Add `unicodeMake.js` to overrides:excludedFiles

* Fix .eslintrc merge conflict

* Use rollup to bundle ES module

* Remove `eslint-plugin-import`

* Change build directory to `dist`

* Change build directory to `dist`

* Change build directory

* Move docs from README.md to browser.md

* Update update-sri.js

* Revert update-sri.js

* Revert update-sri.js

* Update .eslintrc

* Remove SSH key testing
2018-08-13 13:06:40 +09:00
ylemkimon
295d933845 Enable greenkeeper-lockfile (#1531)
* Enable `greenkeeper-lockfile`

* Change colon to dash

* Fix command path

* Add SSH key
2018-08-12 23:55:19 -04:00
ylemkimon
7f1ce374e0 Lint against function polyfills that may be expensive (#1597)
* Lint against polyfills that may be expensive

* Exclude test file from source code linting
2018-08-13 11:26:46 +09:00
greenkeeper[bot]
8fb92f6866 chore(package): update postcss-loader to version 3.0.0 (#1572)
* chore(package): update lockfile
2018-08-09 12:58:06 +09:00
greenkeeper[bot]
0b8277c37b chore(package): update style-loader to version 0.22.0 (#1561)
* chore(package): update lockfile
2018-08-08 17:56:00 +09:00
ylemkimon
a76c4b9a2f Switch npm to Yarn (#1522)
* Add testUrl to jest config

* Switch npm to Yarn
2018-07-29 11:36:27 -07:00