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

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,22 @@ 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.3] - 2026-04-07
11
+
12
+ ### Fixed
13
+ - `cocogen update` now refreshes generated `.NET` `Program.cs` files even without `--include-scaffold`, so schema-driven entrypoint changes do not stay stale after updates.
14
+ - Validation now warns when people-label `@coco.source(..., to)` mappings reference unknown Graph target paths (for example `program.fieldOfStudy` instead of `program.fieldsOfStudy`) so fallback object generation is easier to diagnose.
15
+
16
+ ## [1.1.0-preview.2] - 2026-04-07
17
+
18
+ ### Fixed
19
+ - `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.
20
+
21
+ ### Changed
22
+ - People connector metadata refresh and validation now recognize the five current beta-only labels documented for people connectors: `personEducationalActivities`, `personInterests`, `personLanguages`, `personPatents`, and `personPublications`.
23
+ - `externalConnection.contentCategory` now resolves to Graph `v1.0` capability in the generator metadata, matching `principal` and `principalCollection`.
24
+ - 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.
25
+
10
26
  ## [1.1.0-preview.1] - 2026-03-31
11
27
 
12
28
  ### Changed
@@ -335,6 +351,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
335
351
  - Collection values no longer split on commas; use semicolons instead.
336
352
 
337
353
  [Unreleased]: https://github.com/wictorwilen/cocogen/compare/v1.0.16...HEAD
354
+ [1.1.0-preview.3]: https://github.com/wictorwilen/cocogen/compare/main...v1.1.0-preview.3
355
+ [1.1.0-preview.2]: https://github.com/wictorwilen/cocogen/compare/main...v1.1.0-preview.2
338
356
  [1.1.0-preview.1]: https://github.com/wictorwilen/cocogen/compare/main...v1.1.0-preview.1
339
357
  [1.0.50]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.50
340
358
  [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
@@ -159,6 +159,8 @@ When you change the schema, regenerate only the TypeSpec-derived files:
159
159
  npx @wictorwilen/cocogen@latest update --out ./my-connector
160
160
  ```
161
161
 
162
+ For generated .NET projects, `update` also refreshes `Program.cs` because it carries schema-derived wiring such as the item model and people-connector provisioning flow.
163
+
162
164
  Override the TypeSpec entrypoint (also updates `cocogen.json`):
163
165
 
164
166
  ```bash