Skip to content

Commit

Permalink
chore(dependencies): update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Node 20.11+ and ESM.
  • Loading branch information
nfroidure committed Aug 12, 2024
1 parent 249afa1 commit 73cf876
Show file tree
Hide file tree
Showing 50 changed files with 9,837 additions and 375 deletions.
11 changes: 11 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is automatically generated by a `metapak`
# module. Do not change it here, your changes would
# be overridden.

engines:
eslint:
enabled: true

ratings:
paths:
- "src/*.ts"
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is automatically generated by a `metapak`
# module. Do not change it elsewhere, changes would
# be overridden.

# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
# 2 space indentation
[*.{js,css}]
charset = utf-8
indent_style = space
trim_trailing_whitespace = true
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enforce Unix newlines
* text=auto eol=lf
9 changes: 9 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code of Conduct

Be kind, except if I behave like an asshole, if so, tell me by linking to this
file.

I try hard to document and automate things so that you cannot create noises
without really willing to do so.

This is why I'll just delete issues/comments making be sad.
8 changes: 8 additions & 0 deletions .github/CONTRIBUTING
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Contributing to this project requires you to be
a gentleman.

By contributing you must agree with publishing your
changes into the same license that apply to the current code.

You will find the license in the LICENSE file at
the root of this repository.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [nfroidure]
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
## Issue
<!--

Thanks for reporting an issue.

Before doing so, there are a few checks to do in
order to optimize its resolution. Just fill in the
following template.

Beware that you also can create a pull request
if you know how to solve the issue.

Finally scroll down if you are asking for a new feature ;)

-->

I'm a gentledev I:
- [ ] fully read the README recently
- [ ] searched for existing issues
- [ ] checked I'm up to date with the latest version of the project

### Expected behavior

### Actual behavior

### Steps to reproduce the behavior

### Debugging informations
- `node -v` result:
```
<paste here>
```

- `npm -v` result:
```
<paste here>
```
If the result is lower than 20.11.1, there is
poor chances I even have a look to it. Please,
use the last [NodeJS LTS version](https://nodejs.org/en/).

## Feature request
<!--

If you think a feature need to be added, your suggestions
are welcome. Beware though that:
- I try to keep my modules simple so please ensure the requested
feature is really related to this module. If not, you may
instead create a module that augment/work with this one,
- I am not your employee so keep calm and be aware that your
request may stay incomplete for ever. Nothing impeach you
to implement the feature and get it merged though.
-->

### Feature description

### Use cases

- [ ] I will/did implement the feature
51 changes: 51 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!--

Thanks for improving this project!

Before doing so, there are a few checks to do in
order to get your PR merged asap. Just fill in the
following template.

-->

Fixes #

### Proposed changes
-
-

<!-- Check the boxes with a `x` like so `[x]` -->

### Code quality
- [ ] I made some tests for my changes
- [ ] I added my name in the
[contributors](https://docs.npmjs.com/files/package.json#people-fields-author-contributors)
field of the `package.json` file. Beware to use the same format than for the author field
for the entries so that you'll get a mention in the `README.md` with a link to your website.

### License
To get your contribution merged, you must check the following.

- [ ] I read the project license in the LICENSE file
- [ ] I agree with publishing under this project license

<!--

If you already maintain several NPM modules / NodeJS
project, making significant changes on one of my modules
automatically legitimates you as a core developer.

This is because I could die or even not give a shit to
this project someday and I don't want people to get
stuck in such cases.

If you want to help, fill the following with to get
GitHub/NPM r/w access.

-->
### Join
- [ ] I wish to join the core team
- [ ] I agree that with great powers comes responsibilities
- [ ] I'm a nice person

My NPM username:
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is automatically generated by a `metapak`
# module. Do not change it here, your changes would
# be overridden.

name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run pre-commit tests
run: npm run precz
132 changes: 129 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,132 @@
# This file is automatically generated by a `metapak`
# module. Do not change it elsewhere, changes would
# be overridden.

# Created by https://www.gitignore.io/api/osx,node,linux

### Linux ###
*~
*.swp

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
test/results
.git
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

### OSX ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


# End of https://www.gitignore.io/api/osx,node,linux

# Coveralls key
.coveralls.yml

# Project custom ignored file
dist
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"gruntfuggly.todo-tree"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
9 changes: 4 additions & 5 deletions LICENCE → LICENSE
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
The MIT License

Copyright (c) 2013-2015 Nicolas Froidure, <http://insertafter.com/>
The MIT License (MIT)
Copyright © 2017 Nicolas Froidure

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the Software), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
Expand All @@ -12,7 +11,7 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Expand Down
Loading

0 comments on commit 73cf876

Please sign in to comment.