Panagiotis Papadopoulos
8d09ff4299
fix(routes): remove unused wildcard in apiRoute "/api/options/:name/:value*"
...
the updateOption function that handles the req.param is just destructuring `const { name, value } = req.params;` and does nothing else with the path or any params.
The remaining parts of the wildcard (which can be accessed via req.param[0]) are just ignored here.
even with express v4, this would *always* just take and process the very first part of the path, in the exact wildcard's place, e.g.
`/api/options/locale/de` and
`/api/options/locale/de/test/whatever`
would *both* end up destructuring "value" from req.param as "de" (because it is in the exact place of the 'value' wildcard)
in express v5 the wildcard behaviour changes -> here req.param.value would return an array with the paths split into separate string.
but since the code previously regarded only the first part of the path -> we can just get rid of the wildcard and use a named route param
the only thing to keep in mind: if a request with more than one "value" is received, (e.g. `/api/options/locale/de/test/whatever`) -> since we don't have the wildcard anymore -> this will turn to a 404.
IMHO that is actually desirable here though
2025-04-08 23:50:53 +02:00
Panagiotis Papadopoulos
ba02070b7c
deps: upgrade @triliumnext/express-partial-content to 1.1.0
...
now we have full express 5 compatibility
2025-04-06 16:59:34 +02:00
Panagiotis Papadopoulos
ac270aecb6
deps: upgrade to express 5.1.0
...
our code is already compliant with v5, and is not affected by the breaking changes described here:
https://expressjs.com/en/guide/migrating-5.html
I ran their codemod command, and it did not find anything – so I also double-checked by manually checking for all of the described changed topics in the migration guide.
with this change npm will still print a warning, due to
`@triliumnext/express-partial-content@"1.0.1"`, which needs to be updated to v5 as well
2025-04-06 16:57:46 +02:00
Elian Doran
f58a90c648
feat(docs): sidebar, table of contents, highlights list
2025-04-06 17:13:21 +03:00
Elian Doran
19a540200e
chore(docs): sync
2025-04-06 16:19:17 +03:00
Elian Doran
c9e3fb90f1
feat(docs): reorganize & merge attachments
2025-04-06 16:04:55 +03:00
Elian Doran
fb6e6241d9
feat(docs): reorganize script notes & document render note
2025-04-06 15:30:54 +03:00
Elian Doran
161f6172e7
chore(docs): sync
2025-04-06 15:00:24 +03:00
Elian Doran
2e3d692419
chore(deps): update package-lock
2025-04-06 14:58:36 +03:00
Elian Doran
ab6d68fc68
chore(release): 0.92.6
v0.92.6
2025-04-06 12:46:07 +03:00
Elian Doran
7cd8554d11
fix(client): modal text color on dark mode
2025-04-06 12:38:09 +03:00
Elian Doran
807a2dc2c6
Merge pull request #1637 from TriliumNext/renovate/eslint-linter-browserify-9.x
...
fix(deps): update dependency eslint-linter-browserify to v9.24.0
2025-04-06 11:05:32 +03:00
Elian Doran
a82490302c
Merge pull request #1636 from TriliumNext/renovate/jquery.fancytree-2.x
...
fix(deps): update dependency jquery.fancytree to v2.38.5
2025-04-06 11:02:19 +03:00
renovate[bot]
213da7c32d
fix(deps): update dependency eslint-linter-browserify to v9.24.0
2025-04-06 01:35:35 +00:00
renovate[bot]
5db8b59b51
fix(deps): update dependency jquery.fancytree to v2.38.5
2025-04-06 01:35:22 +00:00
Elian Doran
d51151e84b
chore(docs): minor cleanup
2025-04-06 00:26:22 +03:00
Elian Doran
0b8eb66c05
fix(docs): improve reference links and fix broken links
2025-04-06 00:19:55 +03:00
Elian Doran
7c6e7cacae
fix(docs): extra ** for inline code
2025-04-06 00:00:44 +03:00
Elian Doran
8e1f0f8b27
feat(docs): document similar notes
2025-04-05 23:45:54 +03:00
Elian Doran
67f3b4d414
chore(docs): sync
2025-04-05 23:39:32 +03:00
Elian Doran
9593aa13bf
Merge pull request #1635 from TriliumNext/renovate/eslint-monorepo
...
chore(deps): update eslint monorepo to v9.24.0
2025-04-05 23:29:13 +03:00
renovate[bot]
503c7b6538
chore(deps): update eslint monorepo to v9.24.0
2025-04-05 19:45:58 +00:00
Elian Doran
572357cb18
Merge pull request #1634 from TriliumNext/renovate/typescript-5.x
...
chore(deps): update dependency typescript to v5.8.3
2025-04-05 22:44:49 +03:00
Elian Doran
3a07422238
Merge pull request #1633 from TriliumNext/renovate/electron-35.x
...
chore(deps): update dependency electron to v35.1.4
2025-04-05 22:44:10 +03:00
Elian Doran
af76c18837
Merge pull request #1632 from TriliumNext/renovate/bootstrap-5.x
...
chore(deps): update dependency bootstrap to v5.3.5
2025-04-05 22:43:31 +03:00
Elian Doran
60ad5743a7
Merge pull request #1631 from TriliumNext/renovate/better-sqlite3-7.x
...
chore(deps): update dependency @types/better-sqlite3 to v7.6.13
2025-04-05 22:41:58 +03:00
Elian Doran
820ea59c82
Merge pull request #1630 from TriliumNext/renovate/better-sqlite3-7.x-lockfile
...
chore(deps): update dependency @types/better-sqlite3 to v7.6.13
2025-04-05 22:41:49 +03:00
Elian Doran
74d55d500c
feat(editor): rewrite <s> to <del>
2025-04-05 22:37:02 +03:00
Elian Doran
ab416e02b4
feat(import/markdown): preserve column widths
2025-04-05 21:43:26 +03:00
Elian Doran
b6c185fd32
feat(import/markdown): preserve image width
2025-04-05 21:43:26 +03:00
Elian Doran
447439efd6
feat(import/markdown): preserve fractional widths
2025-04-05 21:43:26 +03:00
Elian Doran
698e68f280
Merge branch 'develop' into renovate/better-sqlite3-7.x-lockfile
2025-04-05 17:53:01 +03:00
Elian Doran
88cd8dfebb
Merge branch 'develop' into renovate/bootstrap-5.x
2025-04-05 17:52:47 +03:00
Elian Doran
680eb76970
Merge branch 'develop' into renovate/better-sqlite3-7.x
2025-04-05 17:51:57 +03:00
Elian Doran
12c9822db4
Merge branch 'develop' into renovate/electron-35.x
2025-04-05 17:51:41 +03:00
Elian Doran
cfcc4740a1
Merge branch 'develop' into renovate/typescript-5.x
2025-04-05 17:51:34 +03:00
Elian Doran
8977926c00
fix(test): failed test due to change in figure handling
2025-04-05 17:51:03 +03:00
Elian Doran
cdb5ebb080
feat(import/markdown): preserve trailing semicolon in figure style
2025-04-05 12:37:06 +03:00
Elian Doran
8cb10764b6
feat(import/markdown): preserve trailing semicolon in img
2025-04-05 12:31:02 +03:00
Elian Doran
64ccea5702
feat(import/markdown): preserve figure image size
2025-04-05 11:37:26 +03:00
Elian Doran
7293f59a80
fix(export/markdown): math expressions not working due to string escaping
2025-04-05 11:05:27 +03:00
Elian Doran
4bb767f8ee
fix(import/markdown): preserve escaped math expressions
2025-04-05 10:46:33 +03:00
Elian Doran
721bf455e1
refactor(import/markdown): add guard condition for processing math
2025-04-05 09:59:42 +03:00
Elian Doran
e6b9ecda5c
feat(import/markdown): import in-line math properly
2025-04-05 09:59:10 +03:00
Elian Doran
07b5cd3b05
feat(import/markdown): import in-display math properly
2025-04-05 09:57:44 +03:00
Elian Doran
fc4eb13e8d
feat(export/markdown): export display math properly
2025-04-05 09:32:08 +03:00
Elian Doran
894cfe4f7a
feat(export/markdown): export in-line math properly
2025-04-05 09:28:18 +03:00
renovate[bot]
116e4839cf
chore(deps): update dependency typescript to v5.8.3
2025-04-05 00:38:17 +00:00
renovate[bot]
62e72e7250
chore(deps): update dependency electron to v35.1.4
2025-04-05 00:38:07 +00:00
renovate[bot]
67ff1e7e29
chore(deps): update dependency bootstrap to v5.3.5
2025-04-05 00:37:56 +00:00