Skip to content

Commit

Permalink
feat!: convert to es modules (#56)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This drops support for node.js 10.x, and converts the module to es modules. Upgrade with care.
  • Loading branch information
JustinBeckwith committed Oct 19, 2021
1 parent 8141db6 commit 0381d86
Show file tree
Hide file tree
Showing 8 changed files with 410 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14, 15]
node: [12, 14, 16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 16
- run: npm install
- run: npm run lint
release:
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 16
- run: npm install
- run: npx semantic-release
env:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -18,8 +18,8 @@ It does this two ways:
## Usage

```js
const yes = require('yes-https');
const express = require('express');
import yes from 'yes-https';
import express from 'express';

let app = express();

Expand Down
5 changes: 3 additions & 2 deletions example/app.js
@@ -1,5 +1,6 @@
const express = require('express');
const yes = require('../lib/index.js');
import process from 'node:process';
import express from 'express';
import yes from '../lib/index.js';

const app = express();

Expand Down

0 comments on commit 0381d86

Please sign in to comment.