Skip to content

Commit 2bdf1b8

Browse files
committed
feat: update deps
1 parent d38f41e commit 2bdf1b8

File tree

5 files changed

+627
-568
lines changed

5 files changed

+627
-568
lines changed

packages/shiki/src/langs-bundle-full.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,19 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
695695
{
696696
'id': 'mermaid',
697697
'name': 'Mermaid',
698+
'aliases': [
699+
'mmd'
700+
],
698701
'import': (() => import('./langs/mermaid.mjs')) as DynamicImportLanguageRegistration
699702
},
703+
{
704+
'id': 'mipsasm',
705+
'name': 'MIPS Assembly',
706+
'aliases': [
707+
'mips'
708+
],
709+
'import': (() => import('./langs/mipsasm.mjs')) as DynamicImportLanguageRegistration
710+
},
700711
{
701712
'id': 'mojo',
702713
'name': 'Mojo',
@@ -1439,6 +1450,9 @@ export type BundledLanguage =
14391450
| 'mdx'
14401451
| 'mediawiki'
14411452
| 'mermaid'
1453+
| 'mips'
1454+
| 'mipsasm'
1455+
| 'mmd'
14421456
| 'mojo'
14431457
| 'move'
14441458
| 'nar'

packages/shiki/src/langs-bundle-web.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
122122
'name': 'JSON',
123123
'import': (() => import('./langs/json.mjs')) as DynamicImportLanguageRegistration
124124
},
125+
{
126+
'id': 'json5',
127+
'name': 'JSON5',
128+
'import': (() => import('./langs/json5.mjs')) as DynamicImportLanguageRegistration
129+
},
125130
{
126131
'id': 'jsonc',
127132
'name': 'JSON with Comments',
@@ -341,6 +346,7 @@ export type BundledLanguage =
341346
| 'jl'
342347
| 'js'
343348
| 'json'
349+
| 'json5'
344350
| 'jsonc'
345351
| 'jsonl'
346352
| 'jsx'

packages/shiki/test/bundle.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ it('bundle-full', async () => {
77
}))
88

99
expect(highlighter.getLoadedLanguages().length)
10-
.toMatchInlineSnapshot(`309`)
10+
.toMatchInlineSnapshot(`312`)
1111
})
1212

1313
it('bundle-web', async () => {
@@ -17,5 +17,5 @@ it('bundle-web', async () => {
1717
}))
1818

1919
expect(highlighter.getLoadedLanguages().length)
20-
.toMatchInlineSnapshot(`86`)
20+
.toMatchInlineSnapshot(`87`)
2121
})

0 commit comments

Comments
 (0)