incubator-openwhisk-client-js.git
2 months agov3.18.0 version bump (#142) master 3.18.0
Carlos Santana [Thu, 27 Sep 2018 17:31:24 +0000 (13:31 -0400)] 
v3.18.0 version bump (#142)

2 months agoadd header x-namespace-id (#140)
Carlos Santana [Thu, 27 Sep 2018 15:57:00 +0000 (11:57 -0400)] 
add header x-namespace-id (#140)

* add header x-namespace-id

Closes #139

* add tests for x-namespace-id header injection

2 months agoprotect against lack of Error.captureStackTrace (#138)
Nick Mitchell [Thu, 13 Sep 2018 07:41:17 +0000 (03:41 -0400)] 
protect against lack of Error.captureStackTrace (#138)

3 months agofix missing pass-through of user-agent in namespace.list and .get, and activation...
Nick Mitchell [Tue, 11 Sep 2018 13:45:25 +0000 (09:45 -0400)] 
fix missing pass-through of user-agent in namespace.list and .get, and activation.get (#136)

also add a noUserAgent option, to prevent assigning a default user-agent

Fixes #135

3 months agov3.17.0 NPM version bump (#134) 3.17.0
Carlos Santana [Mon, 20 Aug 2018 20:17:51 +0000 (16:17 -0400)] 
v3.17.0 NPM version bump (#134)

3 months agoadd authHandler option to deal with authorization header (#132)
Carlos Santana [Fri, 17 Aug 2018 08:28:05 +0000 (04:28 -0400)] 
add authHandler option to deal with authorization header (#132)

* add authHandler option
Closes #131

3 months agofix types for blocking and result (#130)
Van Staub [Fri, 17 Aug 2018 08:07:00 +0000 (04:07 -0400)] 
fix types for blocking and result (#130)

3 months agoAdd explicit call to routemgmt.yml in travis (#127)
Carlos Santana [Tue, 14 Aug 2018 15:21:39 +0000 (11:21 -0400)] 
Add explicit call to routemgmt.yml in travis (#127)

4 months agoupdate npm token use for deploy (#126) 3.16.0
Carlos Santana [Sun, 29 Jul 2018 16:57:44 +0000 (12:57 -0400)] 
update npm token use for deploy (#126)

4 months agov3.16.0 NPM version bump (#124)
James Thomas [Mon, 16 Jul 2018 08:06:16 +0000 (09:06 +0100)] 
v3.16.0 NPM version bump (#124)

* 3.16.0 version bump

5 months agoTest case and fix for #121 (#122)
Lars Trieloff [Wed, 11 Jul 2018 13:29:25 +0000 (15:29 +0200)] 
Test case and fix for #121 (#122)

* Simple fix and tests for apache/incubator-openwhisk-client-js#121

- if an `options.exec` object is provided, use it
- override derived or inferred values in `body.exec` in the process

6 months agoadd User-Agent to request header (#118)
Nick Mitchell [Fri, 25 May 2018 08:31:00 +0000 (04:31 -0400)] 
add User-Agent to request header (#118)

Fixes #117

7 months agov3.15.0 NPM version bump (#116) 3.15.0
James Thomas [Mon, 30 Apr 2018 20:56:52 +0000 (21:56 +0100)] 
v3.15.0 NPM version bump (#116)

7 months agoAdd support for __OW_IGNORE_CERT env var (#110)
ScottChapman [Mon, 30 Apr 2018 16:03:39 +0000 (12:03 -0400)] 
Add support for __OW_IGNORE_CERT env var (#110)

* Add support for __OW_IGNORE_CERT env var

7 months agoSupport route creation with path parameters and secure keys. (#114)
James Thomas [Sat, 28 Apr 2018 18:42:31 +0000 (19:42 +0100)] 
Support route creation with path parameters and secure keys. (#114)

* 3.11.0

* 3.12.0

* Fixing #100

Connect echo action to trigger with rule to ensure result has
activation identifier.

* 3.13.1

* Support route creation with path parameters and secure keys.

Parse path parameters from route options and generate correct swagger.
New creation parameter to pass authentication key for secured web actions.

8 months agostyle: add .editorconfig, eslint and reformat js file (#63)
Róbert Kiss [Tue, 3 Apr 2018 08:22:47 +0000 (10:22 +0200)] 
style: add .editorconfig, eslint and reformat js file (#63)

* style: add .editorconfig and reformat js file

use 2 space indent in every file

* style: add eslint and reformat code to apply style

* ci: add 'npm run lint' to travis and as pre-commit hook

* ci: move 'npm run lint' -> tools/travis/build.sh

* doc: Add standard code style badge

* style: Apply standard style rules

* doc: replace eslint part in contributing.md

* build: Add lint script to package.json

* update: type definitions

* add backward compatibility of client options

* change method names

* delete "deprecated" mark from main.d.ts file

* fix integration test options

8 months agoupdate package.json and d.ts for 3.14 (#112) 3.14.0
Carlos Santana [Tue, 27 Mar 2018 17:29:12 +0000 (13:29 -0400)] 
update package.json and d.ts  for 3.14 (#112)

* update package.json and d.ts  for 3.14

* try to add babel transform-runtime dep

* fix babel stuff

8 months agoadd count to list of valid qs params (#109)
Carlos Santana [Fri, 23 Mar 2018 11:40:32 +0000 (04:40 -0700)] 
add count to list of valid qs params (#109)

* add count to list of valid qs params

* update readme with count

* add tests for count query param

* Update README.md

8 months agov3.13.1 NPM version bump (#107) 3.13.1
James Thomas [Thu, 15 Mar 2018 09:55:49 +0000 (09:55 +0000)] 
v3.13.1 NPM version bump (#107)

8 months agoAllow string argument for action get API (#105)
James Dubee [Thu, 15 Mar 2018 07:46:07 +0000 (03:46 -0400)] 
Allow string argument for action get API (#105)

* Allow string argument for action get API

* Group optional params together in README

8 months agov3.13.0 NPM version bump (#104) 3.13.0
Carlos Santana [Wed, 14 Mar 2018 03:34:28 +0000 (23:34 -0400)] 
v3.13.0 NPM version bump (#104)

8 months agoAdd Code Query Parameter (#99)
James Dubee [Wed, 14 Mar 2018 02:52:51 +0000 (22:52 -0400)] 
Add Code Query Parameter (#99)

8 months agoShortDesc name field is optional (#98)
Lionel Villard [Wed, 14 Mar 2018 02:51:53 +0000 (22:51 -0400)] 
ShortDesc name field is optional (#98)

8 months agoFixes #100 (#102)
James Thomas [Tue, 13 Mar 2018 20:21:09 +0000 (20:21 +0000)] 
Fixes #100 (#102)

Connect echo action to trigger with rule to ensure result has
activation identifier.

10 months agov3.12.0 NPM version bump (#96) 3.12.0
James Thomas [Mon, 15 Jan 2018 18:08:23 +0000 (18:08 +0000)] 
v3.12.0 NPM version bump (#96)

10 months agoSugar namespsace get. (#95)
rodric rabbah [Fri, 12 Jan 2018 18:51:01 +0000 (13:51 -0500)] 
Sugar namespsace get. (#95)

12 months ago3.11.0 (#92) 3.11.0
James Thomas [Fri, 8 Dec 2017 13:57:19 +0000 (13:57 +0000)] 
3.11.0 (#92)

12 months agorequire at least needle 2.1.0 (#90)
Nick Mitchell [Thu, 7 Dec 2017 11:58:59 +0000 (06:58 -0500)] 
require at least needle 2.1.0 (#90)

Fixes #89

12 months agosupport feed trigger update (#88)
Adnan Baruni [Fri, 17 Nov 2017 21:52:13 +0000 (15:52 -0600)] 
support feed trigger update (#88)

* support feed trigger update

* update test description

13 months agobump package.json to 3.10.0 (#87) 3.10.0
Carlos Santana [Fri, 10 Nov 2017 18:46:07 +0000 (13:46 -0500)] 
bump package.json to 3.10.0 (#87)

13 months agoAdd new features to routes methods. (#85)
James Thomas [Fri, 10 Nov 2017 17:31:53 +0000 (17:31 +0000)] 
Add new features to routes methods. (#85)

* Remove "experimental" API Gateway support.
* Adding supporting for `responsetype` for route creation.
* Updated Routes with api name, retrieval and swagger support
Fixes #52
Fixes #69
Fixes #70
Fixes #71

13 months agoAdd support for FQN entity names with leading forward slash (#83)
James Thomas [Fri, 10 Nov 2017 17:24:56 +0000 (17:24 +0000)] 
Add support for FQN entity names with leading forward slash (#83)

* Remove "experimental" API Gateway support.

Fixes #52

* 3.7.0

* 3.8.0

* Adding supporting for `responsetype` for route creation.

* 3.9.0

* Add support for FQN without leading forward slash.
Fixes #75

13 months agotravis npm publish (#84)
Carlos Santana [Thu, 9 Nov 2017 21:15:18 +0000 (16:15 -0500)] 
travis npm publish (#84)

13 months agoSupport retrieving status and configuration of feed triggers (#80)
Adnan Baruni [Thu, 9 Nov 2017 15:41:39 +0000 (09:41 -0600)] 
Support retrieving status and configuration of feed triggers (#80)

* add ability to retrieve feeds

* add to integration test

13 months agoAdd type support for annotations and limits (#76)
Guillaume Baudart [Fri, 20 Oct 2017 20:14:23 +0000 (16:14 -0400)] 
Add type support for annotations and limits (#76)

13 months agoswitch from request-promise to needle (#78)
Nick Mitchell [Fri, 20 Oct 2017 17:53:46 +0000 (13:53 -0400)] 
switch from request-promise to needle (#78)

Switch from request-promise to needle, for an initialization performance boost. Fixes #77
Also adds test coverage for 404 and 409 cases. Fixes #79

* switch from request-promise to needle
* remove needless clause
* handle errors for needle
* improve comments of rp facade code
* improve error handling test coverage
* fix for 409 test

13 months agoAdding support for responsetype parameter during route create. (#74) 3.8.0 3.9.0
James Thomas [Tue, 17 Oct 2017 10:50:37 +0000 (11:50 +0100)] 
Adding support for responsetype parameter during route create. (#74)

14 months agoAdding type definitions for typescript (#72)
Guillaume Baudart [Mon, 2 Oct 2017 14:13:18 +0000 (10:13 -0400)] 
Adding type definitions for typescript (#72)

* Adding type definitions for typescript
* Requested changes
* Adding type support for sequences

14 months agoAdd support for action limits and annotations (#73)
Olivier Tardieu [Fri, 29 Sep 2017 14:24:45 +0000 (10:24 -0400)] 
Add support for action limits and annotations (#73)

* Add support for action limits and annotations
* Add unit tests
* Add documentation for action annotations and limits

15 months agofeat: Support version when create / update action (#65) 3.7.0
Róbert Kiss [Thu, 24 Aug 2017 00:37:10 +0000 (02:37 +0200)] 
feat: Support version when create / update action (#65)

* feat: Support version when create / update action

The [REST API](https://console.bluemix.net/apidocs/98-ibm-bluemix-openwhisk?=undefined&language=node&env_id=ibm:yp:eu-gb#create-or-update-an-action) support version number, when create or update action. The parameter is optional and if it is empty the system increment the patch version number.

When action invoke the system store the version number in the log. Very useful to know what version of the action have invoked when investigating a bug.

* doc: Add version documentation of create / update action

15 months agoRemove "experimental" API Gateway support. (#67)
James Thomas [Thu, 24 Aug 2017 00:35:26 +0000 (01:35 +0100)] 
Remove "experimental" API Gateway support. (#67)

Fixes #52

15 months agoremove test dependency on resource created before script run (#68)
Angela [Tue, 22 Aug 2017 17:57:02 +0000 (12:57 -0500)] 
remove test dependency on resource created before script run (#68)

16 months agoFix wording, remove breaking apostrophe (#60)
Daniel Krook [Fri, 11 Aug 2017 22:59:27 +0000 (18:59 -0400)] 
Fix wording, remove breaking apostrophe (#60)

Removed the contraction so it doesn't break the single-quoted string.

16 months agochange cli to curl for integration script (#66)
Angela [Thu, 10 Aug 2017 15:39:15 +0000 (10:39 -0500)] 
change cli to curl for integration script (#66)

16 months agoUpdate readme.md to fix bug w/ retrieve (#62)
Raymond Camden [Wed, 9 Aug 2017 11:13:21 +0000 (06:13 -0500)] 
Update readme.md to fix bug w/ retrieve (#62)

The example to get an action doesn't work - this change corrects it.

16 months agocode coverage (#61)
Angela [Thu, 3 Aug 2017 21:17:14 +0000 (16:17 -0500)] 
code coverage (#61)

* code coverage

* code cov to travis

16 months agoTravis: Integration tests and setup script (#59)
Angela [Wed, 2 Aug 2017 17:44:54 +0000 (12:44 -0500)] 
Travis: Integration tests and setup script (#59)

* prep integration tests script

* Testing Travis CI

16 months agotravis integration unit tests (#58)
Angela [Fri, 21 Jul 2017 19:38:35 +0000 (14:38 -0500)] 
travis integration unit tests (#58)

17 months agoAdd Travis and Apache 2 license badges; adjust text to reference ASF APIs. (#55)
Matt Rutkowski [Mon, 10 Jul 2017 15:14:07 +0000 (10:14 -0500)] 
Add Travis and Apache 2 license badges; adjust text to reference ASF APIs. (#55)

17 months agopass through statusCode on errors (#54)
Nick Mitchell [Fri, 16 Jun 2017 13:27:43 +0000 (09:27 -0400)] 
pass through statusCode on errors (#54)

17 months agoAdd scancode support to Travis; update .js with ASF approved license. (#51)
Matt Rutkowski [Thu, 15 Jun 2017 16:16:13 +0000 (11:16 -0500)] 
Add scancode support to Travis; update .js with ASF approved license. (#51)

* Add scancode support to Travis; update .js with ASF approved license.

* Add scancode support to Travis; update .js with ASF approved license.

* Add scancode support to Travis; update .js with ASF approved license.

* Add scancode support to Travis; update .js with ASF approved license.

18 months agoAdd support for new API Gateway service. (#50) 3.6.0
James Thomas [Tue, 23 May 2017 22:04:38 +0000 (23:04 +0100)] 
Add support for new API Gateway service. (#50)

* Adding support for third-party API gateway provides.

Passing token will switch to using provider implementation
rather than built-in platform service.

* 3.6.0

* Fixing broken links and README.

19 months ago3.5.1 v3.5.1
James Thomas [Fri, 14 Apr 2017 19:45:55 +0000 (20:45 +0100)] 
3.5.1

19 months agoFix status code error message regression.
James Thomas [Fri, 14 Apr 2017 19:45:31 +0000 (20:45 +0100)] 
Fix status code error message regression.

19 months ago3.5.0 v3.5.0
James Thomas [Fri, 14 Apr 2017 19:27:15 +0000 (20:27 +0100)] 
3.5.0

19 months agoMerge branch 'master' of github.com:openwhisk/openwhisk-client-js
James Thomas [Fri, 14 Apr 2017 19:26:12 +0000 (20:26 +0100)] 
Merge branch 'master' of github.com:openwhisk/openwhisk-client-js

19 months agoImprove Error Messages For API Failure.
James Thomas [Fri, 14 Apr 2017 19:25:20 +0000 (20:25 +0100)] 
Improve Error Messages For API Failure.

19 months agoUpdate README.md
James Thomas [Fri, 14 Apr 2017 10:57:56 +0000 (11:57 +0100)] 
Update README.md

20 months agoAdd debugging notes.
James Thomas [Wed, 12 Apr 2017 11:03:51 +0000 (12:03 +0100)] 
Add debugging notes.

20 months agoAdd unit test for `kind` parameter on actions.create
James Thomas [Wed, 12 Apr 2017 10:37:14 +0000 (11:37 +0100)] 
Add unit test for `kind` parameter on actions.create

20 months agoallow creation of different kind (java, python, etc) (#44)
psyntium [Wed, 12 Apr 2017 10:31:35 +0000 (18:31 +0800)] 
allow creation of different kind (java, python, etc) (#44)

20 months agoRemove unnecessary error message suffix.
James Thomas [Wed, 29 Mar 2017 16:25:05 +0000 (17:25 +0100)] 
Remove unnecessary error message suffix.

20 months agoMerge branch 'master' of github.com:openwhisk/openwhisk-client-js
James Thomas [Tue, 28 Mar 2017 15:44:13 +0000 (16:44 +0100)] 
Merge branch 'master' of github.com:openwhisk/openwhisk-client-js

20 months ago3.4.1 v3.4.1
James Thomas [Tue, 28 Mar 2017 15:43:53 +0000 (16:43 +0100)] 
3.4.1

20 months agoFixing namespace bug with creating feeds.
James Thomas [Tue, 28 Mar 2017 15:43:17 +0000 (16:43 +0100)] 
Fixing namespace bug with creating feeds.

20 months agoEnvironment variables minor typo fix (#43)
kpavel [Sun, 26 Mar 2017 14:48:03 +0000 (17:48 +0300)] 
Environment variables minor typo fix (#43)

20 months ago3.4.0 v3.4.0
James Thomas [Sat, 18 Mar 2017 17:36:25 +0000 (17:36 +0000)] 
3.4.0

20 months agoSupport user-returned error responses using statusCode.
James Thomas [Sat, 18 Mar 2017 17:31:13 +0000 (17:31 +0000)] 
Support user-returned error responses using statusCode.

Fixes #40.

20 months agoSupport default parameters when updating or creating actions.
James Thomas [Sat, 18 Mar 2017 17:12:35 +0000 (17:12 +0000)] 
Support default parameters when updating or creating actions.

Fixes #25

20 months agoAdd option to return action result, rather than api response.
James Thomas [Sat, 18 Mar 2017 16:38:21 +0000 (16:38 +0000)] 
Add option to return action result, rather than api response.

Fixes #29.

20 months agoFix issue with string identifier for operations.
James Thomas [Sat, 18 Mar 2017 16:22:31 +0000 (16:22 +0000)] 
Fix issue with string identifier for operations.

21 months agoFixing broken routes unit tests
James Thomas [Fri, 10 Mar 2017 18:21:21 +0000 (18:21 +0000)] 
Fixing broken routes unit tests

21 months agoAdding note about testing setup
James Thomas [Fri, 10 Mar 2017 18:18:01 +0000 (18:18 +0000)] 
Adding note about testing setup

21 months ago3.3.5 v3.3.5
James Thomas [Fri, 10 Mar 2017 18:13:28 +0000 (18:13 +0000)] 
3.3.5

21 months agoAPI Gateway definition fails with encoded namespace.
James Thomas [Fri, 10 Mar 2017 18:12:56 +0000 (18:12 +0000)] 
API Gateway definition fails with encoded namespace.

21 months ago3.3.4 v3.3.4
James Thomas [Fri, 10 Mar 2017 17:55:30 +0000 (17:55 +0000)] 
3.3.4

21 months agoFix edge cases about namespace and resource identifiers.
James Thomas [Fri, 10 Mar 2017 17:52:21 +0000 (17:52 +0000)] 
Fix edge cases about namespace and resource identifiers.

When using fully-qualified resource identifiers, namespace
should always come from the resource identifiers.

Without explicit namespaces, client should look up namespace
from method options, constructor options, environment parameter
in that order before falling back to default namespace (_).

21 months ago3.3.3 v3.3.3
James Thomas [Thu, 9 Mar 2017 13:42:21 +0000 (13:42 +0000)] 
3.3.3

21 months agoMerge branch 'master' of github.com:openwhisk/openwhisk-client-js
James Thomas [Thu, 9 Mar 2017 13:41:58 +0000 (13:41 +0000)] 
Merge branch 'master' of github.com:openwhisk/openwhisk-client-js

21 months ago3.3.2 v3.3.2
James Thomas [Thu, 9 Mar 2017 13:41:38 +0000 (13:41 +0000)] 
3.3.2

21 months agoFix namespace regression.
James Thomas [Thu, 9 Mar 2017 09:47:22 +0000 (09:47 +0000)] 
Fix namespace regression.

Re-factoring removed ability to pass global namespace to constructor.
Add this capability back into the library.
Fixes #39.

21 months agoudpate version 3.3.2 (#38) 3.3.2
Carlos Santana [Fri, 3 Mar 2017 23:05:30 +0000 (18:05 -0500)] 
udpate version 3.3.2 (#38)

21 months agoUpdate version 3.3.1 (#37) 3.3.1
Carlos Santana [Fri, 3 Mar 2017 22:40:39 +0000 (17:40 -0500)] 
Update version 3.3.1 (#37)

21 months agoFix path for routemgmt package. (#32) 36/head
rodric rabbah [Fri, 3 Mar 2017 20:42:03 +0000 (15:42 -0500)] 
Fix path for routemgmt package. (#32)

21 months ago3.3.1 v3.3.1
James Thomas [Thu, 2 Mar 2017 07:42:14 +0000 (08:42 +0100)] 
3.3.1

21 months agoReplace `new Buffer()` use with `Buffer.from()` (#34)
James M Snell [Thu, 2 Mar 2017 07:41:36 +0000 (23:41 -0800)] 
Replace `new Buffer()` use with `Buffer.from()` (#34)

21 months agoUpdate README.md
James Thomas [Sat, 25 Feb 2017 19:06:34 +0000 (19:06 +0000)] 
Update README.md

21 months ago3.3.0 v3.3.0
James Thomas [Sat, 25 Feb 2017 18:59:31 +0000 (18:59 +0000)] 
3.3.0

21 months agoImprove API usability (#31)
James Thomas [Sat, 25 Feb 2017 18:58:53 +0000 (18:58 +0000)] 
Improve API usability (#31)

* re-factoring base operation

* Re-factoring Action class

* Moar re-factoring with new base class.

* Re-factor feed class

* Re-factor Routes

* removing constructor parameter for namespace

* Adding support for passing in string and array ids

Fixed all the unit and integration tests after re-factoring.

21 months agoFix example for blocking invoke. The response from invocation contains the full respo...
Ioana Baldini [Wed, 15 Feb 2017 09:29:12 +0000 (04:29 -0500)] 
Fix example for blocking invoke. The response from invocation contains the full response json, include path to actual result (#30)

22 months ago3.2.2 v3.2.2
James Thomas [Tue, 7 Feb 2017 16:52:25 +0000 (16:52 +0000)] 
3.2.2

22 months agoUpdating README to improve developer experience.
James Thomas [Tue, 7 Feb 2017 16:46:27 +0000 (16:46 +0000)] 
Updating README to improve developer experience.

Improved documentation for constructor options.
Added more examples showing usage for client library

22 months agoUpdate README.md example package.get (#27)
Priti Desai [Tue, 7 Feb 2017 15:38:13 +0000 (07:38 -0800)] 
Update README.md example package.get (#27)

22 months agoUpdate README.md example package.list and fix markdown formatting. (#24)
Priti Desai [Sat, 4 Feb 2017 20:12:19 +0000 (12:12 -0800)] 
Update README.md example package.list and fix markdown formatting. (#24)

* Update README.md

Thanks a bunch Lorna for updating README, not trying to step onto or pin point your changes, but just thought of making it complete so that examples can be executed when copied as is.

* Update README.md

* Update README.md

Fixed code format by adding "```"

* Update README.md

Removing "return" from ow.packages.list()

22 months agoUpdate CONTRIBUTING.md
Matt Rutkowski [Fri, 3 Feb 2017 16:17:06 +0000 (10:17 -0600)] 
Update CONTRIBUTING.md

22 months agoMerge pull request #22 from lornajane/readme-examples
James Thomas [Thu, 2 Feb 2017 09:53:20 +0000 (09:53 +0000)] 
Merge pull request #22 from lornajane/readme-examples

Add a few examples to the README

22 months agoAdd a few examples to the README 22/head
Lorna Jane Mitchell [Thu, 2 Feb 2017 09:28:39 +0000 (09:28 +0000)] 
Add a few examples to the README

22 months agoUpdate CONTRIBUTING.md
Matt Rutkowski [Wed, 25 Jan 2017 16:49:01 +0000 (10:49 -0600)] 
Update CONTRIBUTING.md

23 months ago3.2.1 v3.2.1
James Thomas [Mon, 19 Dec 2016 17:21:42 +0000 (17:21 +0000)] 
3.2.1

23 months agoAdd Routes class to external library
James Thomas [Mon, 19 Dec 2016 17:21:36 +0000 (17:21 +0000)] 
Add Routes class to external library