Commit graph

510 commits

Author SHA1 Message Date
Andrew Rumble
a480df8a89 Merge pull request #18828 from overleaf/ac-node-20
Upgrade Node from `18.20.2` to `20.17.0`

GitOrigin-RevId: 0ba9b0921fc246a97d3da0aad7d48635c0e24ae8
2024-10-30 09:04:38 +00:00
Jakob Ackermann
29381cf054 Merge pull request #21321 from overleaf/jpa-reconfigure-filestore
[filestore] refactor acceptance tests

GitOrigin-RevId: a6bb1527220b1c062d980c79d2ccb62973b99d2c
2024-10-25 08:06:02 +00:00
Alf Eaton
d8ce066898 Allow selection of spell-check languages that are only supported in the client-side spell checker (#21053)
GitOrigin-RevId: 3bff6c14ee4c3cbf322c00ac29d23b60d89737bc
2024-10-16 09:35:43 +00:00
Andrew Rumble
d711d35466 Add a rule to catch commonjs code in es modules
GitOrigin-RevId: 7c8efb2b53e981ad32140bcfbeb0f81270936337
2024-10-14 11:11:09 +00:00
Brian Gough
4920af44b0 Merge pull request #20679 from overleaf/bg-issue19022
Move flush_all_projects endpoint in document-updater into script

GitOrigin-RevId: cb774d860b5928b7fece1a8e21b0b76aecae73ff
2024-10-14 11:10:42 +00:00
Antoine Clausse
4a8b79080b [storybook] Update Storybook and add a control for BS3/BS5 (#20948)
* [storybook] Update Storybook to version 8.3.5

* [storybook] Run storybook with `--no-open`. Fixes xdg-utils issue

* [storybook] Create decorator for BS3/BS5

* [storybook] Add `bsVersionDecorator` to stories

* [storybook] Fix bugs in stories

* [storybook] Fixup `useMeta` type. Use `DeepPartial`

* [storybook] Fix types

GitOrigin-RevId: 48c0f0fefb1ab2d4863ab59051b900b1908a613c
2024-10-14 11:07:40 +00:00
Alf Eaton
d9a4c5b2bc Only use sentry-cli sourcemaps upload (#20852)
GitOrigin-RevId: d7effc1ca24a987079811acc0476cc55c9b1b4af
2024-10-14 11:06:41 +00:00
Eric Mc Sween
16d3d59bc1 Merge pull request #20869 from overleaf/em-ranges-tracker-duplicate-ids
Fix handling of duplicate change ids in RangesTracker

GitOrigin-RevId: 1a75d1dc7e7931c459d2d004973f34d931100d33
2024-10-14 11:05:30 +00:00
andrew rumble
50c74c3168 Add esmock for tests
GitOrigin-RevId: 42be4094f8551a1588de5048b4876557e16888f1
2024-10-14 11:05:07 +00:00
Alf Eaton
a9fac2370b Upgrade Sentry SDK (#20806)
GitOrigin-RevId: 70cfbfd7f2ae61bbc865d32c576aa8f195837fb5
2024-10-14 11:01:28 +00:00
Alf Eaton
a457c611c8 Update caniuse-lite
GitOrigin-RevId: 772b59d2b370e681ff39de5adff27819e3fd03ec
2024-10-14 11:00:59 +00:00
Alf Eaton
0521371648 Update core-js
GitOrigin-RevId: 6273d290704fb9e96c706a69ed7bab33af88dcd0
2024-10-14 11:00:55 +00:00
Alf Eaton
5c4669232c Upgrade PDF.js to 4.6.82
GitOrigin-RevId: 752120f0e6ae5600e4c3a017888423acc240d04b
2024-10-14 11:00:50 +00:00
Alf Eaton
5e7f4feeb8 Remove pdfjs-dist split test
GitOrigin-RevId: 39c8a54921c2b541a5bbe3670e1baa6fd9d5f745
2024-10-14 11:00:36 +00:00
Liangjun Song
b10d54fdc7 Merge pull request #20738 from overleaf/ls-upgrade-path-to-regexp
upgrade path-to-regexp to patched version

GitOrigin-RevId: f14142d8ad61fcb2bc5a7b74a8d7287d5fea0630
2024-10-14 10:58:46 +00:00
Alf Eaton
24c8629cd4 Use Hunspell for client-side spellchecking (#20286)
GitOrigin-RevId: c4d0d9e06fe0cc9d7cb7a058fd0768eb024e44f5
2024-10-14 10:58:36 +00:00
Liangjun Song
8309671a8c Merge pull request #20684 from overleaf/ls-patch-swagger-tools
patch swagger-tools

GitOrigin-RevId: ea37be979f7ba928afe8cc3b8b26c16f3abddbc5
2024-10-14 10:57:17 +00:00
Antoine Clausse
6c2cf20125 Merge pull request #20552 from overleaf/ac-update-node-fetch-2
Reapply "Upgrade node-fetch to 2.7.0", Fix fetch-utils tests

GitOrigin-RevId: b42a2d2c50ce73f474e39755845e4df065f30b48
2024-10-01 08:05:18 +00:00
Alf Eaton
1cf1624aea Remove missing entries from package-lock.json (#20636)
GitOrigin-RevId: 12f4f3f218b959aab4470cc8deba446719549bce
2024-09-30 08:04:30 +00:00
Liangjun Song
cfd0b39b96 Merge pull request #20557 from overleaf/ls-bump-express
update express and other dependencies

GitOrigin-RevId: 22107eab0fa95d534ab07360548ae2b2123776db
2024-09-27 08:04:18 +00:00
andrew rumble
35afb713a3 Upgrade mongodb-legacy and mongoose to latest
GitOrigin-RevId: a581ebca5a3c0108ad37a6ea55b7772a065793d9
2024-09-24 08:06:36 +00:00
Alf Eaton
9180d85c87 Replace bson import with mongodb
GitOrigin-RevId: f353eb6f76bac55f576c932d868e26322e2e3967
2024-09-24 08:06:15 +00:00
Alf Eaton
da020196b3 Upgrade bson
GitOrigin-RevId: 8acce817daab7a2b791e73cbc81ef88ac3a91fbc
2024-09-24 08:06:03 +00:00
Jakob Ackermann
8fa676082e Merge pull request #20299 from overleaf/jpa-object-persistor-metrics-dep
[object-persistor] depend on @overleaf/metrics directly

GitOrigin-RevId: eb0c07af8101d44def14154abb552bc77254e074
2024-09-24 08:05:50 +00:00
Antoine Clausse
2179d62d74 Merge pull request #20549 from overleaf/revert-20165-ac-update-node-fetch
Revert "Upgrade node-fetch to 2.7.0"

GitOrigin-RevId: 928df97c6fbc81f21097aaf9c331b0c70eeac002
2024-09-24 08:04:44 +00:00
Antoine Clausse
da3553d800 Upgrade node-fetch to 2.7.0 (#20165)
* Set `node-fetch` to `^2.7.0`

* Update package-lock.json

```
# root
bin/npm update node-fetch
bin/npm update cross-fetch

# in other path in docker
npm update node-fetch
```

* Update node-fetch patch

* [fetch-utils] Skip the test: destroys the request body if it doesn't get consumed

```
  1) fetch-utils
       fetchJson
         destroys the request body if it doesn't get consumed:
     FetchError: Invalid response body while trying to fetch http://example.com:30001/json/ignore-request: write EPIPE
      at PassThrough.<anonymous> (/overleaf/node_modules/node-fetch/lib/index.js:400:12)
      at PassThrough.emit (node:events:529:35)
      at emitErrorNT (node:internal/streams/destroy:151:8)
      at emitErrorCloseNT (node:internal/streams/destroy:116:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
```

* [fetch-utils] Delete the test: destroys the request body if it doesn't get consumed

* Remove the `setTimeout` in the node-fetch patch

Fixes a test and doesn't break filestore acceptance tests

* Update node-fetch patch again: bring changes from https://github.com/node-fetch/node-fetch/blob/e87b093/src/index.js

* Update node-fetch patch again: bring changes from https://github.com/node-fetch/node-fetch/blob/e87b093/src/index.js

* Update node-fetch patches back to single lines

Per https://github.com/overleaf/internal/pull/20165#discussion_r1739035513

GitOrigin-RevId: 945e5a12e838673b7bc87b588b7aca1bcd9109e2
2024-09-24 08:04:39 +00:00
Antoine Clausse
6972186161 [latexqc] Disable cross-origin-*-policy (#20529)
* [latexqc] Disable `crossOriginEmbedderPolicy`

* [latexqc] Disable `crossOriginOpenerPolicy` and `crossOriginResourcePolicy`

* [latexqc] Update to helmet v7

* [latexqc] Disable `xPermittedCrossDomainPolicies`

GitOrigin-RevId: 36e4138b4ecb29fb8692f174e4f192f6eb554dc9
2024-09-23 08:04:42 +00:00
Antoine Clausse
3c459e2032 [latexqc] Update frontend dependencies (#20310)
* Add `LaTeX Quality Control` to the readme

* Update dependencies

* Match `web` version
* Update to modern packages
* Update to modern versions

* Import `Link` from `react-router-dom`

* Import Helmet correctly

* Remove `react-router-redux`

It seems that we're not actually getting anything from it (?)

* Update component containers/App

* Revert unecessary changes to containers/App

* Update component containers/Upload

* Revert unnecessary changes to container/Upload

* Fix links

* Add `withNavigation` HOC
* Fix link to `/upload`
* Remove unneeded `navigate` props

* SSR: Use `StaticRouterProvider`

* CSR: Use `createBrowserRouter`

* SSR: Simplify since we don't need to perform queries

* Add `data-testid`s to components

* Update tests (`enzyme` -> `@testing-library`)

* Remove unneeded "before" in tests

* Revert "Remove unneeded "before" in tests"

(actually necessary)

* Rename `devToolsExtension` to `__REDUX_DEVTOOLS_EXTENSION__`

Per https://github.com/zalmoxisus/redux-devtools-extension/issues/220

* Return 404 on invalid paths

* Remove unuseds dependencies

* Re-implement react-router `onUpdate` with `RouteChangedHandler`

It appears that `onUpdate` was removed from react-router
https://github.com/remix-run/react-router/issues/4278

* Update package-lock

* Remove debug log

GitOrigin-RevId: 3244b4266b53ac57a92ed4adc7c0e00b93a6b361
2024-09-20 08:06:00 +00:00
MoxAmber
d9e5411ef3 Merge pull request #20444 from overleaf/td-bs5-add-non-react-types
Add types for Bootstrap 5 vanilla JavaScript

GitOrigin-RevId: 94efb0ba8fb0cea65f8a0993940bf76cd197c61e
2024-09-20 08:05:41 +00:00
andrew rumble
e537835718 Remove request dep and move fetch-utils to main deps
GitOrigin-RevId: c11bb10ab753bc726332a924b3d13617a1fb3b40
2024-09-17 08:05:12 +00:00
Alf Eaton
090c80a7bb Remove worker-loader (#20253)
GitOrigin-RevId: a702c0180c1445e6b14fa8691882870741f8aa3b
2024-09-13 08:05:00 +00:00
Antoine Clausse
7469aac0eb Upgrade swagger-tools/multer and swagger-tools/qs, using NPM overrides (#19877)
GitOrigin-RevId: b338a32b5f504993d9cb94a0a3b04ac66179788d
2024-09-09 08:05:21 +00:00
andrew rumble
13d275a353 Convert references acceptance tests to use fetch-utils
GitOrigin-RevId: 9adebf1926a406af6a6dfbd3a091a4d8fd8764da
2024-09-09 08:04:45 +00:00
Mathias Jakobsen
663e2304f6 Merge pull request #20272 from overleaf/revert-20268-revert-19885-mj-resizeable-panels
[web] Upgrade react-resizable-panels (2nd attempt)

GitOrigin-RevId: 643a90044dac0daf39245fa29267b16550fd6e69
2024-09-06 08:05:28 +00:00
andrew rumble
7677174670 Bump @grpc/grpc-js to 1.8.22 and 1.10.11
These versions patch a vulnerability

GitOrigin-RevId: cb0c13d5fcf8276b93bb1dfb34709f423ebe4346
2024-09-06 08:04:39 +00:00
Mathias Jakobsen
99269d3928 Merge pull request #20268 from overleaf/revert-19885-mj-resizeable-panels
Revert "[web] Upgrade react-resizable-panels"

GitOrigin-RevId: 65b6cf9656c1116f77ae5dc3ceec1106e898d6f9
2024-09-05 08:05:03 +00:00
Mathias Jakobsen
2d9e4965f7 Merge pull request #19885 from overleaf/mj-resizeable-panels
[web] Upgrade react-resizable-panels

GitOrigin-RevId: 6b316dfb43ff841e863c83d1393ca88299eeefa2
2024-09-05 08:04:48 +00:00
Alf Eaton
de8acd2ed8 Upgrade @codemirror dependencies (#20103)
* Upgrade `@codemirror` dependencies
* Set EditorView.EDIT_CONTEXT=false

GitOrigin-RevId: 8024715748102a56f1b22e72be8a2019e80b5a07
2024-09-04 08:05:07 +00:00
Mathias Jakobsen
496a63cf23 Merge pull request #20058 from overleaf/mj-promisify-tpr
[third-party-references] Promisify third-party-references

GitOrigin-RevId: cfc462abaca95ed10798b3d1756950f2997a5947
2024-09-02 08:04:55 +00:00
andrew rumble
b28d9c15e4 Convert github-sync files to use fetch-utils
GitOrigin-RevId: 5b3a40bbeac54d00d566144d5642b2b36171b239
2024-09-02 08:04:42 +00:00
Jimmy Domagala-Tang
5b07afcd20 Merge pull request #20182 from overleaf/jdt-vim-gk-update
Update codemirror-vim to include gk arrow patch

GitOrigin-RevId: cb24eb4dca19644ea75b2b94092c6038ebb7328c
2024-08-30 08:05:02 +00:00
Eric Mc Sween
ed981ea554 Merge pull request #19987 from overleaf/em-promisify-sync-manager
Promisify SyncManager in github-sync

GitOrigin-RevId: 4d10badaab4247908b1507c40c5a7e7076b9bca2
2024-08-27 08:04:36 +00:00
Jakob Ackermann
577497b655 Merge pull request #19842 from overleaf/jpa-ro-mirror-on-client
[misc] add readonly mirror of full project content on the client

GitOrigin-RevId: 940bd93bfd587f83ca383d10fc44579b38fc3e88
2024-08-22 08:05:13 +00:00
Mathias Jakobsen
52ff5ec4a7 Merge pull request #20030 from overleaf/mj-autocomplete-upgrade
[web] Upgrade codemirror/autocomplete version

GitOrigin-RevId: 3c2beebdd0217422d0c24defeb54ad62b5b0f0bf
2024-08-21 08:05:12 +00:00
andrew rumble
032deaf05c Switch to mongodb-legacy
GitOrigin-RevId: 11e09528c153de6b7766d18c3c90d94962190371
2024-08-21 08:04:24 +00:00
andrew rumble
04b46fa5ff Install new mongodb-legacy and mongoose
GitOrigin-RevId: 66000d8c4752fcd51152854ff1eb255f7382607c
2024-08-21 08:04:19 +00:00
ilkin-overleaf
2e6556c137 Merge pull request #20006 from overleaf/ii-upgrade-axios
[web] Upgrade axios

GitOrigin-RevId: 0a69177dcf46b62fc7e3f9ed2f3a0b2ef8f5803d
2024-08-20 08:04:44 +00:00
Rebeka Dekany
674300ed61 Merge pull request #19995 from overleaf/rd-remove-requirejs
Remove unused requirejs library

GitOrigin-RevId: fcdfe089d9a6f901b0470880dc1c260978646f14
2024-08-20 08:04:13 +00:00
Brian Gough
bdbc17c374 Merge pull request #19951 from overleaf/bg-remove-unused-redis-from-project-history
Remove unused modules from project-history

GitOrigin-RevId: 668793c334b7ee1d6c16fccfc686bc758bf8ecb4
2024-08-16 08:04:40 +00:00
Jakob Ackermann
3836323724 Merge pull request #19817 from overleaf/jpa-types
[overleaf-editor-core] stronger type checking via web

GitOrigin-RevId: 427019f40e2905f2e0ec11dc09f5fccdbb1f905b
2024-08-08 08:05:01 +00:00