Add the new dataCollection option to ReactNativeOptions with the relevant subset of options from the spec.
Tasks
- Define
DataCollectionOptions type with at minimum: userInfo, genAIInputs, genAIOutputs, stackFrameVariables, frameContextLines
- Add
dataCollection to ReactNativeOptions in options.ts
- Deprecate
sendDefaultPii with a JSDoc @deprecated annotation
- Add backward-compat bridging: if
sendDefaultPii is set but dataCollection is not, map sendDefaultPii: true → dataCollection: { userInfo: true }
- Emit a console warning when
sendDefaultPii is used, pointing to dataCollection
- Add tests for the bridging logic
References
Add the new
dataCollectionoption toReactNativeOptionswith the relevant subset of options from the spec.Tasks
DataCollectionOptionstype with at minimum:userInfo,genAIInputs,genAIOutputs,stackFrameVariables,frameContextLinesdataCollectiontoReactNativeOptionsinoptions.tssendDefaultPiiwith a JSDoc@deprecatedannotationsendDefaultPiiis set butdataCollectionis not, mapsendDefaultPii: true→dataCollection: { userInfo: true }sendDefaultPiiis used, pointing todataCollectionReferences
packages/core/src/js/options.ts— option definitions