aboutsummaryrefslogtreecommitdiff
path: root/lib/handlers/api.ts
Commit message (Collapse)AuthorAge
* eslint root setting and fixes (#6307)gh-11409Patrick Quist2024-04-16
|
* Load and show creation_date of shortlink (#5236)gh-8152Patrick Quist2023-07-17
|
* Common utilities and type work (#5200)gh-8021Jeremy Rifkin2023-06-28
| | | | | This PR refactors some common utilities out of lib/ and into shared/ and eliminates some use of underscore.js, as well as general type improvements done along the way.
* Lint fixesgh-7677Jeremy2023-06-11
|
* Capture errors in sentry better (#5128)gh-7675Jeremy Rifkin2023-06-11
| | | | | | | | | | Fixes #5127 and similar issues. Rationale: Whenever something that is not an Error object is passed to Sentry.captureException we get pretty much no useful information in sentry ![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/c7345449-f7a0-46cb-a198-abe0bd80a8b1) (usually not even a stacktrace)
* Transition to ECMAScript Modules (#4780)gh-6536Mats Jun Larsen2023-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the Compiler Explorer app, and all the tooling ESM compatible. Things that have been done: 1. The package.json has `type: module` now 2. All relative imports have a .js ending 3. All directory imports are now directory/index.js to comply with ESM standards 4. Dependency node-graceful is now imported into tree, because the package is broken under esm 5. Dependency p-queue has been bumped to 7.x with ESM support 6. Dependency profanities has been bumped to 3.x with ESM support 7. Webpack config is now both ESM and CommonJS compatible 8. Non-ESM compatible imports have been rewritten 9. ESLint configuration has been tweaked to not fail on .js imports 10. Mocha is now hacked together and ran with ts-node-esm 11. Webpack is now hacked together and ran with ts-node-esm 12. Webpack config is now ESM compatible, so that it can be used in the dev server 13. Cypress code still runs commonjs, and has been excluded from the tsconfig 14. All sinon mock tests have been commented out, because sinon module mocks do not work with ESModules (because ESModules are immutable) A lot of tests are now giving warnings/errors to stdout, yet still pass. Docenizer codegenerator scripts have been updated, but I did not re-run them, and instead just changed their code. --------- Co-authored-by: Matt Godbolt <matt@godbolt.org>
* Fix trailing comma issue (#4775)gh-6504Jeremy Rifkin2023-02-26
| | | | | Make trailing commas more consistent throughout the project, fixes config conflict between eslint and prettier. Resolves an oversight in #4766.
* Turn some auto-fixable eslint rules back on (#4766)gh-6434Jeremy Rifkin2023-02-23
| | | | | | This PR turns comma-dangle and indent eslint rules on for lib/. These are rules inherited from the eslint config for static/, this PR just makes things more consistent. Also turned @typescript-eslint/no-var-requires back on while I was here.
* Tsify app.js (#4767)gh-6433Jeremy Rifkin2023-02-23
| | | | I forgot about app.js, now this is actually the last file in our ts conversion (other than test/)
* Fix #4726 (#4727)gh-6267Jeremy Rifkin2023-02-12
| | | Along with #4720 this fixes #4726
* Tsify lib/handlers/route-api (#4707)gh-6241Jeremy Rifkin2023-02-10
| | | | Depends on https://github.com/compiler-explorer/compiler-explorer/pull/4704
* Tsify lib/handlers/api (#4704)gh-6238Jeremy Rifkin2023-02-10
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE IT Thanks for taking the time to improve CE. We really appreciate it. Before opening the PR, please make sure that the tests & linter pass their checks, by running `make check`. In the best case scenario, you are also adding tests to back up your changes, but don't sweat it if you don't. We can discuss them at a later date. Feel free to append your name to the CONTRIBUTORS.md file Thanks again, we really appreciate this! -->