Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/changelog-git",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
19 changes: 19 additions & 0 deletions .changeset/itchy-balloons-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"enhanced-ms": major
---

Codebase rewrite to improve readability and performance

- Added new `createMs` function to create a new instance of `ms` with custom language and formatting options

- With this change, the `ms` function no longer accepts a language via its parameters, use `createMs` instead

- Improved performance of formatting milliseconds by up to 10%
- Added additional options to `FormatOptions` for more customisation

- Replaced `shortFormat` with `useAbbreviations`
- Added `hideUnitNames`, `includeZero`, `includedUnits`, `unitLimit`, `unitSeparator`, `minimumDigits`
- Added format option presets: `short`, `fullPrecision`, `colonNotation`

- Improved base performance of parsing durations by up to 1,100%
- Removed ability for parse to handle maths operators, this will likely be re-added in a future version as an option
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Learn how to add code owners here:
# https://help.github.com/en/articles/about-code-owners

* @apteryxxyz
91 changes: 0 additions & 91 deletions .github/COMMIT_CONVENTION.md

This file was deleted.

2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: apteryxxyz
ko_fi: apteryx
59 changes: 0 additions & 59 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/actions/node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup Node.js
description: Setup Node.js, PNPM, and install dependencies

runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
cache: pnpm

- name: Install dependencies
run: pnpm install
shell: bash
48 changes: 26 additions & 22 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
- name: 'bug'
color: 'd73a4a'
- name: 'chore'
color: 'ffffff'
- name: 'ci'
color: '0075ca'
- name: 'dependencies'
color: '276bd1'
- name: 'documentation'
color: '0075ca'
- name: 'duplicate'
color: 'cfd3d7'
- name: 'feature request'
color: 'fcf95a'
- name: 'good first issue'
color: '7057ff'
- name: 'tests'
color: 'f06dff'
- name: 'translation'
color: '4285f4'
- name: 'wontfix'
color: 'ffffff'
- name: bug
color: d73a4a
description: Something isn't working

- name: chore
color: ffffff
description: Build process or auxiliary tool changes

- name: feature request
color: 0075ca
description: New feature or request

- name: duplicate
color: cfd3d7
description: This issue or pull request already exists

- name: blocked
color: d73a4a
description: Action required to proceed

- name: dependencies
color: d93f0b
description: Dependency updates!!

- name: languages
color: 7e57c2
9 changes: 9 additions & 0 deletions .github/pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"dependencies":
- changed-files:
- any-glob-to-any-file: ["pnpm-lock.yaml"]

"languages":
- changed-files:
- any-glob-to-any-file:
- "src/languages/*"
- "src/languages/**/*"
41 changes: 0 additions & 41 deletions .github/workflows/continuous-integration.yml

This file was deleted.

24 changes: 11 additions & 13 deletions .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: Label sync
name: Label Sync

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/labels.yml'
branches: [main]
paths: [".github/labels.yml"]

jobs:
label-sync:
name: Label sync
sync:
name: Label Sync
runs-on: ubuntu-latest
if: github.repository_owner == 'apteryxxyz'
permissions:
contents: read
issues: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Label sync
uses: crazy-max/ghaction-github-labeler@v4
- name: Sync labels
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading