question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migration guide or changelog

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
theoephraimcommented, Mar 10, 2020

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:

  • everything is promise based so no more callbacks (promises are now much better with async/await)
  • when fetching rows, you can no longer use queries or ordering (google no longer supports the row-based calls, so I had to recreate them as much as possible)
    • also the issue with an empty row breaking things is now gone, but empty rows will be fetched
  • use doc.loadInfo() which loads props that live on the doc, rather than returning the info with doc.getInfo()
  • Column header values used to be normalized by google, but are now used as is. For example, if you had a column header of “Phone Number”, to access a row value in the old version would be row.phonenumber and now it’s row['Phone Number']
  • cell interaction is very different, but should be even easier to use
    • load cells with sheet.loadCells() (can use a filter like sheet.loadCells('A1:F10'))
    • access specific cells with sheet.getCell(row, col) or sheet.getCellByA1('D5')
    • make changes cell.value = "newValue" or cell.formula = "=SUM(A1:D1)"
    • save all unsaved changes using sheet.saveUpdatedCells()
0reactions
theoephraimcommented, Nov 7, 2021

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 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

changelog-v5/MIGRATION GUIDE.md at master · webpack ...
Help by editing this file. This guide should help you migrating to webpack 5 when using webpack directly. If you are using some...
Read more >
Changelog and Migration Guide - Yelp Developer Portal
This Migration Guide will go through all the steps necessary to migrate from using any of the Location Subscriptions v1, Location Subscriptions v2, ......
Read more >
Changelog and Migration Guide - Detekt
Changelog and Migration Guide. 1.22.0 - 2022-11-20​. Notable Changes​. We're introducing the Detekt Marketplace, a place where you can add your own 3rd ......
Read more >
Changes and Migration — SQLAlchemy 1.3 Documentation
SQLAlchemy changelogs and migration guides are now integrated within the main documentation. Current Migration Guide¶. What's New in SQLAlchemy 1.3? Change logs ...
Read more >
Reporting API changelog and migration guide
Review the changes for the latest version of Soda Cloud's Reporting API and learn how to migrate existing calls.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found