Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: timlrx/rehype-prism-plus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.2
Choose a base ref
...
head repository: timlrx/rehype-prism-plus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.6.3
Choose a head ref
  • 5 commits
  • 6 files changed
  • 2 contributors

Commits on Aug 6, 2023

  1. Merge pull request #64 from timlrx/fix/types

    Fix bundle type resolution
    timlrx authored Aug 6, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    d8582ab View commit details

Commits on Aug 7, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9561914 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6dab3df View commit details
  3. Merge pull request #66 from forksss/main

    fix: support nextjs 13 (fix #65)
    timlrx authored Aug 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fdeaa63 View commit details
  4. 1.6.3

    timlrx committed Aug 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    62228e8 View commit details
Showing with 24 additions and 24 deletions.
  1. +0 −6 index.js
  2. +2 −2 package-lock.json
  3. +14 −14 package.json
  4. +6 −0 src/index.js
  5. +1 −1 test.js
  6. +1 −1 tsconfig.json
6 changes: 0 additions & 6 deletions index.js

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "rehype-prism-plus",
"version": "1.6.2",
"version": "1.6.3",
"description": "rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers",
"source": "index.js",
"files": [
"dist"
],
"main": "./dist/rehype-prism-plus.es.js",
"module": "./dist/rehype-prism-plus.es.js",
"main": "./dist/index.es.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/rehype-prism-plus.es.js"
"default": "./dist/index.es.js"
},
"./common": {
"types": "./dist/src/common.d.ts",
"import": "./dist/common.es.js"
"types": "./dist/common.d.ts",
"default": "./dist/common.es.js"
},
"./all": {
"types": "./dist/src/all.d.ts",
"import": "./dist/all.es.js"
"types": "./dist/all.d.ts",
"default": "./dist/all.es.js"
},
"./generator": {
"types": "./dist/src/generator.d.ts",
"import": "./dist/generator.es.js"
"types": "./dist/generator.d.ts",
"default": "./dist/generator.es.js"
}
},
"typesVersions": {
@@ -34,18 +34,18 @@
"./dist/index"
],
"common": [
"./dist/src/common"
"./dist/common"
],
"all": [
"./dist/src/all"
"./dist/all"
],
"generator": [
"./dist/src/generator"
"./dist/generator"
]
}
},
"scripts": {
"build": "tsc -b && microbundle index.js src/common.js src/all.js src/generator.js --format esm",
"build": "tsc -b && microbundle src/index.js src/common.js src/all.js src/generator.js --format esm",
"tsc": "tsc --watch",
"lint": "eslint .",
"prettier": "prettier --write '*.js'",
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import rehypePrismGenerator from './generator.js'
import rehypePrismCommon from './common.js'
import rehypePrism from './all.js'

export { rehypePrismGenerator, rehypePrismCommon }
export default rehypePrism
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import rehypeStringify from 'rehype-stringify'
import dedent from 'dedent'
import rehypePrism from './index.js'
import rehypePrism from './src/index.js'

/**
* Mock meta in code block
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"include": ["index.js", "src/*"],
"include": ["src/*"],
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],