timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

update github slugger package to v 2.0 #817

Closed PxlSyl closed 7 months ago

PxlSyl commented 8 months ago

Hi! It's me again lol

While working on the internationalization version, I updated github-slugger to the last version.

Now, the import should looks like this :

import { slug } from 'github-slugger'

and in rss.mjs and contentlayer.config.ts, instead of, (for example) this usage :

const formattedTag = GithubSlugger.slug(tag)

It should be :

const formattedTag = slug(tag)

So it's quite simple and straightforward, if anyone ever tried to update without success

timlrx commented 8 months ago

Thanks! There must have been some reason why I stick with v1 previously, but I will take note of it in the next dependency update.