-
Notifications
You must be signed in to change notification settings - Fork 38
Upgrading react winjs to a new version of WinJS
- Run
winjs-control-apison the latestwinjs.d.tsfile. This will generate data about the WinJS control API surface thatreact-winjscan consume. - Replace the definition of
RawControlApiswith the output from the tool. - View the diff of your changes to
react-winjs.js.
Note any controls that were added or removed from RawControlApis. These controls should be added or removed from ControlApis near the bottom of the file as appropriate.
Each property in RawControlApis is automatically mapped to a PropHandler which describes how each react-winjs component's prop gets converted to the WinJS control's property. Most get mapped to PropHandlers.property. Those that begin with on are assumed to be events and get mapped to PropHandlers.event.
Note any properties that were added, removed, or edited in RawControlApis in the diff. If the PropHandler it'll be assigned by default based on the description above isn't appropriate or if you'd like to add an additional prop to the react-winjs component to make usage from React more convenient, you'll need to specify an appropriate PropHandler in ControlApis near the bottom of the file. Review the built-in list of PropHandlers to see if there's one you can use.
-
package.json. Update the version number of WinJS inpeerDependenciesin thepackage.jsonfile. -
README.md. Update all references to the WinJS version inREADME.md.
- Update each example to use the latest version of WinJS.
- Update each example based on API changes that occurred in WinJS.
- Add examples to the showcase example based on new APIs in WinJS.
- Update the Documentation
As a reference, here's the commit which updated react-winjs to WinJS 4.2: ad31a7