All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Drops support for node.js < 18
- Adds
issuance_type
toproject
responses - Adds
disclaimers
toproject
responses
- Adds optional
vintage_start_year
andvintage_end_year
fields toorder
creation - Adds optional
vintage_start_year
andvintage_end_year
fields toorder_line_item
create and update - Adds optional
vintage_start_year
andvintage_end_year
fields toinventory
creation - Adds
vintage_start_year
andvintage_end_year
fields toorder
response - Adds
vintage_start_year
andvintage_end_year
fields toorder_line_item
response - Adds optional
carrier_scac
field topatch.estimates.createRoadShippingEstimate
- Deprecates
createShippingEstimate
in favor ofcreateEcommerceEstimate
- Adds
patch.estimates.createEcommerceEstimate
method
- Adds
patch.estimates.createAirShippingEstimate
method - Adds
patch.estimates.createRailShippingEstimate
method - Adds
patch.estimates.createRoadShippingEstimate
method - Adds
patch.estimates.createSeaShippingEstimate
method
- Renames the
issuedTo
parameter fororders
toissued_to
.
- Adds support for the
issuedTo
parameter onorders
, to add support for creating and placing orders on behalf of another party.
- Adds support for the
acceptLanguage
option onprojects
, to add support for theAccept-Language
header.
- Adds optional
total_price
andcurrency
field toorder
creation - Adds optional
amount
andunit
field toorder
creation - Adds inventory to
project
responses - Adds inventory to
order
responses
- Deprecates
mass_g
andtotal_price_cents_usd
fields for createorder
requests - Deprecates
average_price_per_tonne_cents_usd
andremaining_mass_g
fromproject
responses - Deprecates
price_cents_usd
,patch_fee_cents_usd
, andmass_g
fromorder
responses
- Adds optional
vintage_year
field toorder
creation
- Adds
patch.estimates.createHotelEstimate()
method
- Adds optional
state
field toorder
creation
- Set the order allocatations array as optional.
- No feature changes. Updates the openapi-generator version.
- Removes the
preferences
endpoints (deprecated)
- Adds highlights to project responses
- Adds verifier to project responses
- Added the ability to fetch project technology types via
patch.technologytypes.retrieveTechnologyTypes()
- Adds mechanism, tagline, state, latitude, longitude, and technology_type to project responses
- Adds ability to create Bitcoin and Ethereum estimates using the daily balance held.
- Adds a
created_at
attribute in all order responses
- Body parameters are validated before being sent to the API. This gives developers faster feedback as they develop their applications.
- Adds support for airports, aircracts, cabin class and passenger count in flight estimates
- Adds a custom User-Agent header
- Add support for querying Orders by
metadata
- Added
transaction_value_eth_gwei
as an alternative way to compute transaction level emissions for ethereum
- Add support for Ethereum estimates
- [BREAKING] Changed
order.price_cents_usd
andorder.patch_fee_cents_usd
from string to integer.
- Order responses return a
registry_url
field - Add support for Bitcoin estimates
- Updating dependencies in package-lock.json
- Changed base URL from https://api.usepatch.com to https://api.patch.io
- Adds Sustainable Development Goals (SDGs) field to projects
- Adds filtering to Projects on type, country, minimum_available_mass
- vehicle estimates now support optional
make
,model
andyear
fields.
- Adds support for creating carbon emission estimates for flights, shipping, and vehicles. See the docs for more information.
- Added
querystring
as a peer dependency in the package.json and an explanation in the README for when you'd need to install it manually.
- Fixed a spec that was breaking due Patch core changes.
total_price_cents_usd
field toorders
- allows users to create an order by total price
- order creation requires either
mass_g
ortotal_price_cents_usd
, but not both
patch_fee_cents_usd
field toorders
photos
field toprojects
- Fixing an issue related to the OpenApi code generator.
average_price_per_tonne_cents_usd
field toprojects
remaining_mass_g
field toprojects
standard
field toprojects
- validations on
mass_g
field (has to be greater than 1 and less than 2,000,000,000) toorders
andestimates
creation
- Resolve CVE-2020-7660
project_id
optional field toorder
creationmetadata
optional field toorder
creationproject_id
optional field toestimate
creation- changelog file
- This is the first official release of Patch's Node library.
- Pre-commit styling with Prettier
- Corrects readme usage instructions
- Upgrades old version of superagent
- Removes @babel/cli as a dependency
- Patch's first pre-release of our core javascript client library.