1
0
mirror of https://github.com/kremalicious/gatsby-redirect-from.git synced 2024-12-21 16:53:21 +01:00

deprecation changes (#493)

* readme updates

* package updates

* package-lock update
This commit is contained in:
Matthias Kretschmann 2024-12-20 14:59:59 +00:00 committed by GitHub
parent a5561f8a9e
commit c71a4e6426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22746 additions and 23651 deletions

View File

@ -10,7 +10,13 @@
> 🎯 Set redirect urls in your YAML frontmatter within your [Gatsby](https://www.gatsbyjs.org) site's Markdown files. Mimics the behavior of [jekyll-redirect-from](https://github.com/jekyll/jekyll-redirect-from).
> https://kremalicious.com/gatsby-redirect-from/
**Deprecation notice: [Gatsby has been abandoned](https://github.com/gatsbyjs/gatsby/issues/38696) so maintaining this plugin does not make much sense. It will only receive occasional dependency updates and will be archived at the end of 2024. If you choose to switch to [Astro](https://astro.build), you can use [astro-redirect-from](https://github.com/kremalicious/astro-redirect-from).**
---
**Deprecation notice: Gatsby has been abandoned (see ["Is Gatsby discontinued?"](https://github.com/gatsbyjs/gatsby/issues/38696) and ["Is GatsbyJS Officially Dead?"](https://github.com/gatsbyjs/gatsby/discussions/39062)) so this plugin is deprecated and won't receive any more updates.**
**If you choose to switch to [Astro](https://astro.build), you can use [astro-redirect-from](https://github.com/kremalicious/astro-redirect-from).**
---
By adding a `redirect_from` list of URLs to your Markdown file's YAML frontmatter, this plugin creates client-side redirects for all of them at build time, with Gatsby's [`createRedirect`](https://www.gatsbyjs.org/docs/actions/#createRedirect) used under the hood.
@ -105,7 +111,7 @@ See [CHANGELOG.md](CHANGELOG.md).
The MIT License
Copyright (c) 2020 Matthias Kretschmann
Copyright (c) 2024 Matthias Kretschmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

46263
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,67 +1,61 @@
{
"name": "gatsby-redirect-from",
"version": "1.2.1",
"author": "Matthias Kretschmann <m@kretschmann.io>",
"description": "Set redirect urls in your YAML frontmatter within your Gatsby site's Markdown files. Mimics the behavior of jekyll-redirect-from.",
"homepage": "https://kremalicious.com/gatsby-redirect-from/",
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "cross-env NODE_ENV=production babel src --out-dir .",
"start": "babel -w src --out-dir .",
"test": "npm run lint && jest --coverage --config ./test/jest.config.json",
"lint": "eslint ./{src,test}/**/*.js",
"format": "prettier --write '{src,test}/**/*.{js,jsx}'",
"release": "release-it --non-interactive",
"changelog": "auto-changelog -p",
"prepublishOnly": "npm run build"
},
"browserslist": [
"maintained node versions"
],
"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.24.9",
"@babel/preset-env": "^7.25.0",
"auto-changelog": "^2.4.0",
"cross-env": "^7.0.3",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3",
"release-it": "^17.6.0"
},
"peerDependencies": {
"gatsby": "^4.0.0 || ^5.0.0",
"gatsby-plugin-meta-redirect": ">=1.1.0"
},
"engines": {
"node": ">=18"
},
"repository": "github:kremalicious/gatsby-redirect-from",
"bugs": {
"url": "https://github.com/kremalicious/gatsby-redirect-from/issues"
},
"keywords": [
"gatsby",
"gatsby-plugin",
"redirect"
],
"release-it": {
"hooks": {
"before:init": "npm test",
"after:bump": "npm run changelog"
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true
},
"npm": {
"publish": false
}
}
"name": "gatsby-redirect-from",
"version": "1.2.1",
"author": "Matthias Kretschmann <m@kretschmann.io>",
"description": "Set redirect urls in your YAML frontmatter within your Gatsby site's Markdown files. Mimics the behavior of jekyll-redirect-from.",
"homepage": "https://kremalicious.com/gatsby-redirect-from/",
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "cross-env NODE_ENV=production babel src --out-dir .",
"start": "babel -w src --out-dir .",
"test": "npm run lint && jest --coverage --config ./test/jest.config.json",
"lint": "eslint ./{src,test}/**/*.js",
"format": "prettier --write '{src,test}/**/*.{js,jsx}'",
"release": "release-it --non-interactive",
"changelog": "auto-changelog -p",
"prepublishOnly": "npm run build"
},
"browserslist": ["maintained node versions"],
"devDependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"auto-changelog": "^2.5.0",
"cross-env": "^7.0.3",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.4.2",
"release-it": "^17.10.0"
},
"peerDependencies": {
"gatsby": "^4.0.0 || ^5.0.0",
"gatsby-plugin-meta-redirect": ">=1.1.0"
},
"engines": {
"node": ">=18"
},
"repository": "github:kremalicious/gatsby-redirect-from",
"bugs": {
"url": "https://github.com/kremalicious/gatsby-redirect-from/issues"
},
"keywords": ["gatsby", "gatsby-plugin", "redirect"],
"release-it": {
"hooks": {
"before:init": "npm test",
"after:bump": "npm run changelog"
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true
},
"npm": {
"publish": false
}
}
}