Skip to content

Commit

Permalink
chore(release): vue-remark v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kriya committed Dec 20, 2023
1 parent 0c3da32 commit 7f65812
Show file tree
Hide file tree
Showing 5 changed files with 755 additions and 560 deletions.
4 changes: 2 additions & 2 deletions packages/vue-remark/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
const pathToRegexp = require('path-to-regexp')
const { pathToRegexp, compile } = require('path-to-regexp')
const Filesystem = require('@kriya/gridsome-source-filesystem')
const RemarkTransformer = require('@kriya/gridsome-transformer-remark')
const { omit, trimEnd, kebabCase } = require('lodash')
Expand Down Expand Up @@ -124,7 +124,7 @@ class VueRemark {
const routeKeys = []
pathToRegexp(this.route.path, routeKeys)

this.route.createPath = pathToRegexp.compile(this.route.path)
this.route.createPath = compile(this.route.path)
this.route.routeKeys = normalizeRouteKeys(routeKeys)
}

Expand Down
4 changes: 2 additions & 2 deletions packages/vue-remark/lib/loader.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const LRU = require('lru-cache')
const { LRUCache } = require('lru-cache')
const hash = require('hash-sum')
const loaderUtils = require('loader-utils')

const cache = new LRU({ max: 1000 })
const cache = new LRUCache({ max: 1000 })

module.exports = async function vueRemarkLoader (source, map) {
const plugin = loaderUtils.getOptions(this)
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-remark/lib/toSfc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function toSfc () {
})

const hast = toHAST(ast, {
allowDangerousHTML: true,
allowDangerousHtml: true,
handlers: {
'g-link' (h, node) {
return h(node, 'g-link', { to: node.url }, node.children)
Expand All @@ -43,7 +43,7 @@ module.exports = function toSfc () {
})

const html = toHTML(hast, {
allowDangerousHTML: true,
allowDangerousHtml: true,
entities: {
useNamedReferences: true
}
Expand Down
38 changes: 19 additions & 19 deletions packages/vue-remark/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.7",
"version": "0.3.0",
"name": "@kriya/gridsome-vue-remark",
"description": "Use Vue Components in Markdown",
"homepage": "https://github.com/gridsome/gridsome/tree/master/packages/vue-remark#readme",
Expand All @@ -12,31 +12,31 @@
"remark"
],
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/parser": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/traverse": "^7.0.0",
"@kriya/gridsome-source-filesystem": "^0.6.2",
"@kriya/gridsome-transformer-remark": "^0.6.4",
"@babel/core": "^7.23.6",
"@babel/parser": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/traverse": "^7.23.6",
"@kriya/gridsome-source-filesystem": "^0.7.0",
"@kriya/gridsome-transformer-remark": "^0.7.0",
"babel-loader": "8.0.5",
"hash-sum": "^1.0.2",
"hast-util-to-html": "^5.0.0",
"hash-sum": "^2.0.0",
"hast-util-to-html": "~7.1.3",
"he": "^1.2.0",
"html-tags": "^3.1.0",
"html-tags": "^3.3.1",
"is-relative": "^1.0.0",
"is-url": "^1.2.4",
"loader-utils": "^1.2.3",
"lodash": "^4.17.11",
"lru-cache": "^5.1.1",
"mdast-util-to-hast": "^4.0.0",
"moment": "^2.24.0",
"path-to-regexp": "^3.1.0",
"unist-builder": "^1.0.3",
"unist-util-visit": "^1.4.0",
"vue-loader": "^15.10.0"
"lodash": "^4.17.21",
"lru-cache": "^10.1.0",
"mdast-util-to-hast": "~10.2.0",
"moment": "^2.29.4",
"path-to-regexp": "^6.2.1",
"unist-builder": "~2.0.3",
"unist-util-visit": "~2.0.3",
"vue-loader": "~15.11.1"
},
"peerDependencies": {
"@kriya/gridsome": "^0.8.1-1"
"@kriya/gridsome": "^0.9.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 7f65812

Please sign in to comment.