-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: adding BrowserTypes to root export #1338
Comments
Adding to #1297 |
I've done the export in 065c0d7 as If this works for you @Roaders, then @robmoffat can just merge this in and tick it off his list for now. |
Tagging @Lecss This is great, thanks for tackling that @kriswest. One quick question - normally I wouldn't check in browserTypes as it is generated from other first-hand code (i.e. your schemas). What's the argument here for checking it in too? Or could we simply include the generated version in our npm package? Interested to hear what @Roaders and @Lecss think on this too. |
We've always checked in the generated source file for ContextTypes.ts and BridgingTypes.ts, and do so on a pre-commit hook, as this allows us to review and track what is actually changing in the generated code. Were a quicktype update and tweak to the quicktype commands to alter the generated code we'd be able to see that, alongside changes caused by schema updates. Due to schema composition, changes in one schema can affect multiple of the generated source files and multiple elements within each file and due to that complexity, it can be hard for a contributor to know what will be affected by a change they implement in the schema files. Finally, its easy to inadvertently break the schema files through a syntax error or syntactically correct change that results in an unvalidatable schema. This is only revealed by running the code generation scripts (although we could do with further emphasizing the errors when they occur). Hence, I see only benefits and no downsides to checking in the generated code. |
A |
That reminds me, there is a /src/GetAgent.ts file with the type for the function and args: export type getAgent = (
params?: GetAgentParams,
) => Promise<DesktopAgent>; But it should probably not be exported as |
In this case I think checking it in would be useful so that it's visible in GitHub and people can look at it there. Generally I do not like checking in generated stuff but I think this would be an exception |
You can use this. Add the following deps to package.json:
And then just import:
We'll move back to the @finos namespace once the vote goes through, as discussed in a meeting earlier this week |
@flashd2n (Kalin), @ksgeorgieva (Kalina) see the above comment from @robmoffat on access to the draft |
@robmoffat did you merge the BrowserTypes export in index.ts and republish? I.e. can we close this as completed? At https://unpkg.com/browse/@kite9/fdc3@2.2.0-beta.6/dist/fdc3.cjs.development.js I see ContextTypes and BridgingTypes, but not yet BrowserTypes so I would assume not. |
yes, I've done this in fdc3-for-web-impl. I'd really like to take you through it as I'm not 100% confident with all these name collisions and picking the right ones |
I haven't republished yet |
I'm around shortly, and can connect with you to take a look @robmoffat |
Closed as completed - see @robmoffat's message above about getting at a sample, which will move into main when its been reviewwed and we've confirmed that FDC3 for the Web is going into the next FDC3 version at SWG meeting on 26th September |
Question Area
Question
We've just moved over to the Beta release published under
@kite9
and I noticed that I am still having to import messages from a deep path asBrowserTypes
is not included in the root export:What is the plan for including these in the root export? There are several naming collisions - do we have a plan for dealing with them?
The text was updated successfully, but these errors were encountered: