anki/ts/lib
Damien Elmes c8458fce16
Update to Svelte 4, and update most other JS deps (#2565)
* eslint-plugin-svelte3 -> eslint-plugin-svelte

The former is deprecated, and blocks an update to Svelte 4.

Also drop unused svelte2tsx and types package.

* Drop unused symbols code for now

It may be added back in the future, but for now dropping it will save
200k from our editor bundle.

* Remove sass and caniuse-lite pins

The latter no longer seems to be required. The former was added to
suppress deprecation warnings when compiling the old bootstrap version
we have pinned. Those are hidden by the build tool now (though we really
need to address them at one point: https://github.com/ankitects/anki/issues/1385)

Also removed unused files section.

* Prevent proto compile from looking in node_modules/@types/sass

When deps are updated, tsc aborts because @types/sass is a dummy package
without an index.d.ts file.

* Filter Svelte warnings out of ./run

* Update to latest Bootstrap

This fixes the deprecation warnings we were getting during build:
bootstrap doesn't accept runtime CSS variables being set in Sass, as
it wants to apply transforms to the colors.

Closes #1385

* Start port to Svelte 4

- svelte-check tests have a bunch of failures; ./run works
- Svelte no longer exposes internals, so we can't use create_in_transition
- Also update esbuild and related components like esbuild-svelte

* Fix test failures

Had to add some more a11y warning ignores - have added
https://github.com/ankitects/anki/issues/2564 to address that in the
future.

* Remove some dependency pins

+ Remove sass, we don't need it directly

* Bump remaining JS deps that have a current semver

* Upgrade dprint/license-checker/marked

The new helper method avoids marked printing deprecation warnings to
the console.

Also remove unused lodash/long types, and move lodahs-es to devdeps

* Upgrade eslint and fluent packages

* Update @floating-ui/dom

The only dependencies remaining are currently blocked:

- Jest 29 gives some error about require vs import; may not be worth
investigating if we switch to Deno for the tests
- CodeMirror 6 is a big API change and will need work.

* Roll dprint back to an earlier version

GitHub dropped support for Ubuntu 18 runners, causing dprint's artifacts
to require a glibc version greater than what Anki CI currently has.
2023-07-01 16:21:53 +10:00
..
i18n Migrate to protobuf-es (#2547) 2023-06-14 22:47:37 +10:00
bridgecommand.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
cards.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
children-access.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
context-keys.ts Fix shortcuts for tag actions not working (#2214) 2022-11-27 10:29:58 +10:00
cross-browser.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
dom.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
events.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
functional.ts Last polishes for Surrounder class (#2017) 2022-08-17 16:00:37 +10:00
genfluent.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
globals.ts Split/Merge editor.py for its three use cases (#1581) 2022-01-12 14:51:43 +10:00
help-page.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
helpers.ts Update to Svelte 4, and update most other JS deps (#2565) 2023-07-01 16:21:53 +10:00
image-import.d.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
keys.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
nightmode.ts Update to Svelte 4, and update most other JS deps (#2565) 2023-07-01 16:21:53 +10:00
node.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
parsing.ts Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00
platform.ts Rework spinner buttons (#2230) 2022-12-04 13:18:49 +10:00
post.ts Migrate to protobuf-es (#2547) 2023-06-14 22:47:37 +10:00
promise.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
runtime-require.ts Expose onUpdateHook/onShownHook via package 2023-05-31 15:19:09 +10:00
shadow-dom.d.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
shortcuts.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
styling.ts Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
time.test.ts add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
time.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
tsconfig.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
typing.ts Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
ui.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
uuid.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
wrap.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00