Skip to content

Commit

Permalink
v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juanhapes committed Jun 5, 2020
1 parent a3dcdab commit 4542e17
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [3.3.0] - 2020-06-05
### Added
- multiple search filters

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.org/janis-commerce/api-list.svg?branch=master)](https://travis-ci.org/janis-commerce/api-list)
[![Coverage Status](https://coveralls.io/repos/github/janis-commerce/api-list/badge.svg?branch=master)](https://coveralls.io/github/janis-commerce/api-list?branch=master)

A package to handle JANIS List APIs
A package to handle Janis List APIs

## Installation

Expand Down Expand Up @@ -156,6 +156,9 @@ module.exports = class MyApiListData extends ApiListData {
```

### get searchFilters()

_Since 3.3.0_

This is used to indicate which fields will be used to mapped multiple filters (OR Type) for the same value, using only `search` as single filter.
If it don't exist or return an empty array and try to use `search` filter will return 400 status code.
Can be combined with other filters.
Expand Down
1 change: 1 addition & 0 deletions lib/data-helpers/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class ListFilter {
}

getParamsFromSearchFilters({ search: searchOriginalValues } = {}) {

if(!searchOriginalValues)
return [];

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@janiscommerce/api-list",
"version": "3.2.1",
"description": "A package to handle JANIS List APIs",
"version": "3.3.0",
"description": "A package to handle Janis List APIs",
"main": "lib/index.js",
"scripts": {
"test": "mocha --exit -R nyan --require tests/bootstrap.js --recursive tests/",
Expand All @@ -25,7 +25,7 @@
"mocha": "^5.2.0",
"mock-require": "^3.0.3",
"nyc": "^13.1.0",
"sinon": "^7.3.2"
"sinon": "^7.5.0"
},
"files": [
"lib/"
Expand Down

0 comments on commit 4542e17

Please sign in to comment.