Skip to content

Commit b670cc9

Browse files
committed
revert
1 parent a87418a commit b670cc9

3 files changed

Lines changed: 77 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"remark-frontmatter": "^5.0.0",
7070
"remark-gfm": "^4.0.1",
7171
"remark-validate-links": "^13.1.0",
72-
"rescript": "^12.0.0",
72+
"rescript": "^12.1.0",
7373
"unified": "^11.0.5",
7474
"vfile-matter": "^5.0.0"
7575
},

src/common/HighlightJs.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let renderHLJS = (~highlightedLines=[], ~darkmode=false, ~code: string, ~lang: s
1010
// If the language couldn't be parsed, we will fall back to text
1111
let options = {language: lang}
1212
let (lang, highlighted) = try (lang, highlight(~code, ~options)->valueGet) catch {
13-
| Exn.Error(_) => ("text", code)
13+
| JsExn(_) => ("text", code)
1414
}
1515

1616
// Add line highlighting as well

yarn.lock

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,27 +2182,55 @@ __metadata:
21822182
languageName: node
21832183
linkType: hard
21842184

2185+
"@rescript/darwin-arm64@npm:12.1.0":
2186+
version: 12.1.0
2187+
resolution: "@rescript/darwin-arm64@npm:12.1.0"
2188+
conditions: os=darwin & cpu=arm64
2189+
languageName: node
2190+
linkType: hard
2191+
21852192
"@rescript/darwin-x64@npm:12.0.0":
21862193
version: 12.0.0
21872194
resolution: "@rescript/darwin-x64@npm:12.0.0"
21882195
conditions: os=darwin & cpu=x64
21892196
languageName: node
21902197
linkType: hard
21912198

2199+
"@rescript/darwin-x64@npm:12.1.0":
2200+
version: 12.1.0
2201+
resolution: "@rescript/darwin-x64@npm:12.1.0"
2202+
conditions: os=darwin & cpu=x64
2203+
languageName: node
2204+
linkType: hard
2205+
21922206
"@rescript/linux-arm64@npm:12.0.0":
21932207
version: 12.0.0
21942208
resolution: "@rescript/linux-arm64@npm:12.0.0"
21952209
conditions: os=linux & cpu=arm64
21962210
languageName: node
21972211
linkType: hard
21982212

2213+
"@rescript/linux-arm64@npm:12.1.0":
2214+
version: 12.1.0
2215+
resolution: "@rescript/linux-arm64@npm:12.1.0"
2216+
conditions: os=linux & cpu=arm64
2217+
languageName: node
2218+
linkType: hard
2219+
21992220
"@rescript/linux-x64@npm:12.0.0":
22002221
version: 12.0.0
22012222
resolution: "@rescript/linux-x64@npm:12.0.0"
22022223
conditions: os=linux & cpu=x64
22032224
languageName: node
22042225
linkType: hard
22052226

2227+
"@rescript/linux-x64@npm:12.1.0":
2228+
version: 12.1.0
2229+
resolution: "@rescript/linux-x64@npm:12.1.0"
2230+
conditions: os=linux & cpu=x64
2231+
languageName: node
2232+
linkType: hard
2233+
22062234
"@rescript/react@npm:^0.14.0":
22072235
version: 0.14.0
22082236
resolution: "@rescript/react@npm:0.14.0"
@@ -2220,6 +2248,13 @@ __metadata:
22202248
languageName: node
22212249
linkType: hard
22222250

2251+
"@rescript/runtime@npm:12.1.0":
2252+
version: 12.1.0
2253+
resolution: "@rescript/runtime@npm:12.1.0"
2254+
checksum: 10c0/7c6c75fce8011873007bbe59fee7b355519fdaf31f64258837e7da420eee57ebb36236e3f55c576258adbb5811841b033188f617351addfdc2034384075e38b8
2255+
languageName: node
2256+
linkType: hard
2257+
22232258
"@rescript/webapi@npm:0.1.0-experimental-29db5f4":
22242259
version: 0.1.0-experimental-29db5f4
22252260
resolution: "@rescript/webapi@npm:0.1.0-experimental-29db5f4"
@@ -2236,6 +2271,13 @@ __metadata:
22362271
languageName: node
22372272
linkType: hard
22382273

2274+
"@rescript/win32-x64@npm:12.1.0":
2275+
version: 12.1.0
2276+
resolution: "@rescript/win32-x64@npm:12.1.0"
2277+
conditions: os=win32 & cpu=x64
2278+
languageName: node
2279+
linkType: hard
2280+
22392281
"@rolldown/pluginutils@npm:1.0.0-beta.27":
22402282
version: 1.0.0-beta.27
22412283
resolution: "@rolldown/pluginutils@npm:1.0.0-beta.27"
@@ -8475,7 +8517,7 @@ __metadata:
84758517
remark-frontmatter: "npm:^5.0.0"
84768518
remark-gfm: "npm:^4.0.1"
84778519
remark-validate-links: "npm:^13.1.0"
8478-
rescript: "npm:^12.0.0"
8520+
rescript: "npm:^12.1.0"
84798521
search-insights: "npm:^2.17.3"
84808522
tailwindcss: "npm:^4"
84818523
to-vfile: "npm:^8.0.0"
@@ -8489,7 +8531,7 @@ __metadata:
84898531
languageName: unknown
84908532
linkType: soft
84918533

8492-
"rescript@npm:^12.0.0, rescript@npm:^12.0.0-beta.3":
8534+
"rescript@npm:^12.0.0-beta.3":
84938535
version: 12.0.0
84948536
resolution: "rescript@npm:12.0.0"
84958537
dependencies:
@@ -8520,6 +8562,37 @@ __metadata:
85208562
languageName: node
85218563
linkType: hard
85228564

8565+
"rescript@npm:^12.1.0":
8566+
version: 12.1.0
8567+
resolution: "rescript@npm:12.1.0"
8568+
dependencies:
8569+
"@rescript/darwin-arm64": "npm:12.1.0"
8570+
"@rescript/darwin-x64": "npm:12.1.0"
8571+
"@rescript/linux-arm64": "npm:12.1.0"
8572+
"@rescript/linux-x64": "npm:12.1.0"
8573+
"@rescript/runtime": "npm:12.1.0"
8574+
"@rescript/win32-x64": "npm:12.1.0"
8575+
dependenciesMeta:
8576+
"@rescript/darwin-arm64":
8577+
optional: true
8578+
"@rescript/darwin-x64":
8579+
optional: true
8580+
"@rescript/linux-arm64":
8581+
optional: true
8582+
"@rescript/linux-x64":
8583+
optional: true
8584+
"@rescript/win32-x64":
8585+
optional: true
8586+
bin:
8587+
bsc: cli/bsc.js
8588+
bstracing: cli/bstracing.js
8589+
rescript: cli/rescript.js
8590+
rescript-legacy: cli/rescript-legacy.js
8591+
rescript-tools: cli/rescript-tools.js
8592+
checksum: 10c0/526aacd9049427efe31dd450857eec1ab012edd2fbf1eeeeb03f4782ad776097da6c7cf4a21079d0d6dca2125a850201aa3929547f0be4aeccae4df3b8411c69
8593+
languageName: node
8594+
linkType: hard
8595+
85238596
"restore-cursor@npm:^5.0.0":
85248597
version: 5.1.0
85258598
resolution: "restore-cursor@npm:5.1.0"

0 commit comments

Comments
 (0)