Skip to content

Commit df90e54

Browse files
committed
Merge branch 'release/1.1.0'
2 parents 7f57998 + 4911df9 commit df90e54

15 files changed

+12419
-4572
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- restore_cache:
2020
keys:
21-
- dependencies-{{ checksum "package.json" }}
21+
- dependencies-v2-{{ checksum "package.json" }}
2222

2323
- run:
2424
name: Install global packages
@@ -33,7 +33,7 @@ jobs:
3333
command: npm install
3434

3535
- save_cache:
36-
key: dependencies-{{ checksum "package.json" }}
36+
key: dependencies-v2-{{ checksum "package.json" }}
3737
paths:
3838
- node_modules
3939

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
extends: ['standard', 'prettier', 'prettier/standard'],
3-
plugins: ['prettier', 'standard', 'import', 'promise'],
2+
extends: ['standard', 'plugin:prettier/recommended'],
3+
plugins: ['import', 'promise', 'mocha'],
44
parserOptions: {
55
sourceType: 'module'
66
},

.github/dependabot.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Basic dependabot.yml file with
2+
# minimum configuration for two package managers
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for npm
7+
- package-ecosystem: "npm"
8+
# Look for `package.json` and `lock` files in the `root` directory
9+
directory: "/"
10+
# Check the npm registry for updates every day (weekdays)
11+
schedule:
12+
interval: "daily"
13+
14+
# Enable version updates for Docker
15+
# - package-ecosystem: "docker"
16+
# # Look for a `Dockerfile` in the `root` directory
17+
# directory: "/"
18+
# # Check for updates once a week
19+
# schedule:
20+
# interval: "weekly"

.github/workflows/codeql-analysis.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [develop, master]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [develop]
9+
schedule:
10+
- cron: '0 4 * * 0'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# Override automatic language detection by changing the below list
21+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22+
language: ['javascript']
23+
# Learn more...
24+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
with:
30+
# We must fetch at least the immediate parents so that if this is
31+
# a pull request then we can checkout the head.
32+
fetch-depth: 2
33+
34+
# If this run was triggered by a pull request event, then checkout
35+
# the head of the pull request instead of the merge commit.
36+
- run: git checkout HEAD^2
37+
if: ${{ github.event_name == 'pull_request' }}
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v1
42+
with:
43+
languages: ${{ matrix.language }}
44+
45+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46+
# If this step fails, then you should remove it and run the build manually (see below)
47+
- name: Autobuild
48+
uses: github/codeql-action/autobuild@v1
49+
50+
# ℹ️ Command-line programs to run using the OS shell.
51+
# 📚 https://git.io/JvXDl
52+
53+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
54+
# and modify them (or add more) to build your code if your project
55+
# uses a compiled language
56+
57+
#- run: |
58+
# make bootstrap
59+
# make release
60+
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v1

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ node_modules/
3535

3636
# macOS Desktop cache files
3737
.DS_Source
38+
39+
# VS Code metadata
40+
.vscode

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install lint-staged

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Pub Sub system that uses `AMQP` messaging to exchange data between services.
66

77
## To Use
88

9-
You project needs to be using at least Node version 8, and ideally Node 10 (LTS) or later.
9+
You project needs to be using at least Node version 8, and ideally Node 14 (LTS) or later.
1010

1111
```sh
1212
npm install amqp-simple-pub-sub
@@ -113,7 +113,7 @@ See some examples in the tests, and also:
113113

114114
### Prerequisites
115115

116-
- [NodeJS](htps://nodejs.org), version 10.18.2 (LTS) or better (I use [`nvm`](https://github.com/creationix/nvm) to manage Node versions — `brew install nvm`.)
116+
- [NodeJS](htps://nodejs.org), 8.10.0+ (I use [`nvm`](https://github.com/creationix/nvm) to manage Node versions — `brew install nvm`.)
117117
- [Docker](https://www.docker.com) (Use [Docker for Mac](https://docs.docker.com/docker-for-mac/), not the homebrew version)
118118

119119
### Initialisation
@@ -135,7 +135,6 @@ Runs Rabbit MQ.
135135
- `npm test` — runs the unit tests (quick and does not need `rabbitmq` running)
136136
- `npm run test:unit:cov` — runs the unit tests with code coverage (does not need `rabbitmq`)
137137
- `npm run test:integration` — runs the integration tests (needs `rabbitmq`)
138-
- `npm run test:mutants` — runs the mutation tests (does not need `rabbitmq`)
139138

140139
### Lint it
141140

SECURITY.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| 1.x | :white_check_mark: |
8+
| < 1.x | :x: |
9+
10+
## Reporting a Vulnerability
11+
12+
Report a vulnerability to [the author](https://about.me/davesag) directly.
13+
14+
You can expect to get an update on a reported vulnerability within 2 working days.
15+
16+
## Vulnerabilities in development dependencies
17+
18+
I'm using `dependabot` to scan for security issues and update dependencies in the `develop` branch regularly.

0 commit comments

Comments
 (0)