Commit graph

5717 commits

Author SHA1 Message Date
Tilman Vatteroth
8e2d59ff3c fix(commons): replace microbundle with bash based compile script
The commons package ships wrong types because it is refering to the same files for the ESM and the CJS build.
See https://arethetypeswrong.github.io/?p=%40mrdrogdrog%2Foptional%401.1.0

This happens because microbundle can handle the generation of `.mjs` and `.cjs` from files itself but delegates the generation of types entirely to typescript by running it once. Microbundle uses the "type" field from the package.json to know if a `.js` file is meant to be mjs or cjs and generates the other type by using the specific file extension `.cjs` and `.mjs` (so if your package is a `type: module`, then `.js` file are interpreted as ECMAModule and if you have a commonjs file you need to name it `.cjs`).  But this causes a problem with typescript. If you use typescript with the newer module resolver then it expects the type declarations to be named exactly like the file you wanna import. So if you have a `.js` file it will try to look up types in a `.d.ts` file. If it is resolving a `.mjs` file it is looking for a `.d.mts` file.

This clashes with the types generated by microbundle because you can't use a `.mjs` file with a `.d.ts` file.

Running typescript multiple times can also be complicated.
When generating type declaration files, typescript takes a look at the source file extension. So a `.mts` file will generate a `.mjs` and a `.d.mts` file. A `.ts` will generate a `.js` and `.d.ts` file. It doesn't matter if you run microbundle on `.ts`, `.mts` or `.cjs` files, it will only generate the type declarations once.

How do you get the other type declaration? To solve this problem you either have to run typescript multiple times and manipulate the input or output data to have correct `.d.mts` / `.d.cts` files AND imports... or do what this PR changes.

It runs typescript multiple times but places the complied files in different directories. It then places a package.json in both directories which declares if `.js` is commonjs or ESM.
This way the resolver is happy because it can import `.js` files according to the package.json content and typescript is happy because it can find type declarations. And because package.json files are inheriting properties from other package.json files no necessary file is missing.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-30 14:56:29 +02:00
renovate[bot]
1155fdd248 fix(deps): update dependency @hedgedoc/markdown-it-plugins to v2.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 12:13:04 +00:00
renovate[bot]
a13d2026a0 fix(deps): update dependency @hedgedoc/markdown-it-plugins to v2.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 13:42:10 +02:00
renovate[bot]
8f26d17d30 fix(deps): update dependency @hedgedoc/html-to-react to v2.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 13:01:55 +02:00
renovate[bot]
3a1da59c16 fix(deps): update dependency @mrdrogdrog/optional to v1.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 11:51:05 +02:00
renovate[bot]
aa839c26f3 fix(deps): update dependency mermaid to v10.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-30 10:31:00 +02:00
renovate[bot]
ea97c24637 chore(deps): update dependency mkdocs to v1.5.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 10:04:30 +02:00
renovate[bot]
71bf73dd76 fix(deps): update dependency i18next to v23.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 09:52:45 +02:00
renovate[bot]
65887f4092 fix(deps): update nestjs packages
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 09:52:14 +02:00
renovate[bot]
47c623e228 fix(deps): update dependency @types/katex to v0.16.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 01:25:24 +00:00
renovate[bot]
85b2e04bd9 fix(deps): update dependency react-redux to v8.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-29 18:16:42 +00:00
renovate[bot]
7d92527bb8 fix(deps): update dependency @uiw/react-codemirror to v4.21.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-29 15:40:38 +00:00
renovate[bot]
8fdc732778 chore(deps): update github/codeql-action action to v2.21.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-29 13:35:01 +00:00
renovate[bot]
a4469cef21 chore(deps): update postgres:15.3 docker digest to 8775adb
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-29 10:25:45 +00:00
renovate[bot]
489d996e9a chore(deps): update dependency mkdocs-material to v9.1.21
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-29 10:19:32 +00:00
renovate[bot]
b016f7127d chore(deps): update linters
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-29 09:35:29 +02:00
renovate[bot]
6327f7fa16 chore(deps): update test packages to v29.6.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-27 10:56:59 +00:00
renovate[bot]
fbd8137eb8 chore(deps): update dependency mkdocs-material to v9.1.20
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-27 10:48:22 +00:00
renovate[bot]
e53ed77301 chore(deps): update github/codeql-action action to v2.21.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-26 21:48:38 +00:00
renovate[bot]
828f0e4c1d chore(deps): update dependency @types/react to v18.2.17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-26 18:28:07 +00:00
renovate[bot]
cd71313a31 fix(deps): update dependency bootstrap to v5.3.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-26 09:42:37 +00:00
renovate[bot]
a596862c0a chore(deps): update dependency turbo to v1.10.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-25 23:14:48 +00:00
renovate[bot]
15eaadcf18 chore(deps): update dependency @types/node to v20.4.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-25 23:11:51 +00:00
renovate[bot]
81691df454 fix(deps): update nestjs packages to v10.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-25 09:30:35 +00:00
renovate[bot]
a8359cc24b chore(deps): update dependency turbo to v1.10.11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 23:26:41 +00:00
renovate[bot]
7908158b6b chore(deps): update definitelytyped
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 23:24:25 +00:00
renovate[bot]
117d42b543 chore(deps): update typescript-eslint monorepo to v6.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 20:39:36 +02:00
renovate[bot]
d9447b45ac chore(deps): update dependency @types/markdown-it-container to v2.0.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 18:17:12 +00:00
Avinash
a948493410 feat(frontend): delete revision
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
2023-07-24 20:05:10 +02:00
renovate[bot]
354a51fd72 fix(deps): update nestjs packages to v10.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 10:44:06 +00:00
renovate[bot]
519e7130c2 chore(deps): update dependency @types/node to v20.4.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 04:06:19 +00:00
renovate[bot]
b6c36da4e7 chore(deps): lock file maintenance
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-24 00:58:05 +00:00
renovate[bot]
97e85614a7 chore(deps): update dependency @trivago/prettier-plugin-sort-imports to v4.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 11:56:48 +02:00
renovate[bot]
237e8bf2e5 chore(deps): update dependency node to v20.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 11:44:17 +02:00
renovate[bot]
a7822c9710 fix(deps): update dependency vega-lite to v5.14.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 11:44:06 +02:00
renovate[bot]
2778cd16b7 chore(deps): update github/codeql-action action to v2.21.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 11:40:09 +02:00
Philip Molares
d185e2e694 refactor: rename HD_AUTH_LDAPS to HD_AUTH_LDAP_SERVERS
This was done as LDAPS us both the plural of LDAP and the common abbreviation for secure LDAP connections.

Fixes #4460

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-07-22 11:37:17 +02:00
renovate[bot]
b7bee33d85 fix(deps): update dependency sass to v1.64.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 04:57:12 +00:00
renovate[bot]
b24a4da322 fix(deps): update dependency @uiw/react-codemirror to v4.21.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 01:13:44 +00:00
renovate[bot]
b38a05ca78 chore(deps): update node.js to 49f1c20
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 01:09:23 +00:00
renovate[bot]
6c68a87399 chore(deps): update dependency @types/node to v20.4.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-22 01:07:45 +00:00
renovate[bot]
3764e37c6f chore(deps): update nextjs monorepo to v13.4.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 22:06:16 +00:00
renovate[bot]
dd79b342da chore(deps): update dependency eslint-config-next to v13.4.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 22:03:23 +00:00
renovate[bot]
a7d7e7f2cb chore(deps): update node.js to ab25f1a
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 22:02:45 +00:00
renovate[bot]
2e00dcf839 fix(deps): update dependency sass to v1.64.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 23:48:41 +02:00
renovate[bot]
523f86e0ec fix(deps): update dependency sharp to v0.32.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 13:48:04 +00:00
renovate[bot]
a97a4607e9 chore(deps): update nextjs monorepo to v13.4.11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 06:25:49 +00:00
renovate[bot]
6b5c83d02a chore(deps): update dependency eslint-config-next to v13.4.11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 06:24:44 +00:00
renovate[bot]
371f193fbd chore(deps): update dependency @types/luxon to v3.3.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 01:03:57 +00:00
renovate[bot]
02f2d57f12 chore(deps): update dependency cypress to v12.17.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 18:59:01 +00:00