Commit Graph

165 Commits

Author SHA1 Message Date
ylemkimon
8a24907518 build(deps): update dependencies (#2301)
* Bump flow version

* Bump jest version

* Bump eslint version

* Bump rollup version

* Bump webpack version

* Bump misc dependencies and update lockfile

* Update lockfile

* Bump commander version

* Bump misc dependencies

* Bump istanbul version

* Bump docusaurus version

* Update lockfile

* Explicitly declare dependencies

* Bump caniuse-lite version

* Update lockfile

* Bump commander version

* Bump webpack and css-loader version

* Bump flow version
2020-07-25 11:38:29 -07:00
dependabot-preview[bot]
d1ad2e0b8b [Security] Bump codecov from 3.6.5 to 3.7.1 (#2328) 2020-07-21 07:32:46 +00:00
ylemkimon
c387b9c747 v0.12.0 release (#2302)
* Release v0.12.0

Bump master to v0.12.1-pre

* Update CHANGELOG

* Uncomment ES module documentation

* Update CHANGELOG.md

Co-authored-by: Erik Demaine <edemaine@mit.edu>

* Update CHANGELOG.md

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-13 05:46:01 +09:00
ylemkimon
3272472ffe Use babel-plugin-preval instead of own unicodeMake for unicodeSymbols (#2153)
* Use babel-plugin-preval instead of own unicodeMake for unicodeSymbols

* Fix circular dependency transpiling issue

* Flow type unicodeSymbols.js

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-08 17:58:11 -04:00
ylemkimon
4ec2806b3e Drop IE 9/10 support (#2136)
* Drop IE 9/10 support

* Remove IE-related comments

They no longer apply.

* Update browserslist

* Exclude old Safari (5.1)
2019-11-01 18:43:47 -04:00
Kevin Barabash
1da7ef2210 Release v0.11.0 (#2071)
* Release v0.11.0

Bump master to v0.12.0-pre

* update CHANGELOG.md

* minor editors to CHANGELOG.md
2019-08-12 21:51:13 -04:00
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-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]
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
Kevin Barabash
f659544d62 Release v0.10.2 (take 4) (#1961)
* Release v0.10.2

Bump master to v0.10.3-pre

* update CHANGELOG

* add integrity hash to mhchem script in README

* tweaked CHANGELOG
2019-05-12 22:08:30 -04:00
ylemkimon
e016f4b940 Release v0.10.1 (#1856)
* Release v0.10.1

Bump v0.10.1 to v0.10.2-pre

* Update CHANGELOG.md
2019-02-22 13:34:15 +09:00
Kevin Barabash
122c197f51 Fixes #1810: jest problem on windows (#1811)
* Fixes #1810: jest problem on windows

* switch from modulePaths to moduleNameMapper

* Avoid dependency on built dist
2019-02-21 16:15:34 +09: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
AlbertHilb
f10de9617e Add optional pre-process callback to the auto-renderer. (#1784)
* Add optional pre-process callback to the auto-renderer.

* Rewrite `preProcess` callback signature.

* Add test.

* Make test future-proof.

* Add root folder to the node module paths.
2018-12-23 18:29:59 -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
Ron Kok
64745b5c8a Add mhchem extension (#1436)
* A proposal for support of mhchem

* Create extension

* Add index

* Remove arrow function

* Fix lint errors in macros.js

* Remove mhchem from build

* Move code from macros.js to mhchem.js

* Add minified mhchem

* Remove arrow head mods. Disable eslint.

* Fix space handling

* Update code to mhchem v3.3.0

* Tweak arrows to reduce diff

* Raise \tripledash

* Edit docs and webpack

* Update package.json

* Remove wrap. Remove manual.

* Correct second brush stroke in \xrightleftarrows

* Added patch file

* Add import line

* Add mhchem to eslint ignore
2018-11-24 18:52:25 -05:00
ylemkimon
112582daa5 Replace Khan/KaTeX with KaTeX/KaTeX (#1781)
* Replace Khan/KaTeX with KaTeX/KaTeX

* Remove RawGit links

* Remove old files
2018-11-19 21:24:33 -05:00
ylemkimon
f4e24183d6 fix: pin stylelint to 9.6.0 (#1778) 2018-11-07 19:41:23 -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
ylemkimon
78f39d171e Add homepage to package.json (#1761) 2018-10-29 22:04:06 +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
ylemkimon
49f84f76e7 v0.10.0 release (#1751)
* Remove RC-versioned docs

* Release v0.10.0

Bump master to v0.10.1-pre

* Fix multiple occuring hash replacement

* Update SRI hashes

* Update CHANGELOG.md

* Fix tags not shown

* Update docusaurus

* Wrap escaping backslashes with backticks

* Update SRI hashes

* Update CHANGELOG.md
2018-10-29 13:14:24 +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
ccorn
d3ec100d02 dist script packs release tarball/zip with "katex" directory prefix again. (#1665)
It does so by mercilessly removing the katex/ folder, if it exists
(presumably left by previous failed dist:zip attempts), copying dist/
to katex/, and archiving the latter. On success, katex/ gets removed.

Settled on this version after a more sophisticated script was considered
to use too much POSIX features (like set and trap) in #1665.

Deliberately not adding katex/ to .gitignore because if katex/ shows up,
it indicates that the latest dist attempt has not completed successfully.
2018-09-01 13:54:31 +09: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
7bc15d4d76 Revert pkg.main to CommonJS (ES5) module and remove pkg.module field (#1653) 2018-08-23 01:30:01 +09:00
ylemkimon
41a43974ce Collect code coverage in screenshotter tests (#1644)
* Collect code coverage in screenshotter tests

* Using instanbul, no additional dependencies required as they are part 
of jest
* Collect in CircleCI builds and upload to Codecov

* Remove clover report
2018-08-21 12:09:29 +09:00
ylemkimon
293af2936d Release v0.10.0-rc (#1634)
* Release v0.10.0-rc

Bump master to v0.10.0-pre

* Update CHANGELOG.md

* Update SRI hashes

* Update SRI hashes
2018-08-20 00:25:11 +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