Skip to content

Commit 2117864

Browse files
committed
Merge branch 'release/v0.8.0'
2 parents 57f2cf8 + 7edd363 commit 2117864

File tree

14 files changed

+799
-558
lines changed

14 files changed

+799
-558
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ language: generic
22
services:
33
- docker
44
env:
5+
- ENVIRONMENT=ubuntu-18.04-node-v12
56
- ENVIRONMENT=ubuntu-18.04-node-v10
67
- ENVIRONMENT=ubuntu-18.04-node-v8
78
- ENVIRONMENT=ubuntu-18.04-node-v6
9+
- ENVIRONMENT=ubuntu-16.04-node-v12
810
- ENVIRONMENT=ubuntu-16.04-node-v10
911
- ENVIRONMENT=ubuntu-16.04-node-v8
1012
- ENVIRONMENT=ubuntu-16.04-node-v6
11-
- ENVIRONMENT=ubuntu-14.04-node-v10
12-
- ENVIRONMENT=ubuntu-14.04-node-v8
13-
- ENVIRONMENT=ubuntu-14.04-node-v6
13+
- ENVIRONMENT=debian-9-node-v12
1414
- ENVIRONMENT=debian-9-node-v10
1515
- ENVIRONMENT=debian-9-node-v8
1616
- ENVIRONMENT=debian-9-node-v6
17+
- ENVIRONMENT=debian-8-node-v12
1718
- ENVIRONMENT=debian-8-node-v10
1819
- ENVIRONMENT=debian-8-node-v8
1920
- ENVIRONMENT=debian-8-node-v6

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
All releases and their notable changes are documented in this file. This project follows [Semantic Versioning 2](https://semver.org).
44

5+
## v0.8.0 (2019-07-01)
6+
7+
- Add support for Node.js v12
8+
- Drop support for Ubuntu 14.04
9+
510
## v0.7.0 (2018-11-06)
611

712
- Update to ICU 61.1
813
- Fix segmentation fault if no charset matches (it now returns `null` in that case) ([`992a110`](https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a))
914
- Add support for macOS Mojave
1015
- Add support for Debian 9
11-
- Drop support for macOS Sierra
1216
- Drop support for Alpine Linux
1317

1418
## v0.6.0 (2018-06-14)

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**BSD 2-Clause License**
44

5-
Copyright © 2015, 2017–2018, Jakob Krigovsky<br>
5+
Copyright © 2015, 2017–2019, Jakob Krigovsky<br>
66
All rights reserved.
77

88
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ detect-character-encoding may return `null` if no charset matches.
3232
## Supported operating systems
3333

3434
- macOS Mojave and macOS High Sierra
35-
- Ubuntu 18.04, 16.04, and 14.04
35+
- Ubuntu 18.04 and 16.04
3636
- Debian 9 and 8
3737

3838
detect-character-encoding does not support 32-bit operating systems.

docker-compose.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: '3'
22
services:
3+
ubuntu-18.04-node-v12:
4+
build:
5+
context: .
6+
dockerfile: docker/ubuntu-18.04/node-v12/Dockerfile
37
ubuntu-18.04-node-v10:
48
build:
59
context: .
@@ -12,6 +16,10 @@ services:
1216
build:
1317
context: .
1418
dockerfile: docker/ubuntu-18.04/node-v6/Dockerfile
19+
ubuntu-16.04-node-v12:
20+
build:
21+
context: .
22+
dockerfile: docker/ubuntu-16.04/node-v12/Dockerfile
1523
ubuntu-16.04-node-v10:
1624
build:
1725
context: .
@@ -24,18 +32,10 @@ services:
2432
build:
2533
context: .
2634
dockerfile: docker/ubuntu-16.04/node-v6/Dockerfile
27-
ubuntu-14.04-node-v10:
28-
build:
29-
context: .
30-
dockerfile: docker/ubuntu-14.04/node-v10/Dockerfile
31-
ubuntu-14.04-node-v8:
32-
build:
33-
context: .
34-
dockerfile: docker/ubuntu-14.04/node-v8/Dockerfile
35-
ubuntu-14.04-node-v6:
35+
debian-9-node-v12:
3636
build:
3737
context: .
38-
dockerfile: docker/ubuntu-14.04/node-v6/Dockerfile
38+
dockerfile: docker/debian-9/node-v12/Dockerfile
3939
debian-9-node-v10:
4040
build:
4141
context: .
@@ -48,6 +48,10 @@ services:
4848
build:
4949
context: .
5050
dockerfile: docker/debian-9/node-v6/Dockerfile
51+
debian-8-node-v12:
52+
build:
53+
context: .
54+
dockerfile: docker/debian-8/node-v12/Dockerfile
5155
debian-8-node-v10:
5256
build:
5357
context: .
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:10-jessie
2+
3+
RUN npm install --global node-gyp && npm cache clean --force
4+
5+
WORKDIR /usr/src/app
6+
7+
COPY package.json package-lock.json ./
8+
RUN npm install && npm cache clean --force
9+
COPY . .
10+
RUN node-gyp rebuild
11+
12+
CMD ["npm", "test"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:10-stretch
2+
3+
RUN npm install --global node-gyp && npm cache clean --force
4+
5+
WORKDIR /usr/src/app
6+
7+
COPY package.json package-lock.json ./
8+
RUN npm install && npm cache clean --force
9+
COPY . .
10+
RUN node-gyp rebuild
11+
12+
CMD ["npm", "test"]

docker/generate.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ const yaml = require('js-yaml');
77

88
/* eslint-disable key-spacing */
99
const environments = [
10+
{os: 'ubuntu', osVersion: '18.04', nodeVersion: '12'},
1011
{os: 'ubuntu', osVersion: '18.04', nodeVersion: '10'},
1112
{os: 'ubuntu', osVersion: '18.04', nodeVersion: '8'},
1213
{os: 'ubuntu', osVersion: '18.04', nodeVersion: '6'},
14+
{os: 'ubuntu', osVersion: '16.04', nodeVersion: '12'},
1315
{os: 'ubuntu', osVersion: '16.04', nodeVersion: '10'},
1416
{os: 'ubuntu', osVersion: '16.04', nodeVersion: '8'},
1517
{os: 'ubuntu', osVersion: '16.04', nodeVersion: '6'},
16-
{os: 'ubuntu', osVersion: '14.04', nodeVersion: '10'},
17-
{os: 'ubuntu', osVersion: '14.04', nodeVersion: '8'},
18-
{os: 'ubuntu', osVersion: '14.04', nodeVersion: '6'},
18+
{os: 'debian', osVersion: '9', nodeVersion: '12', dockerTag: '10-stretch'},
1919
{os: 'debian', osVersion: '9', nodeVersion: '10', dockerTag: '10-stretch'},
2020
{os: 'debian', osVersion: '9', nodeVersion: '8', dockerTag: '8-stretch'},
2121
{os: 'debian', osVersion: '9', nodeVersion: '6', dockerTag: '6-stretch'},
22+
{os: 'debian', osVersion: '8', nodeVersion: '12', dockerTag: '10-jessie'},
2223
{os: 'debian', osVersion: '8', nodeVersion: '10', dockerTag: '10-jessie'},
2324
{os: 'debian', osVersion: '8', nodeVersion: '8', dockerTag: '8-jessie'},
2425
{os: 'debian', osVersion: '8', nodeVersion: '6', dockerTag: '6-jessie'}

docker/ubuntu-14.04/node-v8/Dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker/ubuntu-14.04/node-v10/Dockerfile renamed to docker/ubuntu-16.04/node-v12/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM ubuntu:14.04
1+
FROM ubuntu:16.04
22

33
RUN apt-get update && apt-get install -y \
44
curl \
55
gnupg \
6-
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
6+
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
77
&& { \
88
echo 'Package: nodejs'; \
99
echo 'Pin: origin deb.nodesource.com'; \

0 commit comments

Comments
 (0)