rsnext/packages/next-codemod
Ishaq Ibrahim 29c5acd33b
issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158)
Fixes issue #41925 by skipping duplicate props. I've tested the changes
locally - the duplicate prop is being skipped successfully. The
new-link.test.js suite is also passing.

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: Ishaq Ibrahim <ishaq.ibrahim@convertdigital.com.au>
2022-10-30 13:09:14 -07:00
..
bin Update next/image docs and examples (#41434) 2022-10-17 10:41:35 -04:00
lib Optimize offline condition judgment (#33238) 2022-02-02 10:17:29 -06:00
transforms issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158) 2022-10-30 13:09:14 -07:00
.gitignore Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
license.md Update license year 2022-01-13 16:02:34 +01:00
package.json v13.0.1-canary.2 2022-10-30 17:29:49 +01:00
README.md Add codemod documentation (#16067) 2020-08-11 15:12:00 +02:00
tsconfig.json Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00

Next.js Codemods

Next.js provides Codemod transformations to help upgrade your Next.js codebase when a feature is deprecated.

Codemods are transformations that run on your codebase programmatically. This allows for a large amount of changes to be applied without having to manually go through every file.

Documentation

Visit nextjs.org/docs/advanced-features/codemods to view the documentation for this package.