Skip to content

Commit

Permalink
feat: dropping support for node 16 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Sep 12, 2023
1 parent 3b09a2f commit bb4aa62
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get npm cache directory
id: npm-cache-dir
Expand Down Expand Up @@ -40,13 +40,12 @@ jobs:
- ubuntu-latest
- windows-latest
node:
- 16
- 18
- 20

steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v3
Expand Down Expand Up @@ -88,12 +87,12 @@ jobs:

# steps:
# - name: Checkout source
# uses: actions/checkout@v3
# uses: actions/checkout@v4

# - name: Install Node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# node-version: 18

# - name: Get npm cache directory
# id: npm-cache-dir
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
"version": "2.0.0",
"description": "A utility for parsing and validating data URLs.",
"license": "ISC",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./package.json": "./package.json"
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.cts",
"engines": {
"node": ">=18"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "[email protected]:readmeio/data-urls.git"
Expand All @@ -11,21 +29,6 @@
"url": "https://github.com/readmeio/data-urls/issues"
},
"homepage": "https://github.com/readmeio/data-urls#readme",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"engines": {
"node": ">=14"
},
"scripts": {
"build": "tsup",
"lint": "eslint . --ext .js,.ts",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"declaration": true,
"esModuleInterop": true,
"lib": ["DOM", "ES2020"],
"moduleResolution": "node",
"module": "ESNext",
"moduleResolution": "bundler",
"noImplicitAny": true,
"outDir": "dist/",
"target": "ES2020"
Expand Down

0 comments on commit bb4aa62

Please sign in to comment.