---
updatedAt: 2026-11-25T00:13:07.000Z
agentTools:
  projectIndex: https://apidocs.taxbit.com/llms.txt
---

# Upgrade guide

Start at the version you're on and work up to the latest.

Each version lists what's new, then what you might need to change. Skip any change that doesn't match your setup.

| You're on | Read                                                                   |
| --------- | ---------------------------------------------------------------------- |
| 6.3       | [7.0](#70)                                                             |
| 6.2       | [6.3](#63), [7.0](#70)                                                 |
| 6.0, 6.1  | [6.2](#62), [6.3](#63), [7.0](#70)                                     |
| 5.x       | [6.0](#60), [6.2](#62), [6.3](#63), [7.0](#70)                         |
| 4.x       | [5.0](#50), [6.0](#60), [6.2](#62), [6.3](#63), [7.0](#70)             |
| 3.x       | [4.0](#40), [5.0](#50), [6.0](#60), [6.2](#62), [6.3](#63), [7.0](#70) |

```bash
npm install @taxbit/react-sdk@7
```

**Upgrading with an AI coding agent?** The [Taxbit React SDK skill](https://github.com/taxbit-shared/taxbit-skills) works as an integration assistant in Claude Code, Cursor and other agents. It can review your existing integration, call out what each version changed, and apply the updates. Install it, then ask your agent to upgrade `@taxbit/react-sdk` to the latest version.

```bash
npx skills add taxbit-shared/taxbit-skills
```

***

# 7.0

**What's new:** one grouped `config` prop for every setting; a dry run that can run real IRS checks without storing anything; an optional PDF download page after submit (`config.documentDownload`); a minimum age for dates of birth (`config.rules.minimumAge`); your own loading, error and finished screens; a CommonJS build.

7.0 is a breaking release. Most integrations need three edits: move settings into `config`, rename `demoMode` to `dryRun`, and replace `loadingComponent`. The rendered markup and class names are unchanged except the `TaxbitTaxResidencies` form class, so your CSS keeps working.

**Before you start**

* **React 18 or 19.** 7.0 drops React 16 and 17.
* **A bundler, or `import` / `require`.** The UMD build (`taxbit-react-sdk.umd.cjs`) is removed. If you load the SDK through a `<script>` tag or a direct path to that file, switch to `import` (ES build) or `require` (new CommonJS build). Both load each language from files next to the entry; if you self-host, copy every `.js` file in `dist/`.

**What to change**

* **Move settings into `config`.** `bearerToken`, `questionnaire`, `data` and the callbacks stay at the top level. Everything else moves:

  | 6.3 prop                                                                              | 7.0                              |
  | ------------------------------------------------------------------------------------- | -------------------------------- |
  | `fatca`, `treatyClaims`, `typesOfIncome`, `eDeliveryConsent`, `realTimeTinValidation` | `config.wForm.<setting>`         |
  | `adaptiveMode`                                                                        | `config.rules.adaptiveMode`      |
  | `language`, `dateFormat`                                                              | `config.locale.<setting>`        |
  | `prepopulateWithSavedData`, `telemetry`                                               | `config.<setting>`               |
  | `poweredByTaxbit`                                                                     | `config.display.poweredByTaxbit` |
  | `loadingComponent`                                                                    | `config.display.screens.loading` |
  | `region`, `proxyDomain`, `proxyHeaders`, `staging`                                    | `config.connection.<setting>`    |

  **A 6.3 prop left at the top level is ignored, not rejected** — the form renders without it. The console names each one once as the questionnaire mounts, with where it goes. Check the console after upgrading.

  <Tabs>
  <Tab title="6.3">

  ```jsx
  <TaxbitQuestionnaire
    questionnaire="W-FORM"
    bearerToken={token}
    adaptiveMode="skipEdit"
    treatyClaims={true}
    typesOfIncome={['interest']}
    language="fr-ca"
    region="EU"
    poweredByTaxbit={true}
    loadingComponent={<Spinner />}
    onSuccess={handleSuccess}
  />
  ```

  </Tab>
  <Tab title="7.0">

  ```jsx
  <TaxbitQuestionnaire
    questionnaire="W-FORM"
    bearerToken={token}
    config={{
      rules: { adaptiveMode: 'skipEdit' },
      wForm: { treatyClaims: true, typesOfIncome: ['interest'] },
      locale: { language: 'fr-ca' },
      connection: { region: 'EU' },
      display: { poweredByTaxbit: true, screens: { loading: () => <Spinner /> } },
    }}
    onSuccess={handleSuccess}
  />
  ```

  </Tab>
  </Tabs>

* **`demoMode` → `dryRun`.** Without a `bearerToken`, a dry run behaves like demo mode and simulates the IRS checks. With one, it runs the checks against Taxbit and still stores nothing.

* **`loadingComponent` → `config.display.screens.loading`.** It now takes a component, not a node. The component receives `{ screenKey, text: { label, sublabel } }`. To change only the words, use `config.display.text.loading`.

* **`onSubmit`.** It now receives the signed document and a `files` object, and runs **before** anything is stored. The SDK waits for it, and if it rejects, the submit stops and `onError` is called. If your handler can throw or returns a rejected promise for reasons unrelated to the submission (analytics, logging), catch the error inside it.

* **`onProgress`.** `Progress` keeps its step fields and adds page fields (`level`, `pageKey`, `pageIndex`, `pageCount`, `title`). The answers so far arrive as a second argument. `stepTitle` is now the heading the page shows, which differs from 6.3 on steps whose heading follows the answers, such as the certifications. If you set `document.title` from it, nothing to change.

* **`onError`.** It also receives the answers so far, and is called when a component fails to draw.

* **Curing.** `TaxbitCuringDocumentation` takes the same `config` groups: `config.locale.language`, `config.display.poweredByTaxbit`, `config.display.screens.loading`, and `config.connection` for `region`, `staging`, `proxyDomain` and `proxyHeaders`. `demoIssueTypes` is `dryRun: { issueTypes }`; `dryRun: { accountOwnerType }` picks which W-8 a dry run cures. `onSubmit` is now called in every session, with the file, before anything is stored, and a rejection stops the submit. [Curing reference](https://apidocs.taxbit.com/docs/component-and-hook-reference#taxbitcuringdocumentation-props)

* **`TaxbitTaxResidencies` CSS.** Its form class is now `taxbit-form-account-holder-tax-residences-section` (was `taxbit-form-standalone-residencies`). Update any selector that targets it.

* **Tests and scripts that match English text.** The U.S. person questions now read "U.S. person", "U.S. citizen" and "U.S. permanent resident" in lowercase.

* **Reading submissions.** Expect these optional fields:
  * `usTinIsValid` and `giinIsValid` on the account holder or regarded owner — `true` when the user confirmed a U.S. TIN or GIIN the IRS check couldn't match. Pass them back in `data` to keep the confirmation.
  * `passiveNffeUsSubstantialOwner` on a Passive NFFE's account holder or regarded owner, answering "Does this Passive NFFE have substantial U.S. owners?".
  * U.S. ZIP codes and Canadian postal codes without their dash or space (`627011234`, `K1A0B1`), as TINs already are.

**Collection changes you might notice**

* A W-9 or W-8 individual's name can't start with a title (Mr, Mrs, Ms, Miss).
* On a Self-Certification, city and country of birth are answered together or both left blank.
* Under `skipEdit` or `skipLock`, a disregarded entity is asked every question, as under `full`. A DPS entity's business registration from `data` is skipped and shown on the review.
* Curing asks for a reasonable explanation only from individual W-8BEN filers with a `US_INDICIA` issue. W-8BEN-E and W-8IMY filers upload documentary evidence alone.

The full list of fixes is in `CHANGELOG.md` in the [package](https://www.npmjs.com/package/@taxbit/react-sdk?activeTab=code).

***

# 6.3

**What's new:** optional e-delivery consent on W-forms; a `taxbit-required` class on required rows; a W-8 warning when the permanent residence address is a P.O. Box or c/o; a failed submission keeps the form and answers on screen so the user can retry.

**What to change**

* **E-delivery consent** — to collect it, pass [`eDeliveryConsent`](https://apidocs.taxbit.com/docs/component-and-hook-reference#taxbitquestionnaire-props). Without it, the form is unchanged and `config.eDeliveryConsent` is `false`.
* **Reading submissions** — expect the optional boolean `hasEDeliveryConsent`. It's absent when the prop is off.
* **Phone numbers** — `accountHolder.phoneNumber` is now E.164 (`+447872615090`, was `447872615090`). If you expect digits only, strip the leading `+`. A country with no number no longer submits a phone.

***

# 6.2

**What's new:** usage telemetry; an invalid VAT number no longer blocks submission; Brazil's alphanumeric CNPJ is accepted.

**What to change**

* **Proxy allowlist** — if you use `proxyDomain` and your proxy forwards only certain paths, add `telemetry/events`. [Usage telemetry](https://apidocs.taxbit.com/docs/integration-guide#usage-telemetry)

***

# 6.1

**What's new:** 22 more jurisdictions in the country and phone pickers.

**What to change:** nothing.

***

# 6.0

**What's new:** WCAG 2.1 AA accessibility; color variables for theming; only the displayed language is downloaded; server-rendering support.

**What to change**

* **Custom CSS** — Next now comes before Back in the HTML, busy buttons use `aria-disabled`, the required asterisk is a separate `.taxbit-required-marker`, and colors are `--taxbit-color-*` variables. If you style the step buttons, disabled buttons or the asterisk, check [Customizing look and feel](https://apidocs.taxbit.com/docs/customizing-look-and-feel#lay-out-the-step-actions).
* **Automated tests** — select fields by visible label and buttons by name, and check `aria-disabled` instead of `disabled`. [Test your integration](https://apidocs.taxbit.com/docs/integration-guide#test-your-integration)
* **Self-hosted files** — if you copy the SDK to a CDN by hand instead of bundling it, copy every `.js` file in `dist/`. [Install the SDK](https://apidocs.taxbit.com/docs/integration-guide#install-the-sdk)
* **Strict submission validation** — if your backend rejects unknown fields, allow the new optional certification booleans.
* **Your page** — set `<html lang>`, update the page `<title>` on each step with `onProgress`'s `stepTitle`, and place the form where an `<h4>` heading fits. [Meet accessibility requirements](https://apidocs.taxbit.com/docs/integration-guide#meet-accessibility-requirements)

***

# 5.0

**What's new:** FATCA collection for entity W-8s; GIIN checks; treaty claims tailored by income type.

**What to change**

* **`treatyClaims`** — now requires [`typesOfIncome`](https://apidocs.taxbit.com/docs/integration-guide#declare-income-types-for-treaty-claims). Without it, the form won't start.
* **`fatca={false}`** — remove it if `typesOfIncome` includes interest or dividends. Those payments require [FATCA](https://apidocs.taxbit.com/docs/integration-guide#enable-fatca-collection), and the form won't start.
* **`useTaxbitStatus`** — now returns only the status. Use [`useTaxbit`](https://apidocs.taxbit.com/docs/component-and-hook-reference#usetaxbit-hook) if you need the saved submission.
* **Reading submissions** — expect `schema_version: "5"`, FATCA fields on W-8s, and a `config` object.

***

# 4.0

**What's new:** [`TaxbitCuringDocumentation`](https://apidocs.taxbit.com/docs/curing-integration-guide) for clearing W-8 issues; `needsCuringDocumentation` and refresh methods on `useTaxbit`.

**What to change**

* **Custom CSS** — three classes were renamed: `taxbit-check-box` → `taxbit-checkbox`, `taxbit-checkBox-label` → `taxbit-checkbox-label`, `taxbit-section-title` → `taxbit-section-header-title`. The Show/Hide button on masked fields moved, and sections and pages gained wrapper elements.

***

Full release notes are in `CHANGELOG.md` in the [package](https://www.npmjs.com/package/@taxbit/react-sdk?activeTab=code).

# Sibling pages

* [How the SDK works](https://apidocs.taxbit.com/docs/how-the-sdk-works.md)
* [Questionnaire integration guide](https://apidocs.taxbit.com/docs/integration-guide.md)
* [Customizing look and feel](https://apidocs.taxbit.com/docs/customizing-look-and-feel.md)
* [Handling token expiration](https://apidocs.taxbit.com/docs/handling-token-expiration.md)
* [Curing integration guide](https://apidocs.taxbit.com/docs/curing-integration-guide.md)
* [Component and hook reference](https://apidocs.taxbit.com/docs/component-and-hook-reference.md)

# Sibling pages

* [How the SDK works](https://apidocs.taxbit.com/docs/how-the-sdk-works.md)
* [Questionnaire integration guide](https://apidocs.taxbit.com/docs/integration-guide.md)
* [Customizing look and feel](https://apidocs.taxbit.com/docs/customizing-look-and-feel.md)
* [Handling token expiration](https://apidocs.taxbit.com/docs/handling-token-expiration.md)
* [Curing integration guide](https://apidocs.taxbit.com/docs/curing-integration-guide.md)
* [Component and hook reference](https://apidocs.taxbit.com/docs/component-and-hook-reference.md)