Releases: intuit/saloon
Security updates
Allow array params for definitions
Fixes an issue where array params where being casted to objects
thanks @b-paul
Better GraphQL Error Handling
1.4.2 Even better graphql error handling
Better GraphQL Support
The GraphQL query doesn't belong in the resource, it should be at the definition-level. The resource params
now map to additional GraphQL variables.
GraphQL Support
Added support for GraphQL queries and mutations in personas:
- Add the
transport: 'graphql'
property to your entity definition - Replace the
params
object in the persona with your GraphQL query/mutation
Cypress plugin support
Cypress plugins don't have the same console
methods. This patch adds an undefined
check for all console
methods.
Type casting booleans in expression functions
1.2.3 Update package.json
Enhance email expression function
chance.js' email function isn't very unique, it's common to get something like [email protected]
, which is lame. This release adds an additional param for appending a timestamp:
Before
email('intuit.com'); // [email protected]
After
email('intuit.com', true); // [email protected]
Fixing node support
1.2.1 Bumping to 1.2.1
Retries and browser support
Saloon will now automatically retry after failed requests up to three times.
Added browser support but had to remove Winston, as it doesn't work in browser. Waiting on Winston v3.1.0, which adds browser support--then will reimplement.