Skip to content

Commit 1830a23

Browse files
authored
feat: Changelogs & Tagged releases (#100)
1 parent 4b2f4be commit 1830a23

File tree

7 files changed

+208
-5
lines changed

7 files changed

+208
-5
lines changed

CHANGELOG.md

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
## [1.0.0-beta.12](https://github.com/Remahy/forsenwiki/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2025-01-06)
2+
3+
### Features
4+
5+
* Changelogs ([dd3f738](https://github.com/Remahy/forsenwiki/commit/dd3f7386651baaa6fc5a01bc6d821d6051ecb834))
6+
## 1.0.0-beta.11 (2025-01-06) and prior
7+
8+
### Features
9+
10+
* /browse -ing around endpoint ([#27](https://github.com/Remahy/forsenwiki/issues/27)) ([fd03f14](https://github.com/Remahy/forsenwiki/commit/fd03f14c6fbea2f10cbf2169452a0f51e93a93c4))
11+
* Add programmatic version printing ([8c584fd](https://github.com/Remahy/forsenwiki/commit/8c584fd0530df799c14464150b106053ed012008))
12+
* Add simple UI style ([7f82bcd](https://github.com/Remahy/forsenwiki/commit/7f82bcdfdf771ed145f1e14364ba6dd6e1d93b61))
13+
* Content management ([#30](https://github.com/Remahy/forsenwiki/issues/30)) ([5c8b573](https://github.com/Remahy/forsenwiki/commit/5c8b573736718aa3003cd30c28bdc3d62a8f0dd3))
14+
* FallbackNode & More QoL ([#38](https://github.com/Remahy/forsenwiki/issues/38)) ([3748c0d](https://github.com/Remahy/forsenwiki/commit/3748c0d8753c32c9f73429cc84e0f9d27459c926))
15+
* Frontpage SSE ([#10](https://github.com/Remahy/forsenwiki/issues/10)) ([7154990](https://github.com/Remahy/forsenwiki/commit/7154990bb7bbe2b78a3776926573dc9a0d26088b))
16+
* History diff viewer ([#44](https://github.com/Remahy/forsenwiki/issues/44)) ([7fe389c](https://github.com/Remahy/forsenwiki/commit/7fe389c0772499f9a1e74659af3b47652f2c0a7d))
17+
* HTML cache bust & QoL improvements ([#99](https://github.com/Remahy/forsenwiki/issues/99)) ([5dec771](https://github.com/Remahy/forsenwiki/commit/5dec7716d8e34253527bc7142f0aacff90f4ec5a))
18+
* Improve article page & rudimentary ToC & dev fixes ([#77](https://github.com/Remahy/forsenwiki/issues/77)) ([fde63c8](https://github.com/Remahy/forsenwiki/commit/fde63c8f0afec37e3ed0a4bfc41f2bd2a30ebcc5))
19+
* Post creation & Twitch login ([#1](https://github.com/Remahy/forsenwiki/issues/1)) ([33cd98d](https://github.com/Remahy/forsenwiki/commit/33cd98d027b6e2802190050acf3f3c4b8858e0e7))
20+
* Post read ([#4](https://github.com/Remahy/forsenwiki/issues/4)) ([3f692c4](https://github.com/Remahy/forsenwiki/commit/3f692c41bb928d3fe1c2da6c3f05ca67ba22c166))
21+
* Post update ([#9](https://github.com/Remahy/forsenwiki/issues/9)) ([b646a04](https://github.com/Remahy/forsenwiki/commit/b646a04b7cd5221f6465d1593a7906455d7819e4))
22+
* Random endpoint ([#76](https://github.com/Remahy/forsenwiki/issues/76)) ([1b8ebfd](https://github.com/Remahy/forsenwiki/commit/1b8ebfdf48209733321d07b75c6816cb9d09da54))
23+
* Recent updates takes you to the historical version & diff editor fix ([#79](https://github.com/Remahy/forsenwiki/issues/79)) ([bba42a0](https://github.com/Remahy/forsenwiki/commit/bba42a0129f119d924c0c359d1741d0186c0fbc6))
24+
* Reset draft cache button ([#57](https://github.com/Remahy/forsenwiki/issues/57)) ([90a8653](https://github.com/Remahy/forsenwiki/commit/90a8653f35b993cdc4d6411a46bf71b4a922f6ff))
25+
* Rudimentary table diff ([#89](https://github.com/Remahy/forsenwiki/issues/89)) ([373ca8f](https://github.com/Remahy/forsenwiki/commit/373ca8f90ac2bf96a15f309071572ebfb81a05da))
26+
* Search endpoint ([#20](https://github.com/Remahy/forsenwiki/issues/20)) ([7c0a3c4](https://github.com/Remahy/forsenwiki/commit/7c0a3c49859836969c3c5c1d1eb1554a2059e1a7))
27+
* Setup prisma & authjs ([4ccf76d](https://github.com/Remahy/forsenwiki/commit/4ccf76dc5bced7efe070cf95be5f28c3b8706ba2))
28+
* Show article authors & send less data on requests & img fixes ([#26](https://github.com/Remahy/forsenwiki/issues/26)) ([40a1d3c](https://github.com/Remahy/forsenwiki/commit/40a1d3c03f94ffe384a1572761a6731b2d3fc27b))
29+
* Static content (images) ([#11](https://github.com/Remahy/forsenwiki/issues/11)) ([0ef5a87](https://github.com/Remahy/forsenwiki/commit/0ef5a87aca4bd47a9c5b7bc1cd0569d227dfd01e))
30+
* Style changes & forsen-wiki-theme classnames ([#71](https://github.com/Remahy/forsenwiki/issues/71)) ([b614397](https://github.com/Remahy/forsenwiki/commit/b6143979b5c93704d1f0de0edf0e2f77dca309fb))
31+
* Support YouTube clips & Handle new twitch clip url ([#74](https://github.com/Remahy/forsenwiki/issues/74)) ([43b26f7](https://github.com/Remahy/forsenwiki/commit/43b26f79ad5f098a5b61791a46e8923e41234da2))
32+
* Tables ([#83](https://github.com/Remahy/forsenwiki/issues/83)) ([16bd5e8](https://github.com/Remahy/forsenwiki/commit/16bd5e8b3b960f329acc136b01dc15e759626da0))
33+
* YouTube & Twitch embeds ([#35](https://github.com/Remahy/forsenwiki/issues/35)) ([9e7db7b](https://github.com/Remahy/forsenwiki/commit/9e7db7b4366bd23ff6eeb2f6df7148d6e987df6e))
34+
35+
### Bug Fixes
36+
37+
* Add ?random param to the `/random` endpoint results ([66c2d9d](https://github.com/Remahy/forsenwiki/commit/66c2d9d7e92eddd8a91d8a48c4fb94605defd060))
38+
* Add checks to prevent overeager deletion of ImageComponent ([#80](https://github.com/Remahy/forsenwiki/issues/80)) ([c31fdc3](https://github.com/Remahy/forsenwiki/commit/c31fdc34b46f88d2972ac881dfd8e6ca9663c237))
39+
* Add initial content on new articles & fix AutoFocus ([#53](https://github.com/Remahy/forsenwiki/issues/53)) ([2e4222f](https://github.com/Remahy/forsenwiki/commit/2e4222f30613954c75d6c15553fcec4d9162bad8))
40+
* Cloudflare & lexical html output cache & Various UI fixes ([#31](https://github.com/Remahy/forsenwiki/issues/31)) ([6bfd89b](https://github.com/Remahy/forsenwiki/commit/6bfd89b431d52c6edf01108b49d361e1dcd2a9ce))
41+
* Don't use Lexical's node.key for heading ids ([#78](https://github.com/Remahy/forsenwiki/issues/78)) ([28bb788](https://github.com/Remahy/forsenwiki/commit/28bb78878513cdb4fd8c6ed5894b86ff6c720837))
42+
* Import image CSS in the history endpoints ([#51](https://github.com/Remahy/forsenwiki/issues/51)) ([df9b250](https://github.com/Remahy/forsenwiki/commit/df9b250406803ee878ca595eca0c5f2f61d700bc))
43+
* Improve ImageNode & VideoEmbedNode ([#98](https://github.com/Remahy/forsenwiki/issues/98)) ([053bb43](https://github.com/Remahy/forsenwiki/commit/053bb4354a854bd96a97d810adf0a70767ca4389))
44+
* Linting & catch error fixes for article create/update ([#43](https://github.com/Remahy/forsenwiki/issues/43)) ([7f0f818](https://github.com/Remahy/forsenwiki/commit/7f0f818f27908d54391306c07c777a0d6237fa8f))
45+
* Make overriden linkAccount return AdapterAccount ([#5](https://github.com/Remahy/forsenwiki/issues/5)) ([bdaace7](https://github.com/Remahy/forsenwiki/commit/bdaace77bda1c0cf32eda1ecb55ed77b8dfac8dd))
46+
* Make random button conditional on whether `random` is in the url searchParams ([43093ab](https://github.com/Remahy/forsenwiki/commit/43093ab40affec0c1e54b87eaaa00037621086a4))
47+
* Minor accessibility fixes & navbar UI improvements ([#21](https://github.com/Remahy/forsenwiki/issues/21)) ([d3f6708](https://github.com/Remahy/forsenwiki/commit/d3f6708eefad2aeaeb4c086335b1553c0eee7293))
48+
* More than 1, not more than 2 ([9aaba53](https://github.com/Remahy/forsenwiki/commit/9aaba53c0517002fcd780307c7df9494aedf9da3))
49+
* Prevent crash with missing diff-linebreak & diff-tab ([#75](https://github.com/Remahy/forsenwiki/issues/75)) ([4cfdeec](https://github.com/Remahy/forsenwiki/commit/4cfdeec2d4855263c1888de9ccc5744cd64ea734))
50+
* Prevent various crashes ([#88](https://github.com/Remahy/forsenwiki/issues/88)) ([7e3efc1](https://github.com/Remahy/forsenwiki/commit/7e3efc178e3d952643a1ad24fe8dc69ecca9abcc))
51+
* Put linkedom behind a worker_thread to prevent prismjs timeout ([#50](https://github.com/Remahy/forsenwiki/issues/50)) ([e09472a](https://github.com/Remahy/forsenwiki/commit/e09472ae4a5dff5109195ceed85febe91d77cce8))
52+
* Reduce crashes when loading in a diff for old updates with heading and link ([#86](https://github.com/Remahy/forsenwiki/issues/86)) ([5b4602f](https://github.com/Remahy/forsenwiki/commit/5b4602fce82ffcd4499d8a7f3d08034951edff74))
53+
* Remove boilerplate code & Add placeholders ([b773b13](https://github.com/Remahy/forsenwiki/commit/b773b13c9b719a747e300970c22d2bfb98a73455))
54+
* Remove parentheses around the at signs ([#73](https://github.com/Remahy/forsenwiki/issues/73)) ([22a4822](https://github.com/Remahy/forsenwiki/commit/22a4822f794994c1e91ef8f87c6ec73a8afd105d))
55+
* **Styling:** New colors, dividers, flex layout ([#3](https://github.com/Remahy/forsenwiki/issues/3)) ([6b07125](https://github.com/Remahy/forsenwiki/commit/6b07125a351e2c5125d0d5108fd1ced8d75758c2))
56+
* Use cache url for checking when to turn img into b64 ([#24](https://github.com/Remahy/forsenwiki/issues/24)) ([f74540f](https://github.com/Remahy/forsenwiki/commit/f74540f455bdd079d08cce6d3cdbcdb7671b1a83))
57+
* Use esbuild to create worker files & don't import Prism into worker ([#59](https://github.com/Remahy/forsenwiki/issues/59)) ([736b33e](https://github.com/Remahy/forsenwiki/commit/736b33e2bed677789c11075e5af18645d9c0305f))
58+
* Various VideoEmbedNode & ImageNode improvements ([#85](https://github.com/Remahy/forsenwiki/issues/85)) ([66553cb](https://github.com/Remahy/forsenwiki/commit/66553cb3c3a652fe1d853f54cae6bbaa2e0b05fc))
59+
* **VideoEmbed:** Bug fixes & QoL ([#37](https://github.com/Remahy/forsenwiki/issues/37)) ([e3a1c0d](https://github.com/Remahy/forsenwiki/commit/e3a1c0dd30106bceb2454dd5ed2ca597a974bf6b))
60+
* Whitespace changes & VideoEmbedNode responsiveness ([#42](https://github.com/Remahy/forsenwiki/issues/42)) ([4a5b1a5](https://github.com/Remahy/forsenwiki/commit/4a5b1a55bef171c8e7a3188ea8117a54ecea932a))

changelogsToHTML.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { readFileSync, writeFileSync } from 'node:fs';
2+
3+
import { marked } from 'marked';
4+
import { gfmHeadingId } from "marked-gfm-heading-id";
5+
6+
marked.use(gfmHeadingId());
7+
8+
const changelogFile = readFileSync('./CHANGELOG.md', 'utf-8');
9+
10+
const outputLocation = new URL('src/routes/changelogs/changelogs.html', import.meta.url);
11+
12+
const html = marked.parse(changelogFile, { async: false });
13+
14+
writeFileSync(outputLocation, html);

package-lock.json

+37-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "forsenwiki",
3-
"version": "1.0.0-beta.11",
3+
"version": "1.0.0-beta.12",
44
"scripts": {
55
"start": "node -r dotenv/config build",
66
"dev": "vite dev & npm run dev:usercontent",
@@ -16,7 +16,8 @@
1616
"prisma:migrate-dev": "prisma migrate dev",
1717
"prisma:seed": "node ./prisma/seed/types.js",
1818
"prisma:generate": "prisma generate",
19-
"prisma:migrate-deploy": "prisma migrate deploy"
19+
"prisma:migrate-deploy": "prisma migrate deploy",
20+
"generate-changelog": "npx conventional-changelog -p conventionalcommits -i CHANGELOG.md -s && node changelogsToHTML.js"
2021
},
2122
"devDependencies": {
2223
"@eslint/js": "^9.17.0",
@@ -33,6 +34,8 @@
3334
"eslint": "^9.17.0",
3435
"eslint-config-prettier": "^9.1.0",
3536
"eslint-plugin-svelte": "^2.46.0",
37+
"marked": "^15.0.6",
38+
"marked-gfm-heading-id": "^4.1.1",
3639
"postcss": "^8.4.49",
3740
"postcss-load-config": "^6.0.1",
3841
"prettier": "^3.4.2",
@@ -121,4 +124,4 @@
121124
"nanoid": "^3.3.8"
122125
}
123126
}
124-
}
127+
}

src/routes/changelogs/+page.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;

src/routes/changelogs/+page.svelte

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<script>
2+
import Box from '$lib/components/Box.svelte';
3+
import Container from '$lib/components/Container.svelte';
4+
import ToC from '$lib/components/ToC.svelte';
5+
import changelogsHTML from './changelogs.html?raw';
6+
</script>
7+
8+
<svelte:head>
9+
<title>Community Forsen Wiki</title>
10+
<meta name="description" content="Forsen Wiki code changelogs" />
11+
</svelte:head>
12+
13+
<Container>
14+
<article class="relative flex grow flex-col gap-4">
15+
<div class="flex grow flex-col gap-4 lg:flex-row">
16+
<Box class="flex grow flex-col p-4 lg:mb-0">
17+
<main class="article-root prose max-w-[unset] grow dark:prose-invert">
18+
<h1>Changelogs</h1>
19+
20+
<p>Compared to forsen, this project actually attempts to improve itself.</p>
21+
22+
{@html changelogsHTML}
23+
</main>
24+
</Box>
25+
26+
<ToC />
27+
</div>
28+
</article></Container
29+
>

0 commit comments

Comments
 (0)