chore(deps): update dependencies (#3698)

* fix: update dependencies

* chore: update actions

* chore: update flow-typed for jest

* Fix line endings

---------

Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
ylemkimon
2023-04-12 00:44:31 +09:00
committed by GitHub
parent 92ac286a3a
commit 2e64a3afa8
7 changed files with 5610 additions and 5810 deletions

View File

@@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
persist-credentials: false # minimize exposure and prevent accidental pushes persist-credentials: false # minimize exposure and prevent accidental pushes
- name: Use Node.js 16 - name: Use Node.js 16
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
cache: yarn cache: yarn
@@ -40,7 +40,7 @@ jobs:
- name: Build - name: Build
run: yarn build run: yarn build
- uses: codecov/codecov-action@v2 - uses: codecov/codecov-action@v3
with: with:
directory: ./coverage/ directory: ./coverage/
timeout-minutes: 3 timeout-minutes: 3
@@ -52,13 +52,13 @@ jobs:
needs: test needs: test
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
persist-credentials: false persist-credentials: false
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js 16 - name: Use Node.js 16
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
cache: yarn cache: yarn

View File

@@ -20,12 +20,12 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v2
with: with:
languages: javascript languages: javascript
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v2

View File

@@ -16,13 +16,13 @@ jobs:
pull-requests: write # to remove label pull-requests: write # to remove label
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number) }} ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number) }}
persist-credentials: false # minimize exposure and prevent accidental pushes persist-credentials: false # minimize exposure and prevent accidental pushes
- name: Remove label - name: Remove label
uses: actions/github-script@v5 uses: actions/github-script@v6
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
@@ -35,7 +35,7 @@ jobs:
- name: Check image - name: Check image
id: check-image id: check-image
uses: actions/github-script@v5 uses: actions/github-script@v6
with: with:
# https://github.community/t/github-token-has-no-access-to-new-container-rest-apis/170395 # https://github.community/t/github-token-has-no-access-to-new-container-rest-apis/170395
github-token: ${{ secrets.GH_PACKAGES_TOKEN }} github-token: ${{ secrets.GH_PACKAGES_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
if: ${{ !fromJSON(steps.check-image.outputs.exists) }} if: ${{ !fromJSON(steps.check-image.outputs.exists) }}
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: KaTeX-bot username: KaTeX-bot
@@ -72,7 +72,7 @@ jobs:
- name: Build and push - name: Build and push
if: ${{ !fromJSON(steps.check-image.outputs.exists) }} if: ${{ !fromJSON(steps.check-image.outputs.exists) }}
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: dockers/fonts context: dockers/fonts
tags: ${{ steps.check-image.outputs.result }} tags: ${{ steps.check-image.outputs.result }}
@@ -89,7 +89,7 @@ jobs:
password: ${{ secrets.GH_PACKAGES_TOKEN }} password: ${{ secrets.GH_PACKAGES_TOKEN }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number) }} ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number) }}
persist-credentials: false persist-credentials: false
@@ -110,12 +110,12 @@ jobs:
printf '[diff "font"]\n\tbinary = true\n\ttextconv = ttx -q -i -o -' >> ~/.gitconfig printf '[diff "font"]\n\tbinary = true\n\ttextconv = ttx -q -i -o -' >> ~/.gitconfig
git diff --exit-code git diff --exit-code
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
if: failure() if: failure()
with: with:
name: fonts name: fonts
path: fonts path: fonts
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
if: failure() if: failure()
with: with:
name: metrics name: metrics

View File

@@ -34,13 +34,13 @@ jobs:
BROWSERSTACK_ACCESS_KEY: ${{ matrix.browserstack && secrets.BROWSERSTACK_ACCESS_KEY }} BROWSERSTACK_ACCESS_KEY: ${{ matrix.browserstack && secrets.BROWSERSTACK_ACCESS_KEY }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || '' }} ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || '' }}
persist-credentials: false # do not persist credentials persist-credentials: false # do not persist credentials
- name: Use Node.js 14 - name: Use Node.js 14
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
@@ -82,12 +82,12 @@ jobs:
docker logs ${{ job.services.selenium.id }} docker logs ${{ job.services.selenium.id }}
echo "::$TOKEN::" echo "::$TOKEN::"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
if: failure() if: failure()
with: with:
name: new-${{ matrix.browser }} name: new-${{ matrix.browser }}
path: test/screenshotter/new path: test/screenshotter/new
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
if: failure() if: failure()
with: with:
name: diff-${{ matrix.browser }} name: diff-${{ matrix.browser }}

View File

@@ -1,7 +1,7 @@
// flow-typed signature: e60c7806ec0ddaf4588f438843ef37bd // flow-typed signature: fd6b1d81136037fad6c4e96fa7354af4
// flow-typed version: 7afca48d86/jest_v26.x.x/flow_>=v0.104.x // flow-typed version: 3153a3ba01/jest_v28.x.x/flow_>=v0.134.x
type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = { type JestMockFn<TArguments: $ReadOnlyArray<any>, TReturn> = {
(...args: TArguments): TReturn, (...args: TArguments): TReturn,
/** /**
* An object for introspecting mock calls * An object for introspecting mock calls
@@ -13,6 +13,12 @@ type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = {
* passed during the call. * passed during the call.
*/ */
calls: Array<TArguments>, calls: Array<TArguments>,
/**
* An array containing the call arguments of the last call that was made
* to this mock function. If the function was not called, it will return
* undefined.
*/
lastCall: TArguments,
/** /**
* An array that contains all the object instances that have been * An array that contains all the object instances that have been
* instantiated from this mock function. * instantiated from this mock function.
@@ -161,6 +167,32 @@ type JestPromiseType = {
*/ */
type JestTestName = string | Function; type JestTestName = string | Function;
type FakeableAPI =
| 'Date'
| 'hrtime'
| 'nextTick'
| 'performance'
| 'queueMicrotask'
| 'requestAnimationFrame'
| 'cancelAnimationFrame'
| 'requestIdleCallback'
| 'cancelIdleCallback'
| 'setImmediate'
| 'clearImmediate'
| 'setInterval'
| 'clearInterval'
| 'setTimeout'
| 'clearTimeout';
type FakeTimersConfig = {
advanceTimers?: boolean | number,
doNotFake?: Array<FakeableAPI>,
now?: number | Date,
timerLimit?: number,
legacyFakeTimers?: boolean,
...
};
/** /**
* Plugin: jest-styled-components * Plugin: jest-styled-components
*/ */
@@ -259,6 +291,9 @@ type DomTestingLibraryType = {
// 5.x // 5.x
toHaveDisplayValue(value: string | string[]): void, toHaveDisplayValue(value: string | string[]): void,
toBeChecked(): void, toBeChecked(): void,
toBeEmptyDOMElement(): void,
toBePartiallyChecked(): void,
toHaveDescription(text: string | RegExp): void,
... ...
}; };
@@ -801,6 +836,14 @@ type JestObjectType = {
* Returns the number of fake timers still left to run. * Returns the number of fake timers still left to run.
*/ */
getTimerCount(): number, getTimerCount(): number,
/**
* Set the current system time used by fake timers.
* Simulates a user changing the system clock while your program is running.
* It affects the current time but it does not in itself cause
* e.g. timers to fire; they will fire exactly as they would have done
* without the call to jest.setSystemTime().
*/
setSystemTime(now?: number | Date): void,
/** /**
* The same as `mock` but not moved to the top of the expectation by * The same as `mock` but not moved to the top of the expectation by
* babel-jest. * babel-jest.
@@ -822,11 +865,15 @@ type JestObjectType = {
* Determines if the given function is a mocked function. * Determines if the given function is a mocked function.
*/ */
isMockFunction(fn: Function): boolean, isMockFunction(fn: Function): boolean,
/**
* Alias of `createMockFromModule`.
*/
genMockFromModule(moduleName: string): any,
/** /**
* Given the name of a module, use the automatic mocking system to generate a * Given the name of a module, use the automatic mocking system to generate a
* mocked version of the module for you. * mocked version of the module for you.
*/ */
genMockFromModule(moduleName: string): any, createMockFromModule(moduleName: string): any,
/** /**
* Mocks a module with an auto-mocked version when it is being required. * Mocks a module with an auto-mocked version when it is being required.
* *
@@ -881,13 +928,6 @@ type JestObjectType = {
* or setInterval() and setImmediate()). * or setInterval() and setImmediate()).
*/ */
advanceTimersByTime(msToRun: number): void, advanceTimersByTime(msToRun: number): void,
/**
* Executes only the macro task queue (i.e. all tasks queued by setTimeout()
* or setInterval() and setImmediate()).
*
* Renamed to `advanceTimersByTime`.
*/
runTimersToTime(msToRun: number): void,
/** /**
* Executes only the macro-tasks that are currently pending (i.e., only the * Executes only the macro-tasks that are currently pending (i.e., only the
* tasks that have been queued by setTimeout() or setInterval() up to this * tasks that have been queued by setTimeout() or setInterval() up to this
@@ -911,7 +951,7 @@ type JestObjectType = {
* (setTimeout, setInterval, clearTimeout, clearInterval, nextTick, * (setTimeout, setInterval, clearTimeout, clearInterval, nextTick,
* setImmediate and clearImmediate). * setImmediate and clearImmediate).
*/ */
useFakeTimers(mode?: 'modern' | 'legacy'): JestObjectType, useFakeTimers(fakeTimersConfig?: FakeTimersConfig): JestObjectType,
/** /**
* Instructs Jest to use the real versions of the standard timer functions. * Instructs Jest to use the real versions of the standard timer functions.
*/ */
@@ -1032,11 +1072,20 @@ declare var it: {
* @param {Function} Test * @param {Function} Test
* @param {number} Timeout for the test, in milliseconds. * @param {number} Timeout for the test, in milliseconds.
*/ */
skip( skip: {|
name: JestTestName, (
fn?: (done: JestDoneFn) => ?Promise<mixed>, name: JestTestName,
timeout?: number fn?: (done: JestDoneFn) => ?Promise<mixed>,
): void, timeout?: number
): void,
each(
...table: Array<Array<mixed> | mixed> | [Array<string>, string]
): (
name: JestTestName,
fn?: (...args: Array<any>) => ?Promise<mixed>,
timeout?: number
) => void,
|},
/** /**
* Highlight planned tests in the summary output * Highlight planned tests in the summary output
* *

View File

@@ -49,78 +49,79 @@
"license": "MIT", "license": "MIT",
"packageManager": "yarn@3.2.2", "packageManager": "yarn@3.2.2",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.10.4", "@babel/core": "^7.18.13",
"@babel/eslint-parser": "^7.15.0", "@babel/eslint-parser": "^7.18.9",
"@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-syntax-flow": "^7.14.5", "@babel/plugin-syntax-flow": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.14.9", "@babel/plugin-transform-react-jsx": "^7.18.10",
"@babel/plugin-transform-runtime": "^7.10.4", "@babel/plugin-transform-runtime": "^7.18.10",
"@babel/preset-env": "^7.10.4", "@babel/preset-env": "^7.18.10",
"@babel/preset-flow": "^7.10.4", "@babel/preset-flow": "^7.18.6",
"@babel/preset-react": "^7.14.5", "@babel/preset-react": "^7.18.6",
"@babel/register": "^7.10.4", "@babel/register": "^7.18.9",
"@babel/runtime": "^7.10.4", "@babel/runtime": "^7.18.9",
"@rollup/plugin-alias": "^3.1.1", "@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-babel": "^5.0.4", "@rollup/plugin-babel": "^5.3.1",
"@semantic-release/changelog": "^6.0.0", "@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.0", "@semantic-release/git": "^10.0.1",
"babel-jest": "^27.0.0", "babel-jest": "^29.0.1",
"babel-loader": "^8.0.5", "babel-loader": "^8.2.5",
"babel-plugin-istanbul": "^6.0.0", "babel-plugin-istanbul": "^6.1.1",
"babel-plugin-preval": "^5.0.0", "babel-plugin-preval": "^5.1.0",
"babel-plugin-version-inline": "^1.0.0", "babel-plugin-version-inline": "^1.0.0",
"benchmark": "^2.1.4", "benchmark": "^2.1.4",
"browserslist": "^4.13.0", "browserslist": "^4.21.3",
"browserstack-local": "^1.4.5", "browserstack-local": "^1.5.1",
"caniuse-lite": "^1.0.30001102", "caniuse-lite": "^1.0.30001384",
"css-loader": "^6.0.0", "css-loader": "^6.7.1",
"cssnano": "^5.0.0-rc.1", "cssnano": "^5.1.13",
"eslint": "^8.0.0", "eslint": "^8.23.0",
"eslint-import-resolver-webpack": "^0.13.2", "eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-actions": "^2.0.0", "eslint-plugin-actions": "^2.0.0",
"eslint-plugin-flowtype": "^8.0.0", "eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.2", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.20.3", "eslint-plugin-react": "^7.31.1",
"flow-bin": "^0.135.0", "flow-bin": "^0.135.0",
"fs-extra": "^10.0.0", "fs-extra": "^10.1.0",
"got": "^11.8.0", "got": "^11.8.5",
"husky": "^4.2.5", "husky": "^4.3.8",
"istanbul-lib-coverage": "^3.0.0", "istanbul-lib-coverage": "^3.2.0",
"istanbul-lib-report": "^3.0.0", "istanbul-lib-report": "^3.0.0",
"istanbul-reports": "^3.0.2", "istanbul-reports": "^3.1.5",
"jest": "^27.0.0", "jest": "^29.0.1",
"jest-diff": "^27.0.0", "jest-diff": "^29.0.1",
"jest-matcher-utils": "^27.0.0", "jest-environment-jsdom": "^29.0.1",
"jest-message-util": "^27.0.0", "jest-matcher-utils": "^29.0.1",
"jest-serializer-html": "^7.0.0", "jest-message-util": "^29.0.1",
"js-yaml": "^4.0.0", "jest-serializer-html": "^7.1.0",
"js-yaml": "^4.1.0",
"json-stable-stringify": "^1.0.1", "json-stable-stringify": "^1.0.1",
"jspngopt": "^0.2.0", "jspngopt": "^0.2.0",
"less": "^4.0.0", "less": "^4.1.3",
"less-loader": "^10.0.0", "less-loader": "^11.0.0",
"mini-css-extract-plugin": "^2.0.0", "mini-css-extract-plugin": "^2.6.1",
"mkdirp": "^1.0.4", "mkdirp": "^1.0.4",
"p-retry": "^4.6.1", "p-retry": "^4.6.2",
"pako": "^2.0.0", "pako": "^2.0.4",
"postcss": "^8.0.0", "postcss": "^8.4.16",
"postcss-less": "^6.0.0", "postcss-less": "^6.0.0",
"postcss-loader": "^6.0.0", "postcss-loader": "^7.0.1",
"postcss-preset-env": "^7.0.0", "postcss-preset-env": "^7.8.0",
"prettier": "^2.0.5", "prettier": "^2.7.1",
"query-string": "^7.0.0", "query-string": "^7.1.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"rollup": "^2.21.0", "rollup": "^2.78.1",
"selenium-webdriver": "^4.0.0-beta.4", "selenium-webdriver": "^4.4.0",
"semantic-release": "^18.0.0", "semantic-release": "^19.0.5",
"sri-toolbox": "^0.2.0", "sri-toolbox": "^0.2.0",
"style-loader": "^3.0.0", "style-loader": "^3.3.1",
"stylelint": "^14.0.0", "stylelint": "^14.11.0",
"stylelint-config-standard": "^24.0.0", "stylelint-config-standard": "^28.0.0",
"terser-webpack-plugin": "^5.0.3", "terser-webpack-plugin": "^5.3.6",
"webpack": "^5.51.1", "webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.0.0", "webpack-bundle-analyzer": "^4.6.1",
"webpack-cli": "^4.8.0", "webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.0.0" "webpack-dev-server": "^4.10.1"
}, },
"bin": "cli.js", "bin": "cli.js",
"scripts": { "scripts": {
@@ -150,7 +151,7 @@
"dist:zip": "rimraf katex/ katex.tar.gz katex.zip && cp -R dist katex && tar czf katex.tar.gz katex && zip -rq katex.zip katex && rimraf katex/" "dist:zip": "rimraf katex/ katex.tar.gz katex.zip && cp -R dist katex && tar czf katex.tar.gz katex && zip -rq katex.zip katex && rimraf katex/"
}, },
"dependencies": { "dependencies": {
"commander": "^8.0.0" "commander": "^8.3.0"
}, },
"husky": { "husky": {
"hooks": { "hooks": {
@@ -173,7 +174,9 @@
"testMatch": [ "testMatch": [
"**/test/*-spec.js" "**/test/*-spec.js"
], ],
"testURL": "http://localhost/", "testEnvironmentOptions": {
"url": "http://localhost/"
},
"transform": { "transform": {
"^.+\\.js$": "babel-jest" "^.+\\.js$": "babel-jest"
}, },

11170
yarn.lock

File diff suppressed because it is too large Load Diff