@wictorwilen/cocogen 1.1.0-preview.1 → 1.1.0-preview.2

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.1.0-preview.2] - 2026-04-07
11
+
12
+ ### Fixed
13
+ - `npm run update-graph-profile-schema` now refreshes the profile CSDL snapshot from the official `microsoftgraph/msgraph-metadata` raw schema files because the live Graph `$metadata` endpoints no longer return XML reliably for this workflow.
14
+
15
+ ### Changed
16
+ - People connector metadata refresh and validation now recognize the five current beta-only labels documented for people connectors: `personEducationalActivities`, `personInterests`, `personLanguages`, `personPatents`, and `personPublications`.
17
+ - `externalConnection.contentCategory` now resolves to Graph `v1.0` capability in the generator metadata, matching `principal` and `principalCollection`.
18
+ - People profile source registration now resolves to Graph `v1.0` capability as well, so stable people schemas no longer require preview features unless they use beta-only labels.
19
+
10
20
  ## [1.1.0-preview.1] - 2026-03-31
11
21
 
12
22
  ### Changed
@@ -335,6 +345,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
335
345
  - Collection values no longer split on commas; use semicolons instead.
336
346
 
337
347
  [Unreleased]: https://github.com/wictorwilen/cocogen/compare/v1.0.16...HEAD
348
+ [1.1.0-preview.2]: https://github.com/wictorwilen/cocogen/compare/main...v1.1.0-preview.2
338
349
  [1.1.0-preview.1]: https://github.com/wictorwilen/cocogen/compare/main...v1.1.0-preview.1
339
350
  [1.0.50]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.50
340
351
  [1.0.49]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.49
package/README.md CHANGED
@@ -120,7 +120,7 @@ cocogen --help
120
120
  | `emit` | Emit cocogen IR as JSON | `--tsp <path>`, `--out <path>`, `--use-preview-features` |
121
121
 
122
122
  Notes:
123
- - `--use-preview-features` is required for Graph beta schemas (for example people connectors).
123
+ - `--use-preview-features` is required only when a schema uses Graph beta capabilities such as beta-only people labels.
124
124
 
125
125
  ### Create a starter TypeSpec file
126
126
 
@@ -136,7 +136,7 @@ npx @wictorwilen/cocogen@latest init --prompt
136
136
  npx @wictorwilen/cocogen@latest validate --tsp ./schema.tsp
137
137
  ```
138
138
 
139
- Use `--use-preview-features` for Graph beta schemas (for example people connectors).
139
+ Use `--use-preview-features` when cocogen reports a Graph beta requirement.
140
140
 
141
141
  ### Generate a runnable project
142
142
 
@@ -146,7 +146,7 @@ npx @wictorwilen/cocogen@latest generate --tsp ./schema.tsp --out ./my-connector
146
146
 
147
147
  Notes:
148
148
  - `cocogen` will fail fast if the schema is invalid.
149
- - Beta features require `--use-preview-features`.
149
+ - Graph beta features require `--use-preview-features`.
150
150
  - Use `--data-format custom` to emit a stub datasource for custom backends.
151
151
 
152
152
  ### Update generated code after changing TypeSpec