Skip to content

Commit

Permalink
feat: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 6, 2024
1 parent d38f41e commit 2bdf1b8
Show file tree
Hide file tree
Showing 5 changed files with 627 additions and 568 deletions.
14 changes: 14 additions & 0 deletions packages/shiki/src/langs-bundle-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,19 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
{
'id': 'mermaid',
'name': 'Mermaid',
'aliases': [
'mmd'
],
'import': (() => import('./langs/mermaid.mjs')) as DynamicImportLanguageRegistration
},
{
'id': 'mipsasm',
'name': 'MIPS Assembly',
'aliases': [
'mips'
],
'import': (() => import('./langs/mipsasm.mjs')) as DynamicImportLanguageRegistration
},
{
'id': 'mojo',
'name': 'Mojo',
Expand Down Expand Up @@ -1439,6 +1450,9 @@ export type BundledLanguage =
| 'mdx'
| 'mediawiki'
| 'mermaid'
| 'mips'
| 'mipsasm'
| 'mmd'
| 'mojo'
| 'move'
| 'nar'
Expand Down
6 changes: 6 additions & 0 deletions packages/shiki/src/langs-bundle-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'JSON',
'import': (() => import('./langs/json.mjs')) as DynamicImportLanguageRegistration
},
{
'id': 'json5',
'name': 'JSON5',
'import': (() => import('./langs/json5.mjs')) as DynamicImportLanguageRegistration
},
{
'id': 'jsonc',
'name': 'JSON with Comments',
Expand Down Expand Up @@ -341,6 +346,7 @@ export type BundledLanguage =
| 'jl'
| 'js'
| 'json'
| 'json5'
| 'jsonc'
| 'jsonl'
| 'jsx'
Expand Down
4 changes: 2 additions & 2 deletions packages/shiki/test/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it('bundle-full', async () => {
}))

expect(highlighter.getLoadedLanguages().length)
.toMatchInlineSnapshot(`309`)
.toMatchInlineSnapshot(`312`)
})

it('bundle-web', async () => {
Expand All @@ -17,5 +17,5 @@ it('bundle-web', async () => {
}))

expect(highlighter.getLoadedLanguages().length)
.toMatchInlineSnapshot(`86`)
.toMatchInlineSnapshot(`87`)
})
Loading

0 comments on commit 2bdf1b8

Please sign in to comment.