theoephraim / node-google-spreadsheet

Google Sheets API wrapper for Javascript / Typescript
https://theoephraim.github.io/node-google-spreadsheet
The Unlicense
2.31k stars 391 forks source link

Migration guide or changelog #273

Closed whaatt closed 2 years ago

whaatt commented 4 years ago

Hi there! I noticed you just published a version of this library compatible with Google Sheets V4.

At a first glance, what do existing codebases using this library need to do to migrate from the old version? It looks like a number of functions no longer take callbacks (and return Promises instead), but is there anything else that is materially different?

If there's a changelog, that'd be awesome.

Thanks!

theoephraim commented 4 years ago

I had considered it, but figured the effort would be better spent on making sure the general docs were really solid. I'll see if I can make some time to get something together. In general quite a lot has changed, but I've tried to make sure it still is very simple to use. Google's v4 api is very different so some things really had to change and I had no choice.

Off the top of my head:

deepfriedbrain commented 4 years ago

I'm also trying to migrate my project to Google Spreadsheet v4. The documentation of this library mentions getCells to get all cells, but when I call it, I get an error 'getCells is not a function', and I can't find that function in the code either. What function should I use to get all the cells?

theoephraim commented 4 years ago

Hello! Must be a typo - it’s loadCells

whaatt commented 4 years ago

Another idea (purely a suggestion/feature request, I'm sure there are many other things competing for your attention): Would be awesome to have TypeScript type definitions for this library!

theoephraim commented 2 years ago

going to close as it's now been quite a while. I've also added a changelog file and will keep it up to date as we move forward!

Thanks :D