@serenity-js/local-server 3.1.6 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +31 -6
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.2.0](https://github.com/serenity-js/serenity-js/compare/v3.1.6...v3.2.0) (2023-05-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** use "types" instead of "typings" in package.json files ([b83d922](https://github.com/serenity-js/serenity-js/commit/b83d922076242c6cd5d6f2da055a05aa5e77f11b)), closes [#1682](https://github.com/serenity-js/serenity-js/issues/1682)
12
+
13
+
14
+ ### Features
15
+
16
+ * **core:** introduced support for Node.js 20, dropped support for Node.js 14 ([491fef8](https://github.com/serenity-js/serenity-js/commit/491fef8df672a2b40d247887b3da409dccbd26fd)), closes [#1678](https://github.com/serenity-js/serenity-js/issues/1678)
17
+
18
+
19
+
20
+
21
+
6
22
  ## [3.1.6](https://github.com/serenity-js/serenity-js/compare/v3.1.5...v3.1.6) (2023-04-18)
7
23
 
8
24
 
package/README.md CHANGED
@@ -5,16 +5,23 @@
5
5
  [![Join Serenity/JS Community Chat](https://img.shields.io/badge/Chat-Serenity%2FJS%20Community-FBD30B?logo=matrix)](https://matrix.to/#/#serenity-js:gitter.im)
6
6
  [![Support Serenity/JS on GitHub](https://img.shields.io/badge/Support-@serenity--js-703EC8?logo=github)](https://github.com/sponsors/serenity-js)
7
7
 
8
- [Serenity/JS](https://serenity-js.org) is an innovative framework designed to make acceptance and regression testing
8
+ [Serenity/JS](https://serenity-js.org) is an innovative open-source framework designed to make acceptance and regression testing
9
9
  of complex software systems faster, more collaborative and easier to scale.
10
10
 
11
- To get started, check out the comprehensive [Serenity/JS Handbook](https://serenity-js.org/handbook), [API documentation](https://serenity-js.org/api/core), and [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
11
+ ⭐️ Get started with Serenity/JS!
12
+ - [Serenity/JS Handbook](https://serenity-js.org/handbook) and [tutorial](https://serenity-js.org/handbook/web-testing/your-first-web-scenario),
13
+ - [API documentation](https://serenity-js.org/api/core),
14
+ - [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
12
15
 
13
- If you have any questions or just want to say hello, join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im).
16
+ 👋 Join the Serenity/JS Community!
17
+ - Meet other Serenity/JS developers and maintainers on the [Serenity/JS Community chat channel](https://matrix.to/#/#serenity-js:gitter.im),
18
+ - Find answers to your Serenity/JS questions on the [Serenity/JS Forum](https://github.com/orgs/serenity-js/discussions/categories/how-do-i),
19
+ - Learn how to [contribute to Serenity/JS](https://serenity-js.org/contributing),
20
+ - Support the project and gain access to [Serenity/JS Playbooks](https://github.com/serenity-js/playbooks) by becoming a [Serenity/JS GitHub Sponsor](https://github.com/sponsors/serenity-js)!
14
21
 
15
22
  ## Serenity/JS Local Server
16
23
 
17
- [`@serenity-js/local-server`](https://serenity-js.org/modules/local-server/) enables Serenity/JS Actors to manage local HTTP or HTTPS test servers powered by [Express](https://expressjs.com/),
24
+ [`@serenity-js/local-server`](https://serenity-js.org/api/local-server/) enables Serenity/JS Actors to manage local HTTP or HTTPS test servers powered by [Express](https://expressjs.com/),
18
25
  [Hapi](https://hapijs.com/),
19
26
  [Koa](https://koajs.com/),
20
27
  [Restify](http://restify.com/)
@@ -29,7 +36,7 @@ npm install --save-dev @serenity-js/{core,local-server}
29
36
 
30
37
  ### Example test
31
38
 
32
- ```
39
+ ```typescript
33
40
  import { actorCalled } from '@serenity-js/core';
34
41
  import {
35
42
  ManageALocalServer, StartLocalTestServer, StopLocalTestServer
@@ -45,7 +52,7 @@ const actor = actorCalled('Apisit').whoCan(
45
52
  CallAnApi.using(axios.create()),
46
53
  );
47
54
 
48
- actor.attemptsTo(
55
+ await actor.attemptsTo(
49
56
  StartLocalTestServer.onRandomPort(), (3)
50
57
  Send.a(GetRequest.to(LocalServer.url())), (4)
51
58
  Ensure.that(LastResponse.status(), equals(200)),
@@ -141,3 +148,21 @@ module.exports.requestListener = server;
141
148
  ```
142
149
 
143
150
  [Learn more about Restify](http://restify.com/).
151
+
152
+ ## 📣 Stay up to date
153
+
154
+ New features, tutorials, and demos are coming soon!
155
+ Follow [Serenity/JS on LinkedIn](https://www.linkedin.com/company/serenity-js),
156
+ subscribe to [Serenity/JS channel on YouTube](https://www.youtube.com/@serenity-js) and join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im) to stay up to date!
157
+ Please also make sure to star ⭐️ [Serenity/JS on GitHub](https://github.com/serenity-js/serenity-js) to help others discover the framework!
158
+
159
+ [![Follow Serenity/JS on LinkedIn](https://img.shields.io/badge/Follow-Serenity%2FJS%20-0077B5?logo=linkedin)](https://www.linkedin.com/company/serenity-js)
160
+ [![Watch Serenity/JS on YouTube](https://img.shields.io/badge/Watch-@serenity--js-E62117?logo=youtube)](https://www.youtube.com/@serenity-js)
161
+ [![Join Serenity/JS Community Chat](https://img.shields.io/badge/Chat-Serenity%2FJS%20Community-FBD30B?logo=matrix)](https://matrix.to/#/#serenity-js:gitter.im)
162
+ [![GitHub stars](https://img.shields.io/github/stars/serenity-js/serenity-js?label=Serenity%2FJS&logo=github&style=badge)](https://github.com/serenity-js/serenity-js)
163
+
164
+ ## 💛 Support Serenity/JS
165
+
166
+ If you appreciate all the effort that goes into making sophisticated tools easy to work with, please support our work and become a Serenity/JS GitHub Sponsor today!
167
+
168
+ [![GitHub Sponsors](https://img.shields.io/badge/Support%20@serenity%2FJS-703EC8?style=for-the-badge&logo=github&logoColor=white)](https://github.com/sponsors/serenity-js)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenity-js/local-server",
3
- "version": "3.1.6",
3
+ "version": "3.2.0",
4
4
  "description": "Enables Serenity/JS Actors to manage local Node.js test servers, such as Express, Koa or Restify",
5
5
  "author": {
6
6
  "name": "Jan Molak",
@@ -16,7 +16,7 @@
16
16
  "access": "public"
17
17
  },
18
18
  "main": "lib/index.js",
19
- "typings": "lib/index.d.ts",
19
+ "types": "./lib/index.d.ts",
20
20
  "keywords": [
21
21
  "serenity-js",
22
22
  "http",
@@ -33,7 +33,8 @@
33
33
  ],
34
34
  "scripts": {
35
35
  "clean": "rimraf target",
36
- "test": "nyc mocha --config ../../.mocharc.yml 'spec/**/*.spec.*'",
36
+ "test": "c8 npm run test:no-coverage",
37
+ "test:no-coverage": "mocha --config ../../.mocharc.yml 'spec/**/*.spec.*'",
37
38
  "compile": "rimraf lib && tsc --project tsconfig.build.json"
38
39
  },
39
40
  "repository": {
@@ -45,34 +46,33 @@
45
46
  "url": "https://github.com/serenity-js/serenity-js/issues"
46
47
  },
47
48
  "engines": {
48
- "node": "^14 || ^16 || ^18",
49
- "npm": "^6 || ^7 || ^8 || ^9"
49
+ "node": "^16.13 || ^18.12 || ^20"
50
50
  },
51
51
  "dependencies": {
52
- "@serenity-js/core": "3.1.6",
52
+ "@serenity-js/core": "3.2.0",
53
53
  "http-shutdown": "^1.2.2",
54
54
  "portfinder": "^1.0.32"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@hapi/hapi": "^21.3.1",
58
58
  "@integration/testing-tools": "3.0.0",
59
- "@serenity-js/assertions": "3.1.6",
60
- "@serenity-js/rest": "3.1.6",
59
+ "@serenity-js/assertions": "3.2.0",
60
+ "@serenity-js/rest": "3.2.0",
61
61
  "@types/chai": "^4.3.4",
62
62
  "@types/express": "^4.17.17",
63
63
  "@types/hapi": "^18.0.8",
64
64
  "@types/mocha": "^10.0.1",
65
65
  "@types/restify": "^8.5.6",
66
66
  "axios": "^1.3.5",
67
+ "c8": "7.13.0",
67
68
  "express": "^4.18.2",
68
69
  "koa": "^2.14.2",
69
70
  "mocha": "^10.2.0",
70
71
  "mocha-multi": "^1.1.7",
71
- "nyc": "15.1.0",
72
72
  "restify": "^11.1.0",
73
73
  "semver": "^7.4.0",
74
74
  "ts-node": "^10.9.1",
75
75
  "typescript": "^5.0.4"
76
76
  },
77
- "gitHead": "825ecf4f0dd507e78da8b0634f659ecd3ddfb976"
77
+ "gitHead": "e69cea764f50991c3ad742f28926b4345b3e2422"
78
78
  }