Skip to content

Commit fac8101

Browse files
authored
Update old and vulnerable dependencies (#101)
* Remove ascii support as it is not really used anywhere. Keep the code just in case a use case comes back in the future * Replace inline style into CSS * use happy-dom for snapshot testing * fix linting rules * remove fs-extra library as fs can handle our usecase now * Replace showdown with marked for MD to HTML conversion * Replace those dependencies * fix local running * Add styles to Github alerts and add checknboxes for testing * Add back emoji support * Fix snapshots with new css * Add more Git Flavour tests cases to the local markdown * ignore coverage folder * upgrade for Node 22 * replace build process from babel to esbuild
1 parent 9ace962 commit fac8101

26 files changed

+12688
-10880
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ node_modules/
1616
build/
1717

1818
# Test results
19+
coverage
1920
test-results.json
2021

2122
# Local dev

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
## This is a file in a nested sub folder
1+
## This is a file in a nested sub folder
2+
3+
### Dev checklist
4+
5+
- [ ] Checklist item 1 - unchecked
6+
- [x] Checklist item 2 - checked
7+
- [ ] Checklist item 3 - unchecked
8+
9+
### Ignore Formatting
10+
11+
Let's rename \*our-new-project\* to \*our-old-project\*
12+
13+
### Nested Bullets
14+
15+
100. First list item
16+
- First nested list item
17+
- Second nested list item

default-md-files/morty-docs.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ Do images still work?
2626

2727
![Image 1](./folder/subFolder/test.jpg)
2828

29-
## Github Alerts
29+
## :warning: Icons, highlights and bullet points
30+
31+
- `warning` - typically used as an early warning system. May not require any action and will not be
32+
actioned by 247/Ops.
33+
- `critical` - an alarm that 247/Ops should act on indicating direct audience impact. Ops will
34+
consult your product runbook and perform the required escalation actions listed there.
35+
36+
## ⚠️ Github Alerts
3037

3138
> [!NOTE]
3239
> Highlights information that users should take into account, even when skimming.

jest.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
module.exports = {
2-
'snapshotSerializers': ['jest-serializer-html'],
3-
'snapshotFormat': {
4-
'printBasicPrototype': true
5-
}
2+
testEnvironment: '@happy-dom/jest-environment'
63
}

0 commit comments

Comments
 (0)