Skip to content

Commit 3d08d06

Browse files
authored
Merge pull request #2245 from contentstack/feat/dx-3729
Removed deprecated code from migration plugin
2 parents fb88280 + d0fb5df commit 3d08d06

File tree

76 files changed

+5313
-14219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+5313
-14219
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ talisman_output.log
2323
snyk_output.log
2424
# Snyk Security Extension - AI Rules (auto-generated)
2525
.cursor/rules/snyk_rules.mdc
26+
**/migration-logs
27+
**/migration-logs/**

.talismanrc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
fileignoreconfig:
2-
- filename: packages/contentstack-migrate-rte/src/commands/cm/entries/migrate-html-rte.js
3-
checksum: c94c45b70de36ecedcd031356e1665ab3ed9495b55106334f09a1bd40a8b784b
2+
- filename: package-lock.json
3+
checksum: dbb4e0ec893dd445678e47864d3f3a0b14c3c0eff933fb50ef5ba6b300c1cba2
4+
- filename: packages/contentstack-migration/test/unit/utils/map.test.js
5+
checksum: 7d570280b2f379531dde84946b06171d50f92489ff0de6336f7fbd81c336ee89
6+
- filename: packages/contentstack-migration/test/unit/modules/parser.test.js
7+
checksum: 243fa1c45875675f719f660c0c988e2ba9266c562a37aaeb09b0db93a0cb037d
8+
- filename: packages/contentstack-migration/test/unit/validators/create-content-type-validator.test.js
9+
checksum: f92e39a542cd2d561c441d23395515cadc24c9514de55c3edb038f70bd2458b3
10+
- filename: packages/contentstack-migration/test/unit/validators/edit-content-type-validator.test.js
11+
checksum: bde4bc6b2a90e7ce5872e6fbbabef9f2db352705be4d2f8d28d71d84209a714e
412
version: '1.0'

package-lock.json

Lines changed: 2539 additions & 1700 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/README.md

Lines changed: 3 additions & 304 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
1919
$ csdx COMMAND
2020
running command...
2121
$ csdx (--version|-v)
22-
@contentstack/cli-audit/1.14.2 darwin-arm64 node-v22.14.0
22+
@contentstack/cli-audit/1.16.0 darwin-arm64 node-v24.11.1
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -35,16 +35,6 @@ USAGE
3535
* [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
3636
* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
3737
* [`csdx help [COMMAND]`](#csdx-help-command)
38-
* [`csdx plugins`](#csdx-plugins)
39-
* [`csdx plugins:add PLUGIN`](#csdx-pluginsadd-plugin)
40-
* [`csdx plugins:inspect PLUGIN...`](#csdx-pluginsinspect-plugin)
41-
* [`csdx plugins:install PLUGIN`](#csdx-pluginsinstall-plugin)
42-
* [`csdx plugins:link PATH`](#csdx-pluginslink-path)
43-
* [`csdx plugins:remove [PLUGIN]`](#csdx-pluginsremove-plugin)
44-
* [`csdx plugins:reset`](#csdx-pluginsreset)
45-
* [`csdx plugins:uninstall [PLUGIN]`](#csdx-pluginsuninstall-plugin)
46-
* [`csdx plugins:unlink [PLUGIN]`](#csdx-pluginsunlink-plugin)
47-
* [`csdx plugins:update`](#csdx-pluginsupdate)
4838

4939
## `csdx audit`
5040

@@ -273,7 +263,7 @@ USAGE
273263
$ csdx help [COMMAND...] [-n]
274264
275265
ARGUMENTS
276-
COMMAND... Command to show help for.
266+
[COMMAND...] Command to show help for.
277267
278268
FLAGS
279269
-n, --nested-commands Include all nested commands in the output.
@@ -282,296 +272,5 @@ DESCRIPTION
282272
Display help for csdx.
283273
```
284274

285-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.33/src/commands/help.ts)_
286-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.33/src/commands/help.ts)_
287-
288-
## `csdx plugins`
289-
290-
List installed plugins.
291-
292-
```
293-
USAGE
294-
$ csdx plugins [--json] [--core]
295-
296-
FLAGS
297-
--core Show core plugins.
298-
299-
GLOBAL FLAGS
300-
--json Format output as json.
301-
302-
DESCRIPTION
303-
List installed plugins.
304-
305-
EXAMPLES
306-
$ csdx plugins
307-
```
308-
309-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/index.ts)_
310-
311-
## `csdx plugins:add PLUGIN`
312-
313-
Installs a plugin into csdx.
314-
315-
```
316-
USAGE
317-
$ csdx plugins:add PLUGIN... [--json] [-f] [-h] [-s | -v]
318-
319-
ARGUMENTS
320-
PLUGIN... Plugin to install.
321-
322-
FLAGS
323-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
324-
-h, --help Show CLI help.
325-
-s, --silent Silences npm output.
326-
-v, --verbose Show verbose npm output.
327-
328-
GLOBAL FLAGS
329-
--json Format output as json.
330-
331-
DESCRIPTION
332-
Installs a plugin into csdx.
333-
334-
Uses npm to install plugins.
335-
336-
Installation of a user-installed plugin will override a core plugin.
337-
338-
Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
339-
Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
340-
341-
ALIASES
342-
$ csdx plugins:add
343-
344-
EXAMPLES
345-
Install a plugin from npm registry.
346-
347-
$ csdx plugins:add myplugin
348-
349-
Install a plugin from a github url.
350-
351-
$ csdx plugins:add https://github.com/someuser/someplugin
352-
353-
Install a plugin from a github slug.
354-
355-
$ csdx plugins:add someuser/someplugin
356-
```
357-
358-
## `csdx plugins:inspect PLUGIN...`
359-
360-
Displays installation properties of a plugin.
361-
362-
```
363-
USAGE
364-
$ csdx plugins:inspect PLUGIN...
365-
366-
ARGUMENTS
367-
PLUGIN... [default: .] Plugin to inspect.
368-
369-
FLAGS
370-
-h, --help Show CLI help.
371-
-v, --verbose
372-
373-
GLOBAL FLAGS
374-
--json Format output as json.
375-
376-
DESCRIPTION
377-
Displays installation properties of a plugin.
378-
379-
EXAMPLES
380-
$ csdx plugins:inspect myplugin
381-
```
382-
383-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/inspect.ts)_
384-
385-
## `csdx plugins:install PLUGIN`
386-
387-
Installs a plugin into csdx.
388-
389-
```
390-
USAGE
391-
$ csdx plugins:install PLUGIN... [--json] [-f] [-h] [-s | -v]
392-
393-
ARGUMENTS
394-
PLUGIN... Plugin to install.
395-
396-
FLAGS
397-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
398-
-h, --help Show CLI help.
399-
-s, --silent Silences npm output.
400-
-v, --verbose Show verbose npm output.
401-
402-
GLOBAL FLAGS
403-
--json Format output as json.
404-
405-
DESCRIPTION
406-
Installs a plugin into csdx.
407-
408-
Uses npm to install plugins.
409-
410-
Installation of a user-installed plugin will override a core plugin.
411-
412-
Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
413-
Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
414-
415-
ALIASES
416-
$ csdx plugins:add
417-
418-
EXAMPLES
419-
Install a plugin from npm registry.
420-
421-
$ csdx plugins:install myplugin
422-
423-
Install a plugin from a github url.
424-
425-
$ csdx plugins:install https://github.com/someuser/someplugin
426-
427-
Install a plugin from a github slug.
428-
429-
$ csdx plugins:install someuser/someplugin
430-
```
431-
432-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/install.ts)_
433-
434-
## `csdx plugins:link PATH`
435-
436-
Links a plugin into the CLI for development.
437-
438-
```
439-
USAGE
440-
$ csdx plugins:link PATH [-h] [--install] [-v]
441-
442-
ARGUMENTS
443-
PATH [default: .] path to plugin
444-
445-
FLAGS
446-
-h, --help Show CLI help.
447-
-v, --verbose
448-
--[no-]install Install dependencies after linking the plugin.
449-
450-
DESCRIPTION
451-
Links a plugin into the CLI for development.
452-
453-
Installation of a linked plugin will override a user-installed or core plugin.
454-
455-
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
456-
command will override the user-installed or core plugin implementation. This is useful for development work.
457-
458-
459-
EXAMPLES
460-
$ csdx plugins:link myplugin
461-
```
462-
463-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/link.ts)_
464-
465-
## `csdx plugins:remove [PLUGIN]`
466-
467-
Removes a plugin from the CLI.
468-
469-
```
470-
USAGE
471-
$ csdx plugins:remove [PLUGIN...] [-h] [-v]
472-
473-
ARGUMENTS
474-
PLUGIN... plugin to uninstall
475-
476-
FLAGS
477-
-h, --help Show CLI help.
478-
-v, --verbose
479-
480-
DESCRIPTION
481-
Removes a plugin from the CLI.
482-
483-
ALIASES
484-
$ csdx plugins:unlink
485-
$ csdx plugins:remove
486-
487-
EXAMPLES
488-
$ csdx plugins:remove myplugin
489-
```
490-
491-
## `csdx plugins:reset`
492-
493-
Remove all user-installed and linked plugins.
494-
495-
```
496-
USAGE
497-
$ csdx plugins:reset [--hard] [--reinstall]
498-
499-
FLAGS
500-
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
501-
--reinstall Reinstall all plugins after uninstalling.
502-
```
503-
504-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/reset.ts)_
505-
506-
## `csdx plugins:uninstall [PLUGIN]`
507-
508-
Removes a plugin from the CLI.
509-
510-
```
511-
USAGE
512-
$ csdx plugins:uninstall [PLUGIN...] [-h] [-v]
513-
514-
ARGUMENTS
515-
PLUGIN... plugin to uninstall
516-
517-
FLAGS
518-
-h, --help Show CLI help.
519-
-v, --verbose
520-
521-
DESCRIPTION
522-
Removes a plugin from the CLI.
523-
524-
ALIASES
525-
$ csdx plugins:unlink
526-
$ csdx plugins:remove
527-
528-
EXAMPLES
529-
$ csdx plugins:uninstall myplugin
530-
```
531-
532-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/uninstall.ts)_
533-
534-
## `csdx plugins:unlink [PLUGIN]`
535-
536-
Removes a plugin from the CLI.
537-
538-
```
539-
USAGE
540-
$ csdx plugins:unlink [PLUGIN...] [-h] [-v]
541-
542-
ARGUMENTS
543-
PLUGIN... plugin to uninstall
544-
545-
FLAGS
546-
-h, --help Show CLI help.
547-
-v, --verbose
548-
549-
DESCRIPTION
550-
Removes a plugin from the CLI.
551-
552-
ALIASES
553-
$ csdx plugins:unlink
554-
$ csdx plugins:remove
555-
556-
EXAMPLES
557-
$ csdx plugins:unlink myplugin
558-
```
559-
560-
## `csdx plugins:update`
561-
562-
Update installed plugins.
563-
564-
```
565-
USAGE
566-
$ csdx plugins:update [-h] [-v]
567-
568-
FLAGS
569-
-h, --help Show CLI help.
570-
-v, --verbose
571-
572-
DESCRIPTION
573-
Update installed plugins.
574-
```
575-
576-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.49/src/commands/plugins/update.ts)_
275+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.35/src/commands/help.ts)_
577276
<!-- commandsstop -->

packages/contentstack-audit/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@contentstack/cli-utilities": "~1.15.0",
2323
"@oclif/core": "^4.3.0",
2424
"@oclif/plugin-help": "^6.2.28",
25-
"@oclif/plugin-plugins": "^5.4.38",
2625
"chalk": "^4.1.2",
2726
"fast-csv": "^4.3.6",
2827
"fs-extra": "^11.3.0",
@@ -53,8 +52,7 @@
5352
"bin": "csdx",
5453
"commands": "./lib/commands",
5554
"plugins": [
56-
"@oclif/plugin-help",
57-
"@oclif/plugin-plugins"
55+
"@oclif/plugin-help"
5856
],
5957
"topicSeparator": ":",
6058
"additionalHelpFlags": [

packages/contentstack-auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ FLAGS
146146
-y, --yes Use this flag to skip confirmation
147147
--delivery Set this flag to save delivery token
148148
--management Set this flag to save management token
149-
--token=<value> Add the token name
149+
--token=<value> [env: TOKEN] Add the token name
150150
151151
DESCRIPTION
152152
Adds management/delivery tokens to your session to use it with other CLI commands

packages/contentstack-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
1515
$ csdx COMMAND
1616
running command...
1717
$ csdx (--version)
18-
@contentstack/cli-cm-bootstrap/2.0.0-beta.1 darwin-arm64 node-v22.14.0
18+
@contentstack/cli-cm-bootstrap/2.0.0-beta.2 darwin-arm64 node-v24.11.1
1919
$ csdx --help [COMMAND]
2020
USAGE
2121
$ csdx COMMAND

packages/contentstack-branches/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
3737
$ csdx COMMAND
3838
running command...
3939
$ csdx (--version)
40-
@contentstack/cli-cm-branches/1.6.1 darwin-arm64 node-v22.14.0
40+
@contentstack/cli-cm-branches/1.6.1 darwin-arm64 node-v24.11.1
4141
$ csdx --help [COMMAND]
4242
USAGE
4343
$ csdx COMMAND

0 commit comments

Comments
 (0)