Skip to content

Commit

Permalink
Merge branch 'release/v0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartherbert committed Mar 2, 2024
2 parents e5d65f3 + 034ad86 commit 630732a
Show file tree
Hide file tree
Showing 37 changed files with 3,066 additions and 4,986 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.eslintrc.*
**/*.spec.ts
**/_fixtures/**
coverage/
reference-docs/
lib/
48 changes: 48 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked"],
parser: '@typescript-eslint/parser',
"parserOptions": {
"project": true,
tsconfigRootDir: "src",
"ecmaVersion": 2018,
"sourceType": "module"
},
plugins: ['@typescript-eslint'],
root: true,
overrides: [
{
extends: [
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
files: ['./src/**/*.{ts,tsx}'],
rules: {
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
}
},
],
"rules": {
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-import-type-side-effects": "error"
}
};
30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js CI

on:
push:
branches:
branches:
- master
- develop
- 'release/**'
Expand All @@ -24,12 +24,12 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [18, 20, 21]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [20]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
Expand All @@ -27,6 +27,6 @@ jobs:
- run: npm run cover
env:
CI: true
- run: npm publish --access=public
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ src/**/*.d.ts
src/**/*.map
lib
node_modules
reference-docs
tmp
11 changes: 11 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
"extensions": ["ts", "tsx"],
"require": "ts-node/register",
// "loader": "ts-node/esm",
"spec": [
"src/**/*.spec.ts"
],
"watch-files": [
"src"
]
}
18 changes: 0 additions & 18 deletions .nycrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@ For each release, changes are grouped under these headings:

The following changes have been completed, and will be included in the next tagged release.

## v0.2.0

Released Saturday, 2nd March 2024.

### Fixes

- add simultaneous support for CommonJS and ESM modules

### B/C Breaks

* Upgrade to Typescript 5.2
* Switch from tslint to @typescript-eslint
* Lots of tweaks to satisfy @typescript-eslint

### Tests

* All tests now import from `@safelytyped/ip-port` to test that our exports work

## v0.1.1

Released Wednesday, 26th May 2021.
Expand Down
Loading

0 comments on commit 630732a

Please sign in to comment.