bimdata / javascript-api-client

BIMData.io api client in javascript
3 stars 1 forks source link

Avoid usage of fs, Buffer and querystring #6

Open Amoki opened 4 years ago

Amoki commented 4 years ago

This lib uses fs, Buffer, and querystring that are nodeJS modules. Rollup and Webpack use polyfill but that adds many KB of javascript to download.

Here are the available language & frameworks in OpenAPI Generator:

I'm thinking about using the TypeScript lib with Fetch. We can easily compile the TS into JS and use them is standard app. What do you think @Kurtil?

Kurtil commented 4 years ago

Fetch seems a good choice

Amoki commented 4 years ago

Typescript-Fetch has a naming conflict caused by the same methods accessible from CollaborationApi and IfcApi. TypeScript-Axios seems to works well but I can't manage to publish it. The axios dependency won't be included in the built file and running import axios from 'axios' doesn't work in browsers...