Commit graph

523 commits

Author SHA1 Message Date
Alf Eaton
54ec174331 Upgrade PDF.js to v4.8.69 (#21711)
GitOrigin-RevId: 91e0298467034b651d013d73bc41a9efcae7a729
2024-11-12 09:05:23 +00:00
Antoine Clausse
7f48c67512 Add prefer-node-protocol ESLint rule (#21532)
* Add `unicorn/prefer-node-protocol`

* Fix `unicorn/prefer-node-protocol` ESLint errors

* Run `npm run format:fix`

* Add sandboxed-module sourceTransformers in mocha setups

Fix `no such file or directory, open 'node:fs'` in `sandboxed-module`

* Remove `node:` in the SandboxedModule requires

* Fix new linting errors with `node:`

GitOrigin-RevId: 68f6e31e2191fcff4cb8058dd0a6914c14f59926
2024-11-11 09:04:51 +00:00
Jakob Ackermann
252533b2fd Merge pull request #21668 from overleaf/jpa-mongo-utils
[mongo-utils] create new home for batchedUpdate helper

GitOrigin-RevId: 9f61c5e367a9f4cef63b5cc4c0bbbd3ef57c8ca8
2024-11-08 09:07:09 +00:00
Jakob Ackermann
122d89a831 Merge pull request #21660 from overleaf/jpa-s3-https
[object-persistor] s3: simplify using a custom CA for HTTPS endpoints

GitOrigin-RevId: 2c6a5312a842582e5e40e917ccc586392087cb7a
2024-11-08 09:07:00 +00:00
Jakob Ackermann
859901ac0c Merge pull request #21380 from overleaf/jpa-s3-ssec-backend
[object-persistor] add backend for SSE-C with S3 using KEK and DEK

GitOrigin-RevId: 9676f5cd5e08107c8c284b68b8d450a1c05bf1b1
2024-11-08 09:06:37 +00:00
Alf Eaton
db8d7a7af0 Upgrade CodeMirror dependencies (#20618)
GitOrigin-RevId: c1d45e73784fd26db09e9930bc504d2d78c05b12
2024-11-08 09:04:39 +00:00
Andrew Rumble
7fb5d1f0f7 Remove ip from monorepo services
GitOrigin-RevId: ea734787fbf31fd667aebe928ecc1e9785ac1185
2024-11-07 09:04:27 +00:00
Andrew Rumble
ba7d11d854 Merge pull request #21105 from overleaf/ar-es-module-helper-scripts
[web] ES module helper scripts

GitOrigin-RevId: ebbb123b6e7336215038156b83e96ad42869bb07
2024-11-04 09:04:30 +00:00
Jakob Ackermann
9745c045ba Merge pull request #21510 from overleaf/jpa-dependency-cleanup
[web] dependency cleanup

GitOrigin-RevId: 5b1e0ace2b0acfd7b1b839520f7c24acda8027e3
2024-11-01 09:05:28 +00:00
Jakob Ackermann
5bb90dc6cb Merge pull request #21442 from overleaf/jpa-align-mongo-version
[misc] align all the mongodb dependency versions

GitOrigin-RevId: 1194fe57601af98bb61250a285bfc85b4b8179dd
2024-11-01 09:05:23 +00:00
Jakob Ackermann
7b3e39f63f Merge pull request #21375 from overleaf/jpa-if-none-match
[object-persistor] add support for ifNoneMatch=* in sendStream

GitOrigin-RevId: 268f054ac1b6452105b02757cdec32bad00702fd
2024-11-01 09:05:11 +00:00
Tim Down
06c315760e Merge pull request #21127 from overleaf/td-bs5-upgrade-react-bootstrap
Upgrade react-bootstrap to 2.10.5

GitOrigin-RevId: 7dec4a603cb62226d4a298deca6c394a029b630c
2024-11-01 09:04:51 +00:00
Andrew Rumble
79d80cc266 Merge pull request #21462 from overleaf/revert-18828-ac-node-20
Revert "Upgrade Node from `18.20.2` to `20.17.0`"

GitOrigin-RevId: cc12c33b4588caa2959817a113547d20d437d6f4
2024-10-30 09:05:07 +00:00
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