Skip to content

Commit

Permalink
Upgrade proxy-extend to use modern Node.js 14+ features.
Browse files Browse the repository at this point in the history
- Convert package to ES modules by default using `module: "type"`.
- Use `exports` in `package.json` rather than `main`. This is technically a breaking change due to the change
  in which subpaths can be imported.
- Drop support for Node 12.
- Upgrade to package-lock v2 format.
  • Loading branch information
mkrause committed Apr 16, 2023
1 parent 716d615 commit 7422165
Show file tree
Hide file tree
Showing 21 changed files with 5,969 additions and 2,780 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 18.x, 19.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# OS support
.DS_Store

# Tool support
/node_modules/

# Project
/lib-cjs/
/lib-esm/
/dist/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.github/
/tests/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

# Changelog

- v2.0
- Upgrade `proxy-extend` to use modern Node.js 14+ features.
- Convert package to ES modules by default using `module: "type"`.
- Use `exports` in `package.json` rather than `main`. This is technically a breaking change due to the change
in which subpaths can be imported.
- Drop support for Node 12.
- Upgrade to package-lock v2 format.

- v1.3.x
- Drop support for Node v10, and IE 11.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# proxy-extend

[![npm](https://img.shields.io/npm/v/proxy-extend.svg?style=flat-square)](https://www.npmjs.com/package/proxy-extend)
[![Travis](https://img.shields.io/travis/mkrause/proxy-extend.svg?style=flat-square)](https://travis-ci.org/mkrause/proxy-extend)
![MIT](https://img.shields.io/npm/l/proxy-extend?style=flat-square)
![TypeScript](https://img.shields.io/badge/-TypeScript-blue.svg?style=flat-square)
[![npm](https://img.shields.io/npm/v/proxy-extend.svg)](https://www.npmjs.com/package/proxy-extend)
[![GitHub Actions](https://github.com/mkrause/proxy-extend/actions/workflows/nodejs.yml/badge.svg)](https://github.com/mkrause/proxy-extend/actions)
[![MIT](https://img.shields.io/npm/l/proxy-extend)](https://github.com/mkrause/proxy-extend)
[![Types](https://img.shields.io/npm/types/proxy-extend)](https://github.com/mkrause/proxy-extend)


Transparently extend any JS object, using ES6 Proxy.
Expand Down
3 changes: 1 addition & 2 deletions babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ module.exports = {
targets: {
browsers: [
'defaults',
'not IE 11',
'node 12.13', // Support Node v12.13 LTS (Erbium) or higher
'node 14.15', // Support Node v14.15 (Fermium) LTS or higher
],
},
presets: [
Expand Down

0 comments on commit 7422165

Please sign in to comment.