Skip to content

Commit

Permalink
Merge pull request #589 from swrlab/dev/v1-3-0
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg authored May 14, 2024
2 parents a2817e5 + 379ea6d commit e34f7c5
Show file tree
Hide file tree
Showing 6 changed files with 1,077 additions and 970 deletions.
27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
# SWR Audio Lab / Node.js Utils Changelog

by [**SWR Audio Lab**](https://lab.swr.de/)
by [**SWR Audio Lab**](https://lab.swr.de/)

## Changelog

- 2024-05-13 - v1.3.0

- chore: update dependencies
- chore!: upgrade minimum NodeJS version to `v20`

- 2023-12-27 - v1.2.1

- chore: update dependencies
- refact: remove `uuid` dependency
- chore!: upgrade minimum NodeJS version to `v18`

- 2023-12-18 - v1.2.0

- refact: optimize linter util to work with Yarn `>=v4`
- chore: upgrade default NodeJS version to `v20`

- 2023-04-19 - v1.1.3

- fix: don't run linter on dependabot-pr
- fix: use `toReadable` in `pluralize` helper
- security: add safe-to-test flag for pr's

- 2023-02-15 - v1.1.2

- feat: add `revYearMonthDay` to date package
- feat: add `date` package with iso time functions
- feat: add `arrayToObjectCount` to helpers package
Expand All @@ -27,6 +36,7 @@ by [**SWR Audio Lab**](https://lab.swr.de/)
- feat: add `isEmptyString` to strings package

- 2023-02-13 - v1.1.1

- feat: add `addTrailingZeros` to numbers package
- feat: add `addLeadingZero` to numbers package
- feat: add `getDiff` to numbers package
Expand All @@ -36,6 +46,7 @@ by [**SWR Audio Lab**](https://lab.swr.de/)
- feat: add `roundTo` to numbers package

- 2022-12-19 - v1.1.0

- feat: add test workflow to github/actions
- feat: add helpers package (with `sleep` function)
- feat: add numbers package (with `toReadable` function)
Expand All @@ -45,53 +56,67 @@ by [**SWR Audio Lab**](https://lab.swr.de/)
BREAKING CHANGE: `strings.isEven()` is deprecated, use `numbers.isEven()` instead

- 2022-08-09 - v1.0.1

- chore: update `super-linter` with new config

- 2022-07-27 - v1.0.0

- chore: move node-crc to swrlab account
- feat: add mocha tests for strings utils

- 2022-07-26 - v1.0.10-beta

- chore: merge `frytg/undici-wrapper` into this package

- 2022-07-06 - v1.0.9-beta

- chore: update undici to v0.1.0 (with fix for `undici.request` instead of `Pool`)

- 2022-06-30 - v1.0.8-beta

- feat: add `isEven` to string helpers

- 2022-06-29 - v1.0.7-beta

- fix: node-crc fork (linux-musl binaries)

- 2022-06-28 - v1.0.6-beta

- feat: mocha test for node-crc
- fix: node-crc fork (prebuild binaries)
- fix: github-actions workflow

- 2022-06-21 - v1.0.5-beta

- chore: update GitHub actions to use latest versions

- 2022-05-03 - v1.0.4-beta

- chore: update GitHub actions

- 2022-03-02 - v1.0.3-beta

- chore: change license to `MIT`
- chore: required Node.js is `v16`

- 2022-01-31 - v1.0.2-beta

- fix: ard publisher script
- add: script for publisher ordering

- 2022-01-31 - v1.0.1-beta

- feat: add string helpers

- 2022-01-26 - v1.0.0-beta

- chore!: folder migration
- refactor: swap node-fetch for undici
- feat: add ard publisher script
- feat: add ard category parser

- 2021-08-11 - v0.2.3

- updated dependencies
- updated GitHub actions
- add optional 'resumable' flag
Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

This repository contains several frequently used packages and scripts for easier access and maintenance.

- [SWR Audio Lab / Node.js Utils](#swr-audio-lab--nodejs-utils)
- [Install](#install)
- [Packages](#packages)
- [Scripts](#scripts)
- [ARD Category Remapper](#ard-category-remapper)
- [ARD Core ID generator](#ard-core-id-generator)
- [ARD Core Publisher Remapper](#ard-core-publisher-remapper)
- [Publish to npm](#publish-to-npm)
- [Changelog](#changelog)
- [License](#license)

## Install

Packages are meant to be imported into other projects:
Expand Down
9 changes: 2 additions & 7 deletions docs/LINTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

To simplify linting, this repository contains a template, that can be used by all SWR Audio Lab projects.

- [Super Linter for SWR Audio Lab](#super-linter-for-swr-audio-lab)
- [Super Linter](#super-linter)
- [Usage](#usage)
- [Configuration](#configuration)

## Super Linter

The used linter of choice here is `super-linter`, which bundles a lot of different projects. Some that are really not needed are disabled in the config.
Expand Down Expand Up @@ -35,11 +30,11 @@ jobs:
This uses the re-usable GitHub Actions workflow and calls the template from `node-utils` using the provided input variables:

- `install-all` - If `true` it will use `yarn install:all` instead of `yarn install` to trigger a custom script.
- `install-all` - If `true` it will use `yarn install:all` instead of `yarn install` to trigger a custom script.
This is useful, if the repository has multiple sub-folders that all need to be installed
- `generate-keys` - If `true` will call `yarn keys:generate` to run a custom script for dummy key creation.
- `log-level` - One of the follorwing: `ERROR`, `WARN`, `NOTICE`, `VERBOSE`, `DEBUG` or `TRACE`; defaults to `VERBOSE`.
- `validate-all-codebase` - Corresponds to `VALIDATE_ALL_CODEBASE` for `super-linter`:
- `validate-all-codebase` - Corresponds to `VALIDATE_ALL_CODEBASE` for `super-linter`:
_When set to `false`, only new or edited files will be parsed for validation._

## Configuration
Expand Down
6 changes: 1 addition & 5 deletions docs/NPM.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

This is a quick guide and some notes about SWR Audio Lab packages on [npmjs.com](https://www.npmjs.com/).

- [SWR Audio Lab on npm](#swr-audio-lab-on-npm)
- [Security](#security)
- [Publishing](#publishing)

## Security

Two-factor authentication (2FA) is enabled for all of SWR Audio Lab's packages (published as `@swrlab`).
Two-factor authentication (2FA) is enabled for all of SWR Audio Lab's packages (published as `@swrlab`).
To set up 2FA for your account, visit this guide: [docs.npmjs.com/configuring-two-factor-authentication](https://docs.npmjs.com/configuring-two-factor-authentication).

## Publishing
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@swrlab/utils",
"version": "1.2.1",
"version": "1.3.0",
"description": "Wrapping common SWR Audio Lab utils",
"main": "./index.js",
"engines": {
"node": ">=18"
"node": ">=20"
},
"repository": {
"type": "git",
Expand All @@ -23,23 +23,23 @@
"author": "SWR Audio Lab <[email protected]>",
"license": "MIT",
"dependencies": {
"@google-cloud/storage": "^7.7.0",
"@google-cloud/storage": "^7.11.0",
"abort-controller": "^3.0.0",
"aws-sdk": "2.1525.0",
"aws-sdk": "2.1618.0",
"luxon": "3.4.4",
"node-crc": "swrlab/node-crc#v2.1.0",
"undici": "6.2.1"
"undici": "6.16.1"
},
"devDependencies": {
"@swrlab/eslint-plugin-swr": "^0.3.0",
"@swrlab/swr-prettier-config": "^0.3.0",
"chai": "4.3.10",
"dotenv": "^16.3.1",
"eslint": "^8.56.0",
"chai": "4.4.1",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-plugin-json": "^3.1.0",
"mocha": "^10.2.0",
"prettier": "^3.1.1"
"mocha": "^10.4.0",
"prettier": "^3.2.5"
},
"prettier": "@swrlab/swr-prettier-config",
"packageManager": "yarn@4.0.2"
"packageManager": "yarn@4.2.2"
}
Loading

0 comments on commit e34f7c5

Please sign in to comment.