Add partial row updates & remove fields.get#6
Merged
john-doherty merged 6 commits intomasterfrom Apr 23, 2026
Merged
Conversation
Add support for a partial option on rows.add and rows.updateOne (propagates ?partial=true to requests) and add the partial flag to TypeScript definitions. Remove the deprecated fields.get API (implementation, type, and tests). Update README examples and docs (field format labels, admin note, options docs, retry/backoff details) and adjust tests to cover the new partial behavior and the removed fields.get surface.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for partial row updates by propagating ?partial=true for rows.add and rows.updateOne, updates TypeScript typings accordingly, and removes the deprecated fields.get API surface across implementation, docs, and tests.
Changes:
- Add
partialoption support torows.addandrows.updateOne(JS + TS types) and expand unit tests to verify query param behavior. - Remove
fields.getfrom the runtime client and TypeScript definitions, and delete associated unit tests. - Update README/docs and introduce an opt-in e2e test suite (new Jasmine config + helpers + script).
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
index.js |
Adds partial query param support for rows.add / rows.updateOne; removes fields.get implementation. |
index.d.ts |
Adds partial?: boolean to rows.add / rows.updateOne options; removes fields.get type. |
tests/rows-spec.js |
Adds unit coverage asserting partial=true is (and isn’t) sent for add / updateOne. |
tests/fields-spec.js |
Removes unit tests for the deleted fields.get API. |
tests/interface-spec.js |
Updates interface expectations to reflect removal of fields.get and adjusted method counts. |
tests/jasmine/config.json |
Excludes tests/e2e/** from the default npm test suite. |
tests/e2e/setup.js |
Adds shared e2e client setup, .env loading, and shared sheetId state. |
tests/e2e/jasmine-e2e.config.json |
Adds a dedicated Jasmine config for running e2e specs. |
tests/e2e/01-sheets-e2e-spec.js |
Creates a sheet and stores sheetId for subsequent e2e specs. |
tests/e2e/02-settings-e2e-spec.js |
Adds e2e coverage for settings get/update. |
tests/e2e/03-fields-e2e-spec.js |
Adds e2e coverage for fields create/list/update/delete. |
tests/e2e/04-rows-e2e-spec.js |
Adds e2e coverage for rows add/get/list/update/count/updateMany/delete. |
tests/e2e/05-history-e2e-spec.js |
Adds e2e coverage for history endpoints with row lifecycle setup/cleanup. |
tests/e2e/06-hooks-e2e-spec.js |
Adds e2e coverage for hooks events/list/get/create/update/delete. |
tests/e2e/07-users-e2e-spec.js |
Adds e2e coverage for listing users. |
tests/e2e/99-teardown-e2e-spec.js |
Cleans up by deleting the created sheet and verifying deletion. |
README.md |
Updates examples/docs: field formats, partial support notes, admin note, and retry/backoff wording. |
package.json |
Bumps version, adds files allowlist, and introduces test-e2e script. |
package-lock.json |
Updates version to match package.json. |
.npmrc |
Sets save-exact=true for dependency pinning in dev. |
.env.example |
Adds example env vars for running the new e2e suite. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rows.addandrows.updateOne(propagates ?partial=true to requests) and add the partial flag to TypeScript definitions.fields.getAPI (implementation, type, and tests).fields.getsurface