Skip to content

Commit

Permalink
chore(cli): switch from param-case to change-case (#10841)
Browse files Browse the repository at this point in the history
**Problem**
The `param-case` package has been deprecated in favour of `change-case`.

**Changes**
1. Uses `change-case` in place of `param-case`
  • Loading branch information
Josh-Walker-GM authored Jun 18, 2024
1 parent 471fedb commit fdafce7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"boxen": "5.1.2",
"camelcase": "6.3.0",
"chalk": "4.1.2",
"change-case": "4.1.2",
"ci-info": "4.0.0",
"concurrently": "8.2.2",
"configstore": "3.1.5",
Expand All @@ -65,7 +66,6 @@
"latest-version": "5.1.0",
"listr2": "6.6.1",
"lodash": "4.17.21",
"param-case": "3.0.4",
"pascalcase": "1.0.0",
"pluralize": "8.0.0",
"portfinder": "1.0.32",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path'

import { paramCase } from 'change-case'
import fs from 'fs-extra'
import { Listr } from 'listr2'
import { paramCase } from 'param-case'
import terminalLink from 'terminal-link'

import { recordTelemetryAttributes } from '@redwoodjs/cli-helpers'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/generate/helpers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path'

import { paramCase } from 'change-case'
import fs from 'fs-extra'
import { Listr } from 'listr2'
import { paramCase } from 'param-case'
import pascalcase from 'pascalcase'
import terminalLink from 'terminal-link'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/generate/scaffold/scaffold.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'path'

import camelcase from 'camelcase'
import { paramCase } from 'change-case'
import execa from 'execa'
import fs from 'fs-extra'
import humanize from 'humanize-string'
import { Listr } from 'listr2'
import { paramCase } from 'param-case'
import pascalcase from 'pascalcase'
import terminalLink from 'terminal-link'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import path from 'path'
import * as babel from '@babel/core'
import boxen from 'boxen'
import camelcase from 'camelcase'
import { paramCase } from 'change-case'
import decamelize from 'decamelize'
import execa from 'execa'
import fs from 'fs-extra'
import { Listr } from 'listr2'
import { memoize, template } from 'lodash'
import { paramCase } from 'param-case'
import pascalcase from 'pascalcase'
import { format } from 'prettier'

Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8087,6 +8087,7 @@ __metadata:
boxen: "npm:5.1.2"
camelcase: "npm:6.3.0"
chalk: "npm:4.1.2"
change-case: "npm:4.1.2"
ci-info: "npm:4.0.0"
concurrently: "npm:8.2.2"
configstore: "npm:3.1.5"
Expand All @@ -8105,7 +8106,6 @@ __metadata:
listr2: "npm:6.6.1"
lodash: "npm:4.17.21"
memfs: "npm:4.9.2"
param-case: "npm:3.0.4"
pascalcase: "npm:1.0.0"
pluralize: "npm:8.0.0"
portfinder: "npm:1.0.32"
Expand Down Expand Up @@ -14204,7 +14204,7 @@ __metadata:
languageName: node
linkType: hard

"change-case@npm:^4.1.2":
"change-case@npm:4.1.2, change-case@npm:^4.1.2":
version: 4.1.2
resolution: "change-case@npm:4.1.2"
dependencies:
Expand Down Expand Up @@ -25412,16 +25412,6 @@ __metadata:
languageName: node
linkType: hard

"param-case@npm:3.0.4, param-case@npm:^3.0.4":
version: 3.0.4
resolution: "param-case@npm:3.0.4"
dependencies:
dot-case: "npm:^3.0.4"
tslib: "npm:^2.0.3"
checksum: 10c0/ccc053f3019f878eca10e70ec546d92f51a592f762917dafab11c8b532715dcff58356118a6f350976e4ab109e321756f05739643ed0ca94298e82291e6f9e76
languageName: node
linkType: hard

"param-case@npm:^2.1.1":
version: 2.1.1
resolution: "param-case@npm:2.1.1"
Expand All @@ -25431,6 +25421,16 @@ __metadata:
languageName: node
linkType: hard

"param-case@npm:^3.0.4":
version: 3.0.4
resolution: "param-case@npm:3.0.4"
dependencies:
dot-case: "npm:^3.0.4"
tslib: "npm:^2.0.3"
checksum: 10c0/ccc053f3019f878eca10e70ec546d92f51a592f762917dafab11c8b532715dcff58356118a6f350976e4ab109e321756f05739643ed0ca94298e82291e6f9e76
languageName: node
linkType: hard

"parent-module@npm:^1.0.0":
version: 1.0.1
resolution: "parent-module@npm:1.0.1"
Expand Down

0 comments on commit fdafce7

Please sign in to comment.