Skip to content

Commit

Permalink
Merge pull request #187 from hypermod-io/rename-to-hypermod
Browse files Browse the repository at this point in the history
Renames all references of codeshift to hypermod
  • Loading branch information
danieldelcore authored Aug 30, 2023
2 parents 3583176 + aa62194 commit bae5e54
Show file tree
Hide file tree
Showing 224 changed files with 1,153 additions and 765 deletions.
33 changes: 33 additions & 0 deletions .changeset/angry-ties-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
'@hypermod/mod-atlaskit__progress-indicator': minor
'@hypermod/mod-atlaskit__section-message': minor
'@hypermod/mod-atlaskit__side-navigation': minor
'@hypermod/mod-atlaskit__breadcrumbs': minor
'@hypermod/mod-atlaskit__textfield': minor
'@hypermod/mod-atlaskit__calendar': minor
'@hypermod/mod-atlaskit__checkbox': minor
'@hypermod/mod-atlaskit__textarea': minor
'@hypermod/mod-atlaskit__spinner': minor
'@hypermod/mod-emotion__monorepo': minor
'@hypermod/mod-atlaskit__avatar': minor
'@hypermod/mod-atlaskit__button': minor
'@hypermod/mod-atlaskit__popper': minor
'@hypermod/mod-atlaskit__toggle': minor
'@hypermod/mod-atlaskit__popup': minor
'@hypermod/mod-atlaskit__range': minor
'@hypermod/mod-atlaskit__icon': minor
'@hypermod/mod-atlaskit__menu': minor
'@hypermod/mod-atlaskit__tag': minor
'@hypermod/mod-memoize-one': minor
'@hypermod/mod-javascript': minor
'@hypermod/initializer': minor
'@hypermod/validator': minor
'@hypermod/fetcher': minor
'@hypermod/mod-react': minor
'@hypermod/types': minor
'@hypermod/utils': minor
'@hypermod/core': minor
'@hypermod/cli': minor
---

This package has moved scopes from `@codeshift` to `@hypermod`. All internal `@codeshift` dependencies and references have been updated as a result.
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"changelog": "@changesets/cli/changelog",
"commit": false,
"access": "public",
"baseBranch": "main"
"baseBranch": "main",
"fixed": [["@hypermod/cli", "@codeshift/cli"]]
}
12 changes: 12 additions & 0 deletions .changeset/gentle-insects-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@hypermod/cli': minor
'@codeshift/cli': minor
---

This package has been renamed to `@hypermod/cli`.

No API changes were performed as part of this change, use `@hypermod/cli` as a direct replacement the package has simply been renamed.

It can now be run via `$ hypermod` or `$ hypermod-cli` or `$ npx @hypermod/cli`.

The alias package `@codeshift/cli` will continue to exist as a way for existing users to continue to receive updates **but will be removed in the future**.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 CodeshiftCommunity
Copyright (c) 2023 Hypermod

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img width="1000" src="assets/github-banner.png" alt="CodeshiftCommunity Logo">
<img width="1000" src="assets/github-banner.png" alt="Hypermod Logo">
</p>

# Hypermod Community
Expand Down Expand Up @@ -36,30 +36,29 @@ The community-owned global registry and documentation hub for codemods. Providin

[The registry](https://www.codeshiftcommunity.com/docs/registry) contains all community contributed codemods, hosted and published directly from the CodeshiftCommunity repository.

Source for these packages are located in the [/community folder](https://github.com/CodeshiftCommunity/CodeshiftCommunity/tree/main/community).
Source for these packages are located in the [/community folder](https://github.com/hypermod-io/hypermod-community/tree/main/community).

- [Registry homepage](https://www.codeshiftcommunity.com/docs/contribution)
- [Contributing to the registry](https://www.codeshiftcommunity.com/docs/contribution)
- [Registry source files](https://github.com/CodeshiftCommunity/CodeshiftCommunity/tree/main/community)
- [Registry source files](https://github.com/hypermod-io/hypermod-community/tree/main/community)

## CLI
## CLI

Downloading and running codemods as well as initialising and maintaining codemod packages can all be done via the Codeshift CLI (`@codeshift/cli`).
Downloading and running codemods as well as initialising and maintaining codemod packages can all be done via the Hypermod CLI (`@hypermod/cli`).

[Please see the docs for more information and examples](https://www.codeshiftcommunity.com/docs/cli)

We recommend running the CLI with $ npx to ensure you always have the latest version.

`$ npx @codeshift/cli --packages [email protected] /project/src`
`$ npx @hypermod/cli --packages [email protected] /project/src`

But it can also be installed globally:

`$ npm install -g @codeshift/cli or yarn global add @codeshift/cli`
`$ npm install -g @hypermod/cli or yarn global add @hypermod/cli`

and run with:

`$ codeshift or $ codeshift-cli`

`$ hypermod or $ hypermod-cli`

## Sponsors

Expand Down Expand Up @@ -95,4 +94,3 @@ Huge thanks for all of the support from our sponsors!
alt="@PreciselyAlyss"
/></a>
</p>

2 changes: 1 addition & 1 deletion community/@atlaskit__avatar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @codeshift/mod-atlaskit\_\_avatar
# @hypermod/mod-atlaskit\_\_avatar

## 0.2.0

Expand Down
17 changes: 8 additions & 9 deletions community/@atlaskit__avatar/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
{
"name": "@codeshift/mod-atlaskit__avatar",
"name": "@hypermod/mod-atlaskit__avatar",
"version": "0.2.0",
"license": "MIT",
"source": "src/codeshift.config.js",
"main": "dist/codeshift.config.js",
"source": "src/hypermod.config.js",
"main": "dist/hypermod.config.js",
"scripts": {
"dev": "codeshift",
"dev": "hypermod",
"build": "parcel build",
"test": "jest --watch",
"validate": "codeshift validate ."
"validate": "hypermod validate ."
},
"dependencies": {
"@codeshift/utils": "^0.2.3",
"@hypermod/utils": "^0.2.3",
"jscodeshift": "^0.13.1"
},
"devDependencies": {
"@codeshift/cli": "^0.15.0",
"@codeshift/test-utils": "^0.3.1",
"@hypermod/cli": "^0.15.0",
"@types/jest": "^29.0.0",
"@types/node": "^16.11.0",
"jest": "^29.0.0",
"prettier": "^2.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.5.5"
},
"repository": "https://github.com/CodeshiftCommunity/CodeshiftCommunity/tree/main/community/@atlaskit__avatar"
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__avatar"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jest.autoMockOff();

import { applyTransform } from '@codeshift/test-utils';
import { applyTransform } from '@hypermod/utils';
import * as transformer from '../transform';

const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__avatar/src/18.0.0/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getImportSpecifierName,
getImportDeclaration,
getJSXAttributes,
} from '@codeshift/utils';
} from '@hypermod/utils';

function updateAvatarProps(j: core.JSCodeshift, source: ReturnType<typeof j>) {
const defaultSpecifier = getDefaultImportSpecifierName(
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__avatar/src/19.0.0/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getJSXAttributes,
hasImportDeclaration,
getDefaultImportSpecifierName,
} from '@codeshift/utils';
} from '@hypermod/utils';

function wrapChildrenProp(
j: core.JSCodeshift,
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__breadcrumbs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @codeshift/mod-atlaskit\_\_breadcrumbs
# @hypermod/mod-atlaskit\_\_breadcrumbs

## 0.2.0

Expand Down
17 changes: 8 additions & 9 deletions community/@atlaskit__breadcrumbs/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
{
"name": "@codeshift/mod-atlaskit__breadcrumbs",
"name": "@hypermod/mod-atlaskit__breadcrumbs",
"version": "0.2.0",
"license": "MIT",
"source": "src/codeshift.config.js",
"main": "dist/codeshift.config.js",
"source": "src/hypermod.config.js",
"main": "dist/hypermod.config.js",
"scripts": {
"dev": "codeshift",
"dev": "hypermod",
"build": "parcel build",
"test": "jest --watch",
"validate": "codeshift validate ."
"validate": "hypermod validate ."
},
"dependencies": {
"@codeshift/utils": "^0.2.3",
"@hypermod/utils": "^0.2.3",
"jscodeshift": "^0.13.1"
},
"devDependencies": {
"@codeshift/cli": "^0.15.0",
"@codeshift/test-utils": "^0.3.1",
"@hypermod/cli": "^0.15.0",
"@types/jest": "^29.0.0",
"@types/node": "^16.11.0",
"jest": "^29.0.0",
"prettier": "^2.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.5.5"
},
"repository": "https://github.com/CodeshiftCommunity/CodeshiftCommunity/tree/main/community/@atlaskit__breadcrumbs"
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__breadcrumbs"
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe('@atlaskit/[email protected] motion: delete hasSeparator prop', () =>
);
`,
`
/* TODO: (@codeshift) This file uses the @atlaskit/breadcrumbs \`hasSeparator\` prop which
/* TODO: (@hypermod) This file uses the @atlaskit/breadcrumbs \`hasSeparator\` prop which
has now been removed due to its poor performance characteristics. From version 11.0.0, we changed to
\`css\` pseudo element for the separator and consumer should not use hasSeparator directly anymore. */
import React from "react";
Expand Down Expand Up @@ -186,7 +186,7 @@ describe('@atlaskit/[email protected] motion: delete hasSeparator prop', () =>
);
`,
`
/* TODO: (@codeshift) This file uses the @atlaskit/breadcrumbs \`hasSeparator\` prop which
/* TODO: (@hypermod) This file uses the @atlaskit/breadcrumbs \`hasSeparator\` prop which
has now been removed due to its poor performance characteristics. From version 11.0.0, we changed to
\`css\` pseudo element for the separator and consumer should not use hasSeparator directly anymore. */
import React from "react";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
insertCommentToStartOfFile,
getJSXAttributes,
getImportSpecifierName,
} from '@codeshift/utils';
} from '@hypermod/utils';

const createRemoveFuncFor =
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import core, {
Collection,
Identifier,
} from 'jscodeshift';
import { getDefaultImportSpecifierName } from '@codeshift/utils';
import { getDefaultImportSpecifierName } from '@hypermod/utils';

function doesIdentifierExist(
j: core.JSCodeshift,
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__breadcrumbs/src/11.0.0/transform.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { API, FileInfo, Options } from 'jscodeshift';
import { hasImportDeclaration, applyMotions } from '@codeshift/utils';
import { hasImportDeclaration, applyMotions } from '@hypermod/utils';

import elevateStatelessToDefault from './motions/elevate-stateless-to-default';
import removeHasSeparator from './motions/remove-has-separator';
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @codeshift/mod-atlaskit\_\_button
# @hypermod/mod-atlaskit\_\_button

## 0.2.0

Expand Down
17 changes: 8 additions & 9 deletions community/@atlaskit__button/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
{
"name": "@codeshift/mod-atlaskit__button",
"name": "@hypermod/mod-atlaskit__button",
"version": "0.2.0",
"license": "MIT",
"source": "src/codeshift.config.js",
"main": "dist/codeshift.config.js",
"source": "src/hypermod.config.js",
"main": "dist/hypermod.config.js",
"scripts": {
"dev": "codeshift",
"dev": "hypermod",
"build": "parcel build",
"test": "jest --watch",
"validate": "codeshift validate ."
"validate": "hypermod validate ."
},
"dependencies": {
"@codeshift/utils": "^0.2.3",
"@hypermod/utils": "^0.2.3",
"jscodeshift": "^0.13.1"
},
"devDependencies": {
"@codeshift/cli": "^0.15.0",
"@codeshift/test-utils": "^0.3.1",
"@hypermod/cli": "^0.15.0",
"@types/jest": "^29.0.0",
"@types/node": "^16.11.0",
"jest": "^29.0.0",
"prettier": "^2.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.5.5"
},
"repository": "https://github.com/CodeshiftCommunity/CodeshiftCommunity/tree/main/community/@atlaskit__button"
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__button"
}
2 changes: 1 addition & 1 deletion community/@atlaskit__button/src/15.0.0/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
insertImportSpecifier,
getDefaultImportSpecifierName,
removeDefaultImportSpecifier,
} from '@codeshift/utils';
} from '@hypermod/utils';

function tryCreateImport(
j: core.JSCodeshift,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('@atlaskit/[email protected] transform', () => {
}
`,
expected: `
/* TODO: (@codeshift) Cannot rename data-testid to testId on StandardButton.
/* TODO: (@hypermod) Cannot rename data-testid to testId on StandardButton.
A StandardButton was detected with both data-testid and testId props.
Please remove the data-testid prop and check your tests */
import StandardButton from '@atlaskit/button';
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__button/src/15.1.1/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
hasImportDeclaration,
insertCommentToStartOfFile,
getDefaultImportSpecifierName,
} from '@codeshift/utils';
} from '@hypermod/utils';

const relevantEntryPoints = [
'@atlaskit/button',
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__calendar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @codeshift/mod-atlaskit\_\_calendar
# @hypermod/mod-atlaskit\_\_calendar

## 0.2.0

Expand Down
17 changes: 8 additions & 9 deletions community/@atlaskit__calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
{
"name": "@codeshift/mod-atlaskit__calendar",
"name": "@hypermod/mod-atlaskit__calendar",
"version": "0.2.0",
"license": "MIT",
"source": "src/codeshift.config.js",
"main": "dist/codeshift.config.js",
"source": "src/hypermod.config.js",
"main": "dist/hypermod.config.js",
"scripts": {
"dev": "codeshift",
"dev": "hypermod",
"build": "parcel build",
"test": "jest --watch",
"validate": "codeshift validate ."
"validate": "hypermod validate ."
},
"dependencies": {
"@codeshift/utils": "^0.2.3",
"@hypermod/utils": "^0.2.3",
"jscodeshift": "^0.13.1"
},
"devDependencies": {
"@codeshift/cli": "^0.15.0",
"@codeshift/test-utils": "^0.3.1",
"@hypermod/cli": "^0.15.0",
"@types/jest": "^29.0.0",
"@types/node": "^16.11.0",
"jest": "^29.0.0",
"prettier": "^2.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.5.5"
},
"repository": "https://github.com/CodeshiftCommunity/CodeshiftCommunity/tree/main/community/@atlaskit__calendar"
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__calendar"
}
Loading

0 comments on commit bae5e54

Please sign in to comment.