Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ on:
release:
types: [published]

permissions:
id-token: write
contents: read

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: npm publish --access public
40 changes: 26 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

:microscope: - experimental

## [2.4.0]
- added step to copy response
```Gherkin
When I send 'GET' request to "https://jsonplaceholder.typicode.com/todos/1" and save response as 'response'
And I copy '$response' response as 'copiedResponse'
And I parse '$response' body as json
And I parse '$copiedResponse' body as text
```

Breaking Change
- all entries of `Body` replaced with lowercase `body`

## [2.3.0]
- :rocket: added capability to print curl for debugging

Expand All @@ -28,7 +40,7 @@ where `soap` is function in memory
import { XMLParser } from 'fast-xml-parser';
const xml = new XMLParser();
class Data {
soap = async (response) => {
soap = async response => {
const text = await response.text();
return xml.parse(text);
}
Expand All @@ -49,54 +61,54 @@ class Data {
Breaking change: moved _@qavajs/validation_ to peer dependencies
After update please install latest version of @qavajs/validation package

## 0.18.1
## [0.18.1]
- fixed header assign order

## 0.18.0
## [0.18.0]
- added support of GraphQL along with specific steps:
- _I create GraphQL request {string}_
- _I add {gqlRequestProperty} to GraphQL {string}:_

## 0.17.0
## [0.17.0]
- added experimental support of websockets (API may change in future)

Breaking Change
- migrated to native fetch
- dropped support of node16

## 0.16.0
## [0.16.0]
- removed chai from dependencies
- fixed issue with attaching non string responses

## 0.15.0
## [0.15.0]
- added request/response logging
- fixed issue with optional contentType and filename in form data step

## 0.0.14
## [0.0.14]
- added undefined payload handler
- added _I add form data body_ step
- added match schema validation

## 0.0.13
## [0.0.13]
- added construction api steps

## 0.0.12
## [0.0.12]
- added logs to validation steps
- removed hook

## 0.0.11
## [0.0.11]
- added step for parsing response body with needed type

## 0.0.10
## [0.0.10]
- removed headers parameter type. Moved logic step signature

## 0.0.9
## [0.0.9]
- removed JSON stringify from body send

## 0.0.7
## [0.0.7]
- fixed step definition for sending requests with requestBody as DOC Cucumber String
- added step definition to verify response status message
- added e2e test

## 0.0.6
## [0.0.6]
- :beetle: fixed issue with api service import
Loading