Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe), packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier (CLI app), vendor/zapier-platform, and research/zapier vendor corpus. Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
617
vendor/zapier-platform/changelog/v10-v13.md
vendored
Normal file
617
vendor/zapier-platform/changelog/v10-v13.md
vendored
Normal file
|
|
@ -0,0 +1,617 @@
|
|||
## 13.0.0
|
||||
|
||||
_released `2023-01-25`_
|
||||
|
||||
Version `13.0.0` is a breaking change release that contains several important upgrades and deprecations. Here is a brief breakdown of the most notable changes (see further below for a more detailed list of changes):
|
||||
|
||||
(a) Any integrations that depend on `zapier-platform-core@13.0.0` will now run on Node.js 16.
|
||||
|
||||
(b) We are dropping support for Node.js 12, which has been designated end-of-life since early 2022 ([see the Node.js release schedule](https://github.com/nodejs/release#release-schedule)).
|
||||
|
||||
(c) As part of internal Zapier changes to the way we process trigger data, **stricter type coercion** for trigger parameters is now enabled by default for integrations running on `zapier-platform-core@13.0.0`. This is a good time to double check if your defined trigger parameter types are coherent with what your app expects at runtime.
|
||||
|
||||
(d) Web Builder conversion functionality has been removed. This change is only relevant for [Legacy Web Builder apps](https://platform.zapier.com/legacy/import).
|
||||
|
||||
Those are the breaking changes for this major version `13.0.0` release. We are also including some package version bumps, with the changes consisting mostly of dropping older Node versions. As always with any major release, make sure to thoroughly test your integrations after updating!
|
||||
|
||||
Detailed changelog below (**:exclamation: denotes a breaking change**):
|
||||
|
||||
### cli
|
||||
|
||||
- :exclamation: Remove Web Builder conversion functionality. ([#546](https://github.com/zapier/zapier-platform/pull/546))
|
||||
- :exclamation: Make `--version` required on `zapier convert`. ([#546](https://github.com/zapier/zapier-platform/pull/546))
|
||||
- :hammer: Improved error handling in the convert command. ([#546](https://github.com/zapier/zapier-platform/pull/546))
|
||||
- :scroll: Removed references to converting WB apps in the docs. ([#546](https://github.com/zapier/zapier-platform/pull/546))
|
||||
|
||||
### core
|
||||
|
||||
- :exclamation: Apps can now use Node.js v16.x and Node.js v12.x is no longer supported. ([#603](https://github.com/zapier/zapier-platform/pull/603))
|
||||
|
||||
- :exclamation: Parameters for triggers now have strict type coercion. This means that if a parameter is defined as an integer and a string representation of an integer is provided, Zapier will now convert the value to an integer before it reaches the developer's code.
|
||||
|
||||
### schema
|
||||
|
||||
None!
|
||||
|
||||
### misc
|
||||
|
||||
- :hammer: Dependency updates ([#608](https://github.com/zapier/zapier-platform/pull/608))
|
||||
- Replaced `eslint-plugin-node@11.1.0` with `eslint-plugin-n@15.6.1`
|
||||
- Bump `@oclif/command` from 1.8.0 to 1.8.21
|
||||
- Bump `@oclif/config` from 1.17.0 to 1.18.6
|
||||
- Bump `@oclif/dev-cli` from 13.0.11 to 13.3.0
|
||||
- Bump `@types/node` from 14.14.35 to 18.11.18
|
||||
- Bump `adm-zip` from 0.5.5 to 0.5.10
|
||||
- Bump `archiver` from 5.3.0 to 5.3.1
|
||||
- Bump `aws-sdk` from 2.905.0 to 2.1300.0
|
||||
- Bump `cli-table3` from 0.6.0 to 0.6.3
|
||||
- Bump `content-disposition` from 0.5.3 to 0.5.4
|
||||
- Bump `debug` from 4.3.1 to 4.3.4
|
||||
- Bump `dicer` from 0.3.0 to 0.3.1
|
||||
- Bump `dotenv` from 9.0.2 to 12.0.4
|
||||
- Bump `eslint` from 7.26.0 to 8.32.0
|
||||
- Bump `eslint-config-prettier` from 8.3.0 to 8.6.0
|
||||
- Bump `eslint-config-standard` from 16.0.2 to 17.0.0
|
||||
- Bump `eslint-plugin-import` from 2.22.1 to 2.27.5
|
||||
- Bump `eslint-plugin-mocha` from 8.1.0 to 9.0.0
|
||||
- Bump `eslint-plugin-promise` from 5.1.0 to 6.1.1
|
||||
- Bump `flat` from 5.0.1 to 5.0.2
|
||||
- Bump `gulp-prettier` from 3.0.0 to 4.0.0
|
||||
- Bump `husky` from 6.0.0 to 7.0.4
|
||||
- Bump `inquirer` from 8.0.0 to 8.2.5
|
||||
- Bump `nock` from 13.0.11 to 13.3.0
|
||||
- Bump `prettier` from 2.3.0 to 2.8.3
|
||||
- Bump `semver` from 7.3.5 to 7.3.8
|
||||
- Bump `lint-staged` from 11.0.0 to 11.2.6
|
||||
- Bump `ignore` from 5.1.8 to 5.2.4
|
||||
- Bump `jscodeshift` from 0.12.0 to 0.14.0
|
||||
- Bump `klaw` from 3.0.0 to 4.1.0
|
||||
- Bump `lerna` from 4.0.0 to 6.4.1
|
||||
- Bump `marked` from 4.0.10 to 4.2.12
|
||||
- Bump `marked-terminal` from 4.1.1 to 5.1.1
|
||||
- Bump `mime-types` from 2.1.34 to 2.1.35
|
||||
- Bump `mocha` from 8.4.0 to 10.2.0
|
||||
- Bump `read` from 1.0.7 to 2.0.0
|
||||
- Bump `yeoman-generator` from 5.2.0 to 5.7.0
|
||||
|
||||
## 12.2.1
|
||||
|
||||
_released `2023-01-18`_
|
||||
|
||||
### cli
|
||||
|
||||
- :scroll: Improve docs about input field types ([#585](https://github.com/zapier/zapier-platform/pull/585))
|
||||
- :scroll: Improve docs about OAuth2 fields ([#589](https://github.com/zapier/zapier-platform/pull/589))
|
||||
- :scroll: More strongly recommend use of `z.dehydrateFile` for files ([#590](https://github.com/zapier/zapier-platform/pull/590))
|
||||
- :scroll: Update logging info ([#591](https://github.com/zapier/zapier-platform/pull/591))
|
||||
- :scroll: Fix `zapier init` command ([#594](https://github.com/zapier/zapier-platform/pull/594))
|
||||
- :scroll: Fix typo ([#593](https://github.com/zapier/zapier-platform/pull/593))
|
||||
- :scroll: Fix logo ([#604](https://github.com/zapier/zapier-platform/pull/604))
|
||||
- :hammer: Dependency updates
|
||||
- Bump typescript from 3.8.3 to 4.9.4 to fix a test ([#599](https://github.com/zapier/zapier-platform/pull/599))
|
||||
- Bump decode-uri-component from 0.2.0 to 0.2.2 ([#596](https://github.com/zapier/zapier-platform/pull/596))
|
||||
- Bump json5 from 1.0.1 to 1.0.2 ([#601](https://github.com/zapier/zapier-platform/pull/601))
|
||||
|
||||
### core
|
||||
|
||||
- None!
|
||||
|
||||
### schema
|
||||
|
||||
- :test_tube: Relax schema on `searchUniqueInputToOutput` for upsert to support dynamic fields. **EXPERIMENTAL: Currently an internal feature. Don't use it yet.** ([#602](https://github.com/zapier/zapier-platform/pull/602))
|
||||
|
||||
### misc
|
||||
|
||||
- :hammer: Dependency updates
|
||||
- Bump qs from 6.5.2 to 6.5.3 ([#598](https://github.com/zapier/zapier-platform/pull/598))
|
||||
|
||||
## 12.2.0
|
||||
|
||||
_release `2022-10-27`_
|
||||
|
||||
### cli
|
||||
|
||||
- :nail_care: Now you don't have to install zapier-platform-core to run [most of the commands](https://github.com/zapier/zapier-platform/pull/579#pullrequestreview-1145066736) ([#579](https://github.com/zapier/zapier-platform/pull/579))
|
||||
|
||||
### core
|
||||
|
||||
- :hammer: Dependency updates
|
||||
- Bump secret-scrubber from 1.0.3 to 1.0.7 ([#583](https://github.com/zapier/zapier-platform/pull/583))
|
||||
|
||||
### schema
|
||||
|
||||
- :test_tube: "Upsert" feature: Now a [search-or-create](https://github.com/zapier/zapier-platform/blob/zapier-platform-schema@12.2.0/packages/schema/docs/build/schema.md#searchorcreateschema) can include an `update` action that Zapier should call to update an existing object. **EXPERIMENTAL: This is currently an internal feature and subject to change. Don't use it yet.** ([#584](https://github.com/zapier/zapier-platform/pull/584))
|
||||
- :scroll: Clarify how fields accept `file` types ([#582](https://github.com/zapier/zapier-platform/pull/582))
|
||||
|
||||
## 12.1.0
|
||||
|
||||
_released `2022-09-29`_
|
||||
|
||||
We rolled out a change to "migrate-by-email" on 2022-09-28. Now `zapier migrate --user` in CLI and "migrate-by-email" on UI only migrate Zaps that are **private to the user**. This change affects UI and all the CLI versions, not just 12.1.0. The old behavior was to migrate all the user's team members, which was inconsistent with the docs and often caused confusion. So we consider this change a bug fix instead of a breaking change. If you want the old behavior, use `zapier migrate --account`.
|
||||
|
||||
### cli
|
||||
|
||||
- :nail_care: Add `--account` flag to `migrate` command ([#574](https://github.com/zapier/zapier-platform/pull/574))
|
||||
- :nail_care: Add `--yes` flag to `promote` command to suppress interactive prompts by assuming "yes" to all prompts ([#576](https://github.com/zapier/zapier-platform/pull/576))
|
||||
- :nail_care: Print validation warnings at `build` time ([#573](https://github.com/zapier/zapier-platform/pull/573))
|
||||
- :scroll: Update Zapier logo in docs ([#567](https://github.com/zapier/zapier-platform/pull/567))
|
||||
- :scroll: Provide additional information about the connection label in docs ([#564](https://github.com/zapier/zapier-platform/pull/564))
|
||||
- :hammer: Dependency updates
|
||||
- Bump shell-quote from 1.7.2 to 1.7.3 ([#560](https://github.com/zapier/zapier-platform/pull/560))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix another hanging issue by aborting logger connection early ([#562](https://github.com/zapier/zapier-platform/pull/562))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
## 12.0.3
|
||||
|
||||
_released `2022-05-02`_
|
||||
|
||||
### cli
|
||||
|
||||
<!-- this is included in this release, but isn't quite ready on the server side. We'll "release" this in a semver.minor sometime soon -->
|
||||
<!-- - :nails: add support for limited collaborators to the `team:get`, `team:add`, and `team:remove` commands. More info about this new role will be coming soon ([#538](https://github.com/zapier/zapier-platform/pull/538), [#541](https://github.com/zapier/zapier-platform/pull/541), [#539](https://github.com/zapier/zapier-platform/pull/539), [#540](https://github.com/zapier/zapier-platform/pull/540)) -->
|
||||
|
||||
- None!
|
||||
|
||||
### core
|
||||
|
||||
- :bug: greatly improve secret-scrubbing speed in logger ([#542](https://github.com/zapier/zapier-platform/pull/542))
|
||||
- :bug: ensure string content is parsed pre-logging in case it contains secrets ([#525](https://github.com/zapier/zapier-platform/pull/525))
|
||||
- :bug: censor novel secrets in querystring ([#526](https://github.com/zapier/zapier-platform/pull/526))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
## 12.0.2
|
||||
|
||||
_released `2022-03-30`_
|
||||
|
||||
### cli
|
||||
|
||||
- None
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix regression where consecutive successful curly replacements wouldn't happen correctly ([#522](https://github.com/zapier/zapier-platform/pull/522))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
## 12.0.1
|
||||
|
||||
_released `2022-03-24`_
|
||||
|
||||
### cli
|
||||
|
||||
- None
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix regression where the global `skipThrowForStatus` incorrectly applied to shorthand requests. It's only intended to modify the behavior of requests made with `z.request()`. The docs and changelog have been updated accordingly ([#520](https://github.com/zapier/zapier-platform/pull/520))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
## 12.0.0
|
||||
|
||||
_released `2022-03-23`_
|
||||
|
||||
We're breaking slightly from our pattern of a single yearly major release. The `12.0.0` release contains some backwards-incompatible changes to how middleware and auth refreshes work. For the most part, you'll be able to upgrade to this version safely, but as always, it's worth re-running unit tests (especially those related to authentication).
|
||||
|
||||
In the coming months, we'll follow up with a `13.0.0` release that will bump the Node.js runtime and dependencies (ending support for Node.js 12 as it reaches End of Life). We're hoping that by separating these releases, the upgrade process will be easier for developers (only worrying about the public API or the runtime, but not both).
|
||||
|
||||
### cli
|
||||
|
||||
- None!
|
||||
|
||||
### core
|
||||
|
||||
- :exclamation: calling `response.throwForStatus()` now **always** throws an error if the response status code is `>= 400`. Previously it was a no-op when `response.skipThrowForStatus` was `true`. Now, that flag only controls whether Zapier's built-in middleware calls `throwForStatus()`. This only affects you if you set `skipThrowForStatus` and always call `.throwForStatus()`, expecting it not to error. ([#511](https://github.com/zapier/zapier-platform/pull/511))
|
||||
- :exclamation: re-add the built-in auto-refresh middleware for `oauth2` and `session` auths. This runs _before_ your declared `afterResponse`, so you no longer have to account for stale credentials in your middleware (unless you want to). See [the README](https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#using-http-middleware) for more info. ([#512](https://github.com/zapier/zapier-platform/pull/512), [#517](https://github.com/zapier/zapier-platform/pull/517))
|
||||
|
||||
### schema
|
||||
|
||||
- :nail_care: add app-wide skipThrowForStatus flag. This is helpful for backwards compatibility when migrating from `9.x` to `12.x`, but probably won't be relevant for most developers. Note that this flag **only affects requests made with `z.request()`** ([#511](https://github.com/zapier/zapier-platform/pull/511))
|
||||
|
||||
## 11.3.3
|
||||
|
||||
_released `2022-03-21`_
|
||||
|
||||
### cli
|
||||
|
||||
- :scroll: Update [README.md](README.md) and add [CONTRIBUTING.md](CONTRIBUTING.md) ([#506](https://github.com/zapier/zapier-platform/pull/506))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix another hanging issue where an action could be invoked multiple times ([#513](https://github.com/zapier/zapier-platform/pull/513))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
## 11.3.2
|
||||
|
||||
_released `2022-03-01`_
|
||||
|
||||
### cli
|
||||
|
||||
- None!
|
||||
|
||||
### core
|
||||
|
||||
- :nail_care: `z.request()` now accepts `skipEncodingChars` option to skip percent-encoding specific characters ([#497](https://github.com/zapier/zapier-platform/pull/497))
|
||||
|
||||
### schema
|
||||
|
||||
- :nail_care: Add `skipEncodingChars` to `RequestSchema` ([#497](https://github.com/zapier/zapier-platform/pull/497))
|
||||
|
||||
### misc
|
||||
|
||||
- :hammer: Improve build script ([#496](https://github.com/zapier/zapier-platform/pull/496))
|
||||
|
||||
## 11.3.1
|
||||
|
||||
_released `2022-02-23`_
|
||||
|
||||
### cli
|
||||
|
||||
- :hammer: Bump node-fetch to 2.6.7 ([#493](https://github.com/zapier/zapier-platform/pull/493))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix hanging issue where an action could be invoked multiple times ([#490](https://github.com/zapier/zapier-platform/pull/490))
|
||||
- :hammer: Bump node-fetch to 2.6.7 ([#493](https://github.com/zapier/zapier-platform/pull/493))
|
||||
|
||||
### schema
|
||||
|
||||
- :hammer: Bump node-fetch to 2.6.7 ([#493](https://github.com/zapier/zapier-platform/pull/493))
|
||||
|
||||
## 11.3.0
|
||||
|
||||
_released `2022-02-14`_
|
||||
|
||||
### cli
|
||||
|
||||
- :tada: New command: `jobs`. Now you can use `zapier jobs` to check `promote` and `migrate` progress! ([#484](https://github.com/zapier/zapier-platform/pull/484))
|
||||
- :tada: Add support for pnpm package manager in `test` command ([#476](https://github.com/zapier/zapier-platform/pull/476))
|
||||
- :bug: Fix byte missing issue with `files` example ([#465](https://github.com/zapier/zapier-platform/pull/465))
|
||||
- :nail_care: Update `promote` and `migrate` to use new endpoint ([#480](https://github.com/zapier/zapier-platform/pull/480))
|
||||
- :scroll: Clarify on OAuth2 refresh details ([#482](https://github.com/zapier/zapier-platform/pull/482))
|
||||
- :hammer: Dependency updates
|
||||
- Bump shelljs from 0.8.4 to 0.8.5 ([#473](https://github.com/zapier/zapier-platform/pull/473))
|
||||
- Bump marked from 2.0.3 to 4.0.10 ([#471](https://github.com/zapier/zapier-platform/pull/471))
|
||||
- Bump cached-path-relative from 1.0.2 to 1.1.0 ([#477](https://github.com/zapier/zapier-platform/pull/477))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix `value.replace is not a function` error when resolving missing curlies ([#468](https://github.com/zapier/zapier-platform/pull/468))
|
||||
- :bug: Handle case where `legacy.scriptingSource` is an empty string ([#475](https://github.com/zapier/zapier-platform/pull/475))
|
||||
- :nail_care: Improve `z.console.log` and HTTP logging performance ([#469](https://github.com/zapier/zapier-platform/pull/469))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
### misc
|
||||
|
||||
- :hammer: Bump trim-off-newlines from 1.0.1 to 1.0.3 ([#474](https://github.com/zapier/zapier-platform/pull/474))
|
||||
|
||||
## 11.2.0
|
||||
|
||||
_released `2021-12-03`_
|
||||
|
||||
### cli
|
||||
|
||||
- :scroll: Fix typos in docs ([#431](https://github.com/zapier/zapier-platform/pull/431))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Fix backpressure issue when piping request bodies ([#461](https://github.com/zapier/zapier-platform/pull/461))
|
||||
- Rewrite `z.stashFile()` with various improvements and bugfixes ([#454](https://github.com/zapier/zapier-platform/pull/454))
|
||||
- :nail_care: `knownLength` is no longer required for any kinds of streams, including `z.request({ url, raw: true })` and `fs.createReadStream()`
|
||||
- :nail_care: Detect file types more smartly
|
||||
- :nail_care: Generate filenames more smartly
|
||||
- :nail_care: Improve performance by making concurrent requests
|
||||
- :bug: Fix `MalformedPOSTRequest` error when the reponse is gzipped and has a smaller `Content-Length`
|
||||
- :hammer: Better test coverage
|
||||
- See [#454](https://github.com/zapier/zapier-platform/pull/454) for more details
|
||||
- :nail_care: Allow apps to pass along throttled errors ([#408](https://github.com/zapier/zapier-platform/pull/408))
|
||||
|
||||
### schema
|
||||
|
||||
- :tada: Add support for hook-to-poll triggers ([#432](https://github.com/zapier/zapier-platform/pull/432))
|
||||
- :nail_care: Allow spaces and square brackets in [`RefResourceSchema`](https://github.com/zapier/zapier-platform/blob/zapier-platform-schema@11.2.0/packages/schema/docs/build/schema.md) ([#455](https://github.com/zapier/zapier-platform/pull/455))
|
||||
- :nail_care: Add `code` type for `inputField`s ([#439](https://github.com/zapier/zapier-platform/pull/439))
|
||||
|
||||
### misc
|
||||
|
||||
- :hammer: Bump node-fetch to 2.6.6 ([#459](https://github.com/zapier/zapier-platform/pull/459))
|
||||
- :hammer: Move CI from Travis to GitHub Actions ([#454](https://github.com/zapier/zapier-platform/pull/454))
|
||||
|
||||
## 11.1.1
|
||||
|
||||
_released `2021-09-24`_
|
||||
|
||||
### cli
|
||||
|
||||
- none!
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Improve performance of large requests ([#428](https://github.com/zapier/zapier-platform/pull/428)),
|
||||
- :bug: Handle nullish values in auth data ([#427](https://github.com/zapier/zapier-platform/pull/427)),
|
||||
|
||||
### schema
|
||||
|
||||
- none!
|
||||
|
||||
## 11.1.0
|
||||
|
||||
_released `2021-08-05`_
|
||||
|
||||
### cli
|
||||
|
||||
- :bug: `convert` command should always generate async functions ([#397](https://github.com/zapier/zapier-platform/pull/397))
|
||||
- :bug: `init` command - fix typos in `session-auth` template ([#388](https://github.com/zapier/zapier-platform/pull/388))
|
||||
- :scroll: Add info about header format in `bundle.rawRequest` ([#401](https://github.com/zapier/zapier-platform/pull/401))
|
||||
- :scroll: An `afterResponse` middleware should return a response ([#383](https://github.com/zapier/zapier-platform/pull/383))
|
||||
|
||||
### core
|
||||
|
||||
- :tada: Allow using `await` in inline function source ([#396](https://github.com/zapier/zapier-platform/pull/396))
|
||||
- :bug: Make sure all requests are logged ([#387](https://github.com/zapier/zapier-platform/pull/387))
|
||||
- :nail_care: Update app tester to support hook with `canPaginate` for `performList` ([#402](https://github.com/zapier/zapier-platform/pull/402))
|
||||
- :nail_care: Add `bundle.meta.isBulkRead` TypeScript type ([#400](https://github.com/zapier/zapier-platform/pull/400))
|
||||
- :nail_care: Allow app tester to run ad-hoc functions ([#385](https://github.com/zapier/zapier-platform/pull/385))
|
||||
- :hammer: Incorporate secret-scrubber package ([#393](https://github.com/zapier/zapier-platform/pull/393))
|
||||
|
||||
### schema
|
||||
|
||||
- :nail_care: Add `canPaginate` to `BasicHookOperationSchema` ([#399](https://github.com/zapier/zapier-platform/pull/399))
|
||||
|
||||
### misc
|
||||
|
||||
- Dependency updates:
|
||||
- :hammer: Bump set-getter from 0.1.0 to 0.1.1 ([#389](https://github.com/zapier/zapier-platform/pull/389))
|
||||
- :hammer: Bump glob-parent from 5.1.0 to 5.1.2 ([#386](https://github.com/zapier/zapier-platform/pull/386))
|
||||
- :hammer: Bump tar from 4.4.13 to 4.4.15 ([#406](https://github.com/zapier/zapier-platform/pull/406))
|
||||
|
||||
## 11.0.1
|
||||
|
||||
_released `2021-05-28`_
|
||||
|
||||
### cli
|
||||
|
||||
- :bug: Handle missing versions better in env command ([#374](https://github.com/zapier/zapier-platform/pull/374))
|
||||
- :scroll: Fix incorrect snippet ([#378](https://github.com/zapier/zapier-platform/pull/378))
|
||||
- :scroll: Update historical releases section to include v10 ([#377](https://github.com/zapier/zapier-platform/pull/377))
|
||||
|
||||
### core
|
||||
|
||||
- None!
|
||||
|
||||
### schema
|
||||
|
||||
- :bug: skip checking keys on fields without the `key` property (fixes [zapier-platform#375](https://github.com/zapier/zapier-platform/pull/375) via [#376](https://github.com/zapier/zapier-platform/pull/376))
|
||||
|
||||
## 11.0.0
|
||||
|
||||
_released `2021-05-12`_
|
||||
|
||||
Another spring, another `SEMVER-MAJOR` release of the Zapier CLI tools. Now that Node.js 10 has reached its scheduled end of life, version 12 is the minimum supported version for each of these packages locally.
|
||||
|
||||
Additionally, any integrations that depend on `zapier-platform-core@11.0.0` will run on Node.js 14. Node versions are typically fairly compatible, but it's worth double-checking your unit tests during this upgrade (as always).
|
||||
|
||||
Read on for a detailed set of release notes, paying special attention to any :exclamation: BREAKING CHANGEs.
|
||||
|
||||
### cli
|
||||
|
||||
- :exclamation: Remove the `-g | --grep` and `-t | --timeout` flags from `zapier test` ([#348](https://github.com/zapier/zapier-platform/pull/348)). You can now pass flags directly to your `test` script by adding `--` before them. To migrate existing scripts:
|
||||
- Add `--` before any existing `grep` and `timeout` flags
|
||||
- `zapier test -g 'cool' --timeout 5000` :arrow_right: `zapier test -- -g 'cool' --timeout 5000`
|
||||
|
||||
### core
|
||||
|
||||
- :exclamation: Run apps using Node.js v14.x ([#350](https://github.com/zapier/zapier-platform/pull/350))
|
||||
- :bug: Checks should properly handle possibly null values ([#371](https://github.com/zapier/zapier-platform/pull/371))
|
||||
- :bug: StashFile no longer throws 'source.on' error when a request that uses await is passed in ([#361](https://github.com/zapier/zapier-platform/pull/361))
|
||||
- :bug: Handle stashing files in resource create methods ([#349](https://github.com/zapier/zapier-platform/pull/349))
|
||||
- :hammer: Typescript target es2019 for node 12 ([#358](https://github.com/zapier/zapier-platform/pull/358))
|
||||
- :hammer: Typescript type of `inputData` for hydration function should be of type T as well ([#357](https://github.com/zapier/zapier-platform/pull/357))
|
||||
- :scroll: Fix typo in authentication.js ([#356](https://github.com/zapier/zapier-platform/pull/356))
|
||||
|
||||
### schema
|
||||
|
||||
- :exclamation: add validation to ensure globally unique input fields ([#347](https://github.com/zapier/zapier-platform/pull/347)).
|
||||
- Your integration's input fields wouldn't have worked correctly if they didn't comply with this check, but now we're more explicit about it
|
||||
- No action should be needed for migration
|
||||
|
||||
### misc
|
||||
|
||||
- Many under-the-hood dependency updates:
|
||||
- :hammer: update deps ([#351](https://github.com/zapier/zapier-platform/pull/351), [#372](https://github.com/zapier/zapier-platform/pull/372))
|
||||
- :hammer: Bump hosted-git-info from 2.8.5 to 2.8.9 ([#370](https://github.com/zapier/zapier-platform/pull/370))
|
||||
- :hammer: bump handlebars from 4.7.6 to 4.7.7 ([#369](https://github.com/zapier/zapier-platform/pull/369))
|
||||
- :hammer: Bump elliptic from 6.5.3 to 6.5.4 (PDE-2085) ([#343](https://github.com/zapier/zapier-platform/pull/343))
|
||||
- :hammer: Update repo urls ([#339](https://github.com/zapier/zapier-platform/pull/339))
|
||||
|
||||
## 10.2.0
|
||||
|
||||
_released `2021-02-23`_
|
||||
|
||||
### cli
|
||||
|
||||
- :scroll: add architecture files ([#324](https://github.com/zapier/zapier-platform/pull/324))
|
||||
- :scroll: fix typos in README ([#328](https://github.com/zapier/zapier-platform/pull/328))
|
||||
- :scroll: Make file stashing snippets copy-paste-able ([#326](https://github.com/zapier/zapier-platform/pull/326))
|
||||
- :scroll: Fix broken README schema package link ([#325](https://github.com/zapier/zapier-platform/pull/325))
|
||||
- :bug: ensure test files can be run out of the box with jest ([#327](https://github.com/zapier/zapier-platform/pull/327))
|
||||
|
||||
### core
|
||||
|
||||
None!
|
||||
|
||||
### schema
|
||||
|
||||
- :nail_care: Add ability to specify "code" param to OAuth2 schema ([#333](https://github.com/zapier/zapier-platform/pull/333))
|
||||
|
||||
## 10.1.3
|
||||
|
||||
_released `2021-02-09`_
|
||||
|
||||
### cli
|
||||
|
||||
- :bug: Fix phrasing in `link` command ([#316](https://github.com/zapier/zapier-platform/pull/316))
|
||||
- :nail_care: Add warning if user counts are still being calculated ([#308](https://github.com/zapier/zapier-platform/pull/308))
|
||||
- :scroll: Mention `subscribeData` is available in `perform` ([#300](https://github.com/zapier/zapier-platform/pull/300))
|
||||
- :scroll: Add debugging info ([#318](https://github.com/zapier/zapier-platform/pull/318))
|
||||
- :scroll: Update readiness of UI → CLI conversion tool ([#307](https://github.com/zapier/zapier-platform/pull/307), [#311](https://github.com/zapier/zapier-platform/pull/311))
|
||||
- :scroll: Add details about when dynamic fields are loaded ([#303](https://github.com/zapier/zapier-platform/pull/303))
|
||||
- :scroll: Change 90-day limit for callbacks to 30-day ([#293](https://github.com/zapier/zapier-platform/pull/293))
|
||||
- :scroll: Fix typos in examples ([#296](https://github.com/zapier/zapier-platform/pull/296), [#297](https://github.com/zapier/zapier-platform/pull/297))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: `ResponseError` no longer fails when request is `raw` ([#320](https://github.com/zapier/zapier-platform/pull/320))
|
||||
- :bug: Redirecting from `https` to `http` breaks when disabling SSL certificate checks ([#313](https://github.com/zapier/zapier-platform/pull/313))
|
||||
- :hammer: Log `trigger_subscription_id` field ([#317](https://github.com/zapier/zapier-platform/pull/317))
|
||||
|
||||
### schema
|
||||
|
||||
- :scroll: Add reasons to anti-examples, update README, rearrange schema layout ([#287](https://github.com/zapier/zapier-platform/pull/287))
|
||||
|
||||
## 10.1.2
|
||||
|
||||
_released `2020-10-30`_
|
||||
|
||||
This release mostly has internal features, but also ships a lot of documentation updates and a few bumped dependencies.
|
||||
|
||||
### cli
|
||||
|
||||
- :nail_care: Improve logging for diagnostic info ([#282](https://github.com/zapier/zapier-platform/pull/282))
|
||||
- :scroll: Document the `$HOIST$` directive ([#273](https://github.com/zapier/zapier-platform/pull/273))
|
||||
- :scroll: Update outdated command references ([#274](https://github.com/zapier/zapier-platform/pull/274))
|
||||
- :scroll: Add docs for `callback_url` ([#278](https://github.com/zapier/zapier-platform/pull/278))
|
||||
- :hammer: Add new example app, `callbacks` ([#281](https://github.com/zapier/zapier-platform/pull/281))
|
||||
- :scroll: Replace Slack link with one for Community ([#286](https://github.com/zapier/zapier-platform/pull/286))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Add `callback_url` during testing ([#280](https://github.com/zapier/zapier-platform/pull/280))
|
||||
- :nail_care: Relax type info for `response.json` to better match the actual TS definition ([#261](https://github.com/zapier/zapier-platform/pull/261))
|
||||
|
||||
### schema
|
||||
|
||||
None!
|
||||
|
||||
## 10.1.1
|
||||
|
||||
_released `2020-09-02`_
|
||||
|
||||
### cli
|
||||
|
||||
- :bug: `_zapier-build` should be optional ([#265](https://github.com/zapier/zapier-platform/pull/265))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Don't censor safe URLs in logs ([#266](https://github.com/zapier/zapier-platform/pull/266))
|
||||
|
||||
### schema
|
||||
|
||||
None!
|
||||
|
||||
## 10.1.0
|
||||
|
||||
_released `2020-08-30`_
|
||||
|
||||
### cli
|
||||
|
||||
- :nail_care: `build` command now accepts a custom build hook named `_zapier-build`. See [Using Transpilers](https://github.com/zapier/zapier-platform/blob/35072e38ee14f5dfaa2e4c6791e270f0257a2a2d/packages/cli/README.md#using-transpilers) for details. ([#262](https://github.com/zapier/zapier-platform/pull/262))
|
||||
|
||||
### core
|
||||
|
||||
- :scroll: Remove legacy reference to `bundle.meta.zap` ([#255](https://github.com/zapier/zapier-platform/pull/255))
|
||||
- :hammer: Increase max payload size for hydration ([#257](https://github.com/zapier/zapier-platform/pull/257))
|
||||
|
||||
### schema
|
||||
|
||||
- None!
|
||||
|
||||
## 10.0.1
|
||||
|
||||
_released `2020-07-20`_
|
||||
|
||||
### cli
|
||||
|
||||
- :bug: `convert` command now doesn't crash over an auth field name with special chars ([#241](https://github.com/zapier/zapier-platform/pull/241))
|
||||
- :bug: Fix missing `deasync` Node.js 10 binding ([#244](https://github.com/zapier/zapier-platform/pull/244))
|
||||
- :bug: Fix broken `oauth1-trello` project template ([#246](https://github.com/zapier/zapier-platform/pull/246))
|
||||
- :nail_care: Update `oauth2` and `session-auth` project templates to reflect v10's recommended way to handle auth refresh ([#246](https://github.com/zapier/zapier-platform/pull/246))
|
||||
- :scroll: Fix missing `init` command in CLI reference ([#243](https://github.com/zapier/zapier-platform/pull/243))
|
||||
- :hammer: Bump Lodash from 4.17.15 to 4.17.19 ([#248](https://github.com/zapier/zapier-platform/pull/248))
|
||||
|
||||
### core
|
||||
|
||||
- :bug: Allow resource list methods to use cursors ([#247](https://github.com/zapier/zapier-platform/pull/247))
|
||||
- :nail_care: Improve types for `z.dehydrateFile` and `z.stashFile` ([#240](https://github.com/zapier/zapier-platform/pull/240))
|
||||
- :scroll: Clarify v10 breaking change on auth refresh ([#246](https://github.com/zapier/zapier-platform/pull/246))
|
||||
- :hammer: Bump Lodash from 4.17.15 to 4.17.19 ([#248](https://github.com/zapier/zapier-platform/pull/248))
|
||||
|
||||
### schema
|
||||
|
||||
- :hammer: Bump Lodash from 4.17.15 to 4.17.19 ([#248](https://github.com/zapier/zapier-platform/pull/248))
|
||||
|
||||
## 10.0.0
|
||||
|
||||
_released `2020-05-20`_
|
||||
|
||||
Another major release! We have some great improvements in this version but also have breaking changes. Please review the following to see if you need to change anything to upgrade `zapier-platform-core` to v10.
|
||||
|
||||
(a) Zapier integrations that depend on the new Core v10 **will run using Node.js 12**. To upgrade, first you need install Node 12 if you haven't. You can install Node 12 using `nvm`. Second, update your `package.json` to depend on `zapier-platform-core@10.0.0`. Third, run `npm install`. Finally, you may want to run unit tests on Node 12 before you push your code to production for further testing.
|
||||
|
||||
(b) **`z.request` now always calls `response.throwForStatus`** via a middleware by default. You no longer need to call `response.throwForStatus` after `z.request`, the built-in middleware will do that for you. See [Error Response Handling](https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#error-response-handling) for details.
|
||||
|
||||
(c) **`response.throwForStatus` now only throws an error if the status code is between 400 and 600 (inclusive)**. Before v10, it threw for status >= 300. So if your code rely on that old behavior, you should change your code to check `response.status` explicitly instead of using `response.throwForStatus`.
|
||||
|
||||
(d) **Session and OAuth2 refresh now happens AFTER your `afterResponse`**. Before v10, the refresh happens before your `afterResponse`. This is a breaking change if your `afterResponse` captures 401 response status. See [v10 Breaking Change: Auth Refresh](https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#v10-breaking-change-auth-refresh) for details.
|
||||
|
||||
(e) We now **parse JSON and form-encoded response body by default**. So no more `z.JSON.parse(response.content)`! The parsed object is available as `response.data` (`response.json` will be still available for JSON body but less preferable). Before v10, we only parsed JSON for [manual requests](https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#manual-http-requests); parsed JSON and form-encoded body for [shorthand requests](https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#shorthand-http-requests). This change could be breaking if you have an `afterResponse` that modifies `response.content`, with the expectation for shorthand requests to pick up on that. In which case, you'll have to replace `response.content = JSON.stringify(parsedOrTransformed)` with `response.data = parsedOrTransformed`.
|
||||
|
||||
(f) We rewrote the CLI `zapier init` command. Now the project templates are more up-to-date, with better coding practices. However, **we've removed the following templates**: `babel`, `create`, `github`, `middleware`, `oauth1-tumblr`, `oauth1-twitter`, `onedrive`, `resource`, `rest-hooks`, `trigger`. For trigger/create/search, use `zapier scaffold` command instead. For `babel`, look at `typescript` template and replace the build step with the similar code from https://babeljs.io/setup#installation. For `oauth1`, we now only keep `oauth1-trello` for simplicity. If you ever need to look at the old templates, they're always available in the [example-apps](https://github.com/zapier/zapier-platform/tree/60eaabd04571df30a3c33e4ab5ec4fe0312ad701/example-apps) directory in the repo.
|
||||
|
||||
(g) `zapier init` no longer uses the `minimal` template by default. If you don't specify `--template`, **`zapier init` will prompt you interactively**. So if you're using `zapier init` (without any arguments) in CI and expect it to use `minimal` by default, you should replace the command with `zapier init -t minimal`.
|
||||
|
||||
See below for a detailed changelog (**:exclamation: denotes a breaking change**):
|
||||
|
||||
### cli
|
||||
|
||||
- :exclamation: We've improved and removed some templates from `init` command, see (e) above for a list of templates that were removed ([#206](https://github.com/zapier/zapier-platform/pull/206))
|
||||
- :nail_care: `build` command no longer needs login ([#216](https://github.com/zapier/zapier-platform/pull/216))
|
||||
- :nail_care: `promote` command becomes more receptive about the changelog format ([#209](https://github.com/zapier/zapier-platform/pull/209))
|
||||
- :nail_care: Regenerate [example apps](https://github.com/zapier/zapier-platform/tree/60eaabd04571df30a3c33e4ab5ec4fe0312ad701/example-apps) using the new `init` command ([#229](https://github.com/zapier/zapier-platform/pull/229))
|
||||
- :scroll: Update and clean up docs ([#222](https://github.com/zapier/zapier-platform/pull/222))
|
||||
- :scroll: Add some clarity around what we're sending for analytics ([#215](https://github.com/zapier/zapier-platform/pull/215))
|
||||
- :hammer: Mass dependency update and linting ([#218](https://github.com/zapier/zapier-platform/pull/218), [#220](https://github.com/zapier/zapier-platform/pull/220))
|
||||
|
||||
### core
|
||||
|
||||
- :exclamation: Integrations now run on Node.js 12!
|
||||
- :exclamation: `z.request` now always calls `response.throwForStatus` via a middleware by default ([#210](https://github.com/zapier/zapier-platform/pull/210))
|
||||
- :exclamation: Session and OAuth2 refresh now happens AFTER your `afterResponse` ([#210](https://github.com/zapier/zapier-platform/pull/210))
|
||||
- :exclamation: `response.throwForStatus` now only throws for 400 ≤ status ≤ 600 ([#192](https://github.com/zapier/zapier-platform/pull/192))
|
||||
- :exclamation: Introduce `response.data` with support for form-urlencoded and custom parsing ([#211](https://github.com/zapier/zapier-platform/pull/211))
|
||||
- :bug: Don't log request body when it's streaming data ([#214](https://github.com/zapier/zapier-platform/pull/214))
|
||||
- :bug: `z.request`'s `allowGetBody` option shouldn't send empty body ([#227](https://github.com/zapier/zapier-platform/pull/227))
|
||||
- :hammer: Mass dependency update and linting ([#218](https://github.com/zapier/zapier-platform/pull/218), [#220](https://github.com/zapier/zapier-platform/pull/220))
|
||||
|
||||
### schema
|
||||
|
||||
- :hammer: Mass dependency update and linting ([#218](https://github.com/zapier/zapier-platform/pull/218), [#220](https://github.com/zapier/zapier-platform/pull/220))
|
||||
Loading…
Add table
Add a link
Reference in a new issue