@teambit/harmony.content.cli-reference 2.0.974 → 2.0.975

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  ---
2
- description: 'Bit command synopses. Bit version: 1.13.111'
2
+ description: 'Bit command synopses. Bit version: 1.13.112'
3
3
  labels: ['cli', 'mdx', 'docs']
4
4
  ---
@@ -3525,6 +3525,43 @@
3525
3525
  "group": "advanced",
3526
3526
  "private": true
3527
3527
  },
3528
+ {
3529
+ "name": "schema <pattern>",
3530
+ "alias": "",
3531
+ "options": [
3532
+ [
3533
+ "r",
3534
+ "remote",
3535
+ "fetch schema from remote scope (works for components not in workspace)"
3536
+ ],
3537
+ [
3538
+ "j",
3539
+ "json",
3540
+ "return the component schema in json format"
3541
+ ]
3542
+ ],
3543
+ "description": "display component API schema and type definitions",
3544
+ "extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse comma to separate patterns and '!' to exclude. e.g. 'ui/**, !ui/button'\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
3545
+ "group": "info-analysis",
3546
+ "private": false,
3547
+ "commands": [
3548
+ {
3549
+ "name": "diff <component> <base-version> <compare-version>",
3550
+ "alias": "",
3551
+ "options": [
3552
+ [
3553
+ "j",
3554
+ "json",
3555
+ "return the API diff in json format"
3556
+ ]
3557
+ ],
3558
+ "description": "show API changes between two versions of a component",
3559
+ "extendedDescription": "compares the public API schema between two versions of a component.\nshows added, removed, and modified exports with semantic impact analysis.\n\nexamples:\n bit schema diff my-component 0.0.1 0.0.2",
3560
+ "group": "info-analysis",
3561
+ "private": false
3562
+ }
3563
+ ]
3564
+ },
3528
3565
  {
3529
3566
  "name": "test [component-pattern]",
3530
3567
  "alias": "at",
@@ -5232,26 +5269,6 @@
5232
5269
  }
5233
5270
  ]
5234
5271
  },
5235
- {
5236
- "name": "schema <pattern>",
5237
- "alias": "",
5238
- "options": [
5239
- [
5240
- "r",
5241
- "remote",
5242
- "fetch schema from remote scope (works for components not in workspace)"
5243
- ],
5244
- [
5245
- "j",
5246
- "json",
5247
- "return the component schema in json format"
5248
- ]
5249
- ],
5250
- "description": "display component API schema and type definitions",
5251
- "extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse comma to separate patterns and '!' to exclude. e.g. 'ui/**, !ui/button'\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
5252
- "group": "info-analysis",
5253
- "private": false
5254
- },
5255
5272
  {
5256
5273
  "name": "log <id>",
5257
5274
  "alias": "",
package/cli-reference.mdx CHANGED
@@ -2263,6 +2263,21 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
2263
2263
 
2264
2264
  `bit schema <pattern>`
2265
2265
 
2266
+ ### schema diff
2267
+
2268
+ **Usage**: `schema diff <component> <base-version> <compare-version>`
2269
+
2270
+ **Description**: show API changes between two versions of a component
2271
+ compares the public API schema between two versions of a component.
2272
+ shows added, removed, and modified exports with semantic impact analysis.
2273
+
2274
+ examples:
2275
+ bit schema diff my-component 0.0.1 0.0.2
2276
+
2277
+ | **Option** | **Option alias** | **Description** |
2278
+ | ---------- | :--------------: | ---------------------------------- |
2279
+ | `--json` | `-j` | return the API diff in json format |
2280
+
2266
2281
  | **Option** | **Option alias** | **Description** |
2267
2282
  | ---------- | :--------------: | ---------------------------------------------------------------------- |
2268
2283
  | `--remote` | `-r` | fetch schema from remote scope (works for components not in workspace) |
@@ -1,4 +1,4 @@
1
1
  ---
2
- description: 'Bit command synopses. Bit version: 1.13.111'
2
+ description: 'Bit command synopses. Bit version: 1.13.112'
3
3
  labels: ['cli', 'mdx', 'docs']
4
4
  ---
@@ -3525,6 +3525,43 @@
3525
3525
  "group": "advanced",
3526
3526
  "private": true
3527
3527
  },
3528
+ {
3529
+ "name": "schema <pattern>",
3530
+ "alias": "",
3531
+ "options": [
3532
+ [
3533
+ "r",
3534
+ "remote",
3535
+ "fetch schema from remote scope (works for components not in workspace)"
3536
+ ],
3537
+ [
3538
+ "j",
3539
+ "json",
3540
+ "return the component schema in json format"
3541
+ ]
3542
+ ],
3543
+ "description": "display component API schema and type definitions",
3544
+ "extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse comma to separate patterns and '!' to exclude. e.g. 'ui/**, !ui/button'\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
3545
+ "group": "info-analysis",
3546
+ "private": false,
3547
+ "commands": [
3548
+ {
3549
+ "name": "diff <component> <base-version> <compare-version>",
3550
+ "alias": "",
3551
+ "options": [
3552
+ [
3553
+ "j",
3554
+ "json",
3555
+ "return the API diff in json format"
3556
+ ]
3557
+ ],
3558
+ "description": "show API changes between two versions of a component",
3559
+ "extendedDescription": "compares the public API schema between two versions of a component.\nshows added, removed, and modified exports with semantic impact analysis.\n\nexamples:\n bit schema diff my-component 0.0.1 0.0.2",
3560
+ "group": "info-analysis",
3561
+ "private": false
3562
+ }
3563
+ ]
3564
+ },
3528
3565
  {
3529
3566
  "name": "test [component-pattern]",
3530
3567
  "alias": "at",
@@ -5232,26 +5269,6 @@
5232
5269
  }
5233
5270
  ]
5234
5271
  },
5235
- {
5236
- "name": "schema <pattern>",
5237
- "alias": "",
5238
- "options": [
5239
- [
5240
- "r",
5241
- "remote",
5242
- "fetch schema from remote scope (works for components not in workspace)"
5243
- ],
5244
- [
5245
- "j",
5246
- "json",
5247
- "return the component schema in json format"
5248
- ]
5249
- ],
5250
- "description": "display component API schema and type definitions",
5251
- "extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse comma to separate patterns and '!' to exclude. e.g. 'ui/**, !ui/button'\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
5252
- "group": "info-analysis",
5253
- "private": false
5254
- },
5255
5272
  {
5256
5273
  "name": "log <id>",
5257
5274
  "alias": "",
@@ -4596,6 +4596,32 @@ function _createMdxContent(props) {
4596
4596
  children: (0, _jsxRuntime.jsx)(_components.code, {
4597
4597
  children: "bit schema <pattern>"
4598
4598
  })
4599
+ }), "\n", (0, _jsxRuntime.jsx)(_components.h3, {
4600
+ children: "schema diff"
4601
+ }), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
4602
+ children: [(0, _jsxRuntime.jsx)(_components.strong, {
4603
+ children: "Usage"
4604
+ }), ": ", (0, _jsxRuntime.jsx)(_components.code, {
4605
+ children: "schema diff <component> <base-version> <compare-version>"
4606
+ })]
4607
+ }), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
4608
+ children: [(0, _jsxRuntime.jsx)(_components.strong, {
4609
+ children: "Description"
4610
+ }), ": show API changes between two versions of a component", (0, _jsxRuntime.jsx)(_components.br, {}), "\n", "compares the public API schema between two versions of a component.", (0, _jsxRuntime.jsx)(_components.br, {}), "\n", "shows added, removed, and modified exports with semantic impact analysis."]
4611
+ }), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
4612
+ children: ["examples:", (0, _jsxRuntime.jsx)(_components.br, {}), "\n", "bit schema diff my-component 0.0.1 0.0.2"]
4613
+ }), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
4614
+ children: ["| ", (0, _jsxRuntime.jsx)(_components.strong, {
4615
+ children: "Option"
4616
+ }), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
4617
+ children: "Option alias"
4618
+ }), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
4619
+ children: "Description"
4620
+ }), " |\n| ---------- | :--------------: | ---------------------------------- |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
4621
+ children: "--json"
4622
+ }), " | ", (0, _jsxRuntime.jsx)(_components.code, {
4623
+ children: "-j"
4624
+ }), " | return the API diff in json format |"]
4599
4625
  }), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
4600
4626
  children: ["| ", (0, _jsxRuntime.jsx)(_components.strong, {
4601
4627
  children: "Option"