Skip to content

Commit

Permalink
feat(BREAKING): switch to native ESM package/server
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Requires Node 18+

Also:
- chore: update jamilih, devDeps.
  • Loading branch information
brettz9 committed Nov 14, 2023
1 parent 2c3ff5d commit 1d703ef
Show file tree
Hide file tree
Showing 7 changed files with 1,987 additions and 1,433 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

module.exports = {
extends: 'ash-nazg/sauron-node-overrides',
settings: {
polyfills: [
'Array.from',
'Object.entries',
'Promise',
'URL'
]
},
rules: {
}
};
41 changes: 0 additions & 41 deletions .eslintrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGES for client-tell

## 0.5.0

### User-impacting

- feat(BREAKING): switch to native ESM package/server

## 0.4.0

### User-impacting
Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ jml('div', {className: 'ancestor'}, [
]]
]],
['div', {id: 'requestHeaders', className: 'col requestHeaders'}, [
['datalist', {id: 'datalist'}, [...standardHeaders, ...nonstandardHeaders].map(
['datalist', {
id: 'datalist'
}, [...standardHeaders, ...nonstandardHeaders].map(
(header) => ['option', [header]]
)],
['table', {className: 'requestHeaders'}, [
Expand All @@ -143,7 +145,9 @@ jml('div', {className: 'ancestor'}, [
]]
]],

['textarea', {id: 'htmlText', placeholder: '(Response body)', className: 'col'}],
['textarea', {
id: 'htmlText', placeholder: '(Response body)', className: 'col'
}],
['div', {id: 'responseHeaders', className: 'col responseHeaders'}, [
['span', {className: 'placeholder'}, ['(Response headers)']]
]],
Expand Down
41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
{
"name": "client-tell",
"version": "0.4.0",
"version": "0.5.0",
"description": "HTTP client app in HTML/Node",
"main": "index.js",
"main": "./index.js",
"type": "module",
"scripts": {
"start": "node server",
"eslint": "eslint --ext=js,md,html .",
"eslint": "eslint --ext=js,cjs,md,html .",
"lint": "npm run eslint",
"open": "open-cli http://localhost:8085/ && npm start",
"test": "npm run eslint && echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"jamilih": "^0.54.0",
"jamilih": "^0.58.2",
"simple-post-json": "^0.7.0"
},
"devDependencies": {
"@brettz9/eslint-plugin": "^1.0.3",
"eslint": "^7.26.0",
"eslint-config-ash-nazg": "^29.15.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-array-func": "^3.1.7",
"eslint-plugin-compat": "^3.9.0",
"@brettz9/eslint-plugin": "^1.0.4",
"eslint": "^8.53.0",
"eslint-config-ash-nazg": "^35.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-array-func": "^4.0.0",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-jsdoc": "^34.6.1",
"eslint-plugin-markdown": "^2.1.0",
"eslint-plugin-no-unsanitized": "^3.1.5",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsdoc": "^46.9.0",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-radar": "^0.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-standard": "^4.1.0",
"eslint-plugin-unicorn": "^32.0.1",
"open-cli": "^6.0.1"
"eslint-plugin-unicorn": "^49.0.0",
"open-cli": "^7.2.0"
},
"repository": {
"type": "git",
Expand All @@ -50,7 +51,7 @@
"url": "https://github.com/brettz9/client-tell/issues"
},
"engines": {
"node": ">=10.0.0"
"node": ">=18.0.0"
},
"homepage": "https://github.com/brettz9/client-tell#readme"
}

0 comments on commit 1d703ef

Please sign in to comment.