Closed whaatt closed 2 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:
doc.loadInfo()
which loads props that live on the doc, rather than returning the info with doc.getInfo()
row.phonenumber
and now it's row['Phone Number']
sheet.loadCells()
(can use a filter like sheet.loadCells('A1:F10')
)sheet.getCell(row, col)
or sheet.getCellByA1('D5')
cell.value = "newValue"
or cell.formula = "=SUM(A1:D1)"
sheet.saveUpdatedCells()
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?
Hello! Must be a typo - it’s loadCells
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!
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
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
Promise
s instead), but is there anything else that is materially different?If there's a changelog, that'd be awesome.
Thanks!