Commit Graph

10 Commits

Author SHA1 Message Date
Mats Jun Larsen
5eea63328f Migrate to Biome for linting and formatting (#7033) 2025-02-02 17:54:31 +00:00
goto40
7476cf387c fix: changed ClientStateExecutor.arguments type to string (was: any[]) - closes #7037 (#7044)
Just a small fix concerning the type (and the default value!) of
`ClientStateExecutor.arguments`.

This solves #7037 .

**Please have a detailed look at my changes**, since I have no deep
insight in all dependencies of this software (however, the tests pass)!

I tested the new code with the link in #7037 - and I tested the error
(wrong type) with [this link (the arguments are a list
here)](http://localhost:10240/clientstate/eNpNUEFqwzAQ/MqiQrCJS0jSk5205AW9hF7qHGRFuAJ5baQVpAj9vSvjmCKENLOj2dVE4bX3ZkQvaviOwtz53FcgrMQ+yF4zFGq7FUz5MTg1Ey2+GFQ23DWcJmeQ3lv05IIiuEBkDI/qt0lNiy2SHiYriZXKSu/hylqD1qAGxW0JrhsY5AOKBcFGVrDeuxIiu5DTFByChBN08MG7Bsn2KXfI/QZpsJi1AJ7udT2PZbFoBZsXx+qtPMfU8jeesGyydrebiUvcV4dUXSJXUq6k/GE1DpOx2s3Z3JjQD60CjW4JS7o+DBpprT8fMF6iFL1HOfmfkbKhNd2qHSdaYhevPPGZQz4cRfrn8hloCvRlvOlsjp0D1unG6w9dpIzQ).

**Note:** I check manually for the correct type and throw a `TypeError`
in case of problems. We could add a proper JSON-Schema definition of
important Data Types and include a Schema-check (I have good experience
with `zod`, but there are many of such libs). **If you are interested**,
I could prepare a demo-PR with e.g. `zod` for the `ClientStateExecutor`?
2024-11-01 10:32:06 +02:00
Ofek
63dd5e35a5 Various tsifications (#7025) 2024-10-27 15:28:38 +02:00
Ofek
577b335c78 Tsify most of clientstate (#7008)
Add typing, some refactoring to switch-case. Mark unused functions - but
not deleting yet, out of suspicion it has something to do with #6980.
2024-10-24 13:55:24 +03:00
Ofek
f5f00606f8 Tsifications galore (#6916)
Still mostly mindless numb work, one rename that touched many files
(`getArgumentParser` -> `getArgumentParserCls`), and a few real
improvements.
The goal is to be able to turn on `noImplicitAny` for the project, to
enforce higher code quality. 600 violations to go.
2024-10-01 12:26:46 +03:00
Patrick Quist
87d6f97bcc fix clientstate overrides and runtime tools and fix unittests (#6848) 2024-09-11 14:49:38 +02:00
partouf
e4f2bf6b42 update clientstate with filter binaryObject & libraryCode 2023-11-07 18:19:07 +01:00
fodinabor
e28e67d972 Add new "Debug intrinsics" filter. (#5045)
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is
useful to keep coloring the line correspondence between source and IR,
while not polluting the IR with the debug intrinsics.

Admittedly, I don't have much of a clue of what's going on here, so I
might be missing obvious adaptions (e.g. can we disable this for all
non-LLVM compilers for now somehow?).
Also, not really a Node.JS testing wizard either... 🤷🏼 

Just wanted this really bad for a workshop that's coming up soon ^^

Only tested with my system's default `clang` for now.

Fixes #5044

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-05-22 22:35:01 -05:00
Jeremy Rifkin
ed61396faf Tsify lib/clientstate-normalizer (#4720)
Depends on #4719
2023-02-12 11:51:33 -05:00
Jeremy Rifkin
32184fb330 Tsify lib/clientstate.js (#4719)
<!-- 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!
-->
2023-02-12 11:10:36 -05:00