Skip to content

Commit

Permalink
JS SDK update to support io/v2 features (#35)
Browse files Browse the repository at this point in the history
* add lint, prettier and husky and run them for all files

* add ignrore files

* move eslintConfig to package.json

* resolve comment

* delete dist

* move integration tests from e2e to integration folder and unit outdated tests to this folder - #2 (#36)

* add lint-staged

* move linter to dev-dependency

* Core-940 - JS SDK update to support io/v2 features - #3 (#37)

* add functionality

* add tests

* fix integration test

* change docs

* fix version in readme

* fix comments

* fix comments

* fix comments

* resolve comments

* resolve comment

* fix comments

* fix comments

* add an example for access token scope
  • Loading branch information
OlgaGuretskaya authored Dec 18, 2020
1 parent 0b2cf24 commit e3d6a57
Show file tree
Hide file tree
Showing 167 changed files with 5,585 additions and 2,288 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
command: 'npm run build'
- run:
name: 'E2E tests'
command: 'npm test'
command: 'npm test'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ bower_components
dist
report
.idea
*.DS_Store
*.DS_Store
.vscode
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ bower_components
examples
report
.idea
*.html
*.html
.vscode
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform/*
reports/*
test-results/*
mochawesome-report/*
.nyc_output
.vscode
dist
54 changes: 29 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v6.0.0 (08-12-2020)

## Features

- **Setup**: Add `apiVersion:2` as default and add URL configuration based on apiVersion and region

- **Scopes**: Add `Operator` and `AccessToken` scopes for `apiVersion:2`

- **Access Policies**: Add `accessPolicies()` for access policies API to Operator and AccessToken scopes for `apiVersion:2`

- **Operator Accesses**: Add `operatorAccess()` for operator accesses API to Operator and AccessToken scopes for `apiVersion:2`

- **Me**: Add `me()` for me API to Operator and AccessToken scopes for `apiVersion:2`

- **Access Tokens**: Add `accessToken()` for access tokens API to Operator and AccessToken scopes for `apiVersion:2`

# v5.9.0 (1-7-2020)

## Features
Expand All @@ -12,19 +28,16 @@

- **ActionApp**: All `getAnonymousUser()` to allow usage of the managed anonymous Application User.


## Fixes

- **ActionApp**: Fix bug preventing use of built-in action types.


# v5.7.1 (14-1-2020)

## Features

- **Pagination**: Add `streamPages()` to all resources to allow asynchronously streaming pages of resources.


# v5.6.0 (27-9-2019)

## Features
Expand All @@ -33,32 +46,27 @@

- **Shipment Notices**: Add `shipmentNotice()` and `shipmentNotice().container()` for shipment notices API to Operator scope.


## Fixes

- **Scopes**: Prevent scopes from reading access twice when using `init()`.


# v5.5.0 (29-8-2019)

## Features

- **ADI Orders**: Added `adiOrder()` resources to Operator scope for creating and reading ADI Orders. Also includes `event()` for creating ADI Order events.


# v5.4.0 (7-8-2019)

## Changes

- **redirections**:`redirection()` resource now allows nominating the `shortDomain` in that call, and no longer requires some templating (`{shortId}`/`{productId}`) as part of the URL submitted.
- **redirections**: `settings` now includes `defaultShortDomain` to allow setting the default short domain used for `redirection()` requests.


## Fixes

- **api**: Better handle parts of the API that return non-standard empty response bodies.


# v5.3.0 (29-7-2019)

## Features
Expand All @@ -67,25 +75,22 @@
- **files**: Add `upload()` method for files to upload file data.
- **upsert**: `upsert()` can now be performed by `name` in addition to an identifier object where a resource supports filtering by `name`.


## Fixes

- **param setters**: Add missing `setIds()` param setter.
- **permissions**: Support referring to permission by name, such as `permission('global_read')`


# v5.1.0 (30-5-2019)

## Features

- **plugins**: Added the `use()` method in order to support plugins. See `src/use.js` for API details.


# v5.0.0 (23-5-2019)

## Breaking Changes

> If you are updating from a previous version, please see the
> If you are updating from a previous version, please see the
> [Migration Guide](https://developers.evrythng.com/docs/evrythngjs-v500).
- **evrythng-extended.js**: `evrythng-extended.js` is no longer required as a separate dependency.
Expand All @@ -107,7 +112,6 @@
- **Parameter setters**: Instead of creating a `params` object, chainable setters such as `setPerPage()` are available on most resources to easily build complex requests.
- **Resource methods**: The `rescope()`, `upsert()`, and `find()` methods have been added to most resources to allow easier _changing of project/user scopes_, _updating by key else creating_, and _finding by identifiers_ as common operations.


# v4.7.2 (11-15-2017)

## Bug fixes
Expand Down Expand Up @@ -172,8 +176,8 @@

## Features

- **Reactor scripts**: Add nested reactor script status
resource `app.reactor.script().status()`.
- **Reactor scripts**: Add nested reactor script status
resource `app.reactor.script().status()`.

# v4.0.1 (11-10-2016)

Expand All @@ -186,17 +190,17 @@ resource `app.reactor.script().status()`.

## Breaking changes

- **Reactor logs**: Move `app.reactorLog()` resource within the `app.reactor.log()` namespace
(only available in **evrythng-extended.js**).
- **Reactor logs**: Move `app.reactorLog()` resource within the `app.reactor.log()` namespace
(only available in **evrythng-extended.js**).
- **Search**: Global `.search()` has been removed to match API. Use filters instead.
- **Multimedia**: Multimedia resource has been removed to match API.

## Features

- **Reactor schedules**: Add Reactor schedules resource in the `app.reactor.schedule()` namespace
(only available in **evrythng-extended.js**).
- **Reactor scripts**: Add Reactor scripts resource in the `app.reactor.script()` namespace
(only available in **evrythng-extended.js**).
- **Reactor schedules**: Add Reactor schedules resource in the `app.reactor.schedule()` namespace
(only available in **evrythng-extended.js**).
- **Reactor scripts**: Add Reactor scripts resource in the `app.reactor.script()` namespace
(only available in **evrythng-extended.js**).

# v3.7.0 (16-06-2016)

Expand All @@ -223,8 +227,8 @@ resource `app.reactor.script().status()`.

## Features

- **Iterator API**: Async generator `iterator()` added to every Resource, supporting looping
through the new pagination links.
- **Iterator API**: Async generator `iterator()` added to every Resource, supporting looping
through the new pagination links.
- **Utils**: Added `forEachAsync()` utility to loop through async generator values.
- **Utils**: Added `spawn()` utility to run through generator function.

Expand Down Expand Up @@ -302,12 +306,12 @@ through the new pagination links.
## Features

- **Trusted App**: scope to use with you **Application Secret Key**, mainly used in Reactor scripts
(only available in **evrythng-extended.js**).
(only available in **evrythng-extended.js**).

## Breaking changes

- **plugins**: `EVT.use()` to install plugin is now synchronous. Callback has been removed. Required dependencies
now use `$inject` property instead of `requires`.
now use `$inject` property instead of `requires`.

# v3.1.2 (25-06-2015)

Expand Down
Loading

0 comments on commit e3d6a57

Please sign in to comment.