Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cd76f01
chore: project refactor
hyanmandian Jan 26, 2025
08417a2
fix: adjust ci
hyanmandian Jan 26, 2025
bba7cb6
fix: adjust ci
hyanmandian Jan 26, 2025
fcfcbe9
fix: adjust ci
hyanmandian Jan 26, 2025
bb96db1
fix: adjust ci
hyanmandian Jan 26, 2025
f5a1dd7
fix: adjust ci
hyanmandian Jan 26, 2025
954e953
feat: add docs to cities data
hyanmandian Jan 26, 2025
158778d
feat: add public api test
hyanmandian Jan 26, 2025
84ee6d2
feat: add all formatters
hyanmandian Feb 23, 2025
3cdb483
fix: adjust project structure and include some more utils
hyanmandian Nov 2, 2025
703a4ac
fix: include some more utils
hyanmandian Nov 2, 2025
862b39d
fix: include some more utils
hyanmandian Nov 2, 2025
b18bb03
fix: include some more utils
hyanmandian Nov 2, 2025
c85a92a
fix: include some more utils
hyanmandian Nov 2, 2025
a894f40
fix: include some more utils
hyanmandian Nov 2, 2025
5553b2e
fix: include some more utils
hyanmandian Nov 2, 2025
3c6619f
chore: update dependencies
hyanmandian Nov 2, 2025
2c0ff1a
fix: include some more utils
hyanmandian Nov 2, 2025
9c9b5af
fix: include some more utils
hyanmandian Nov 2, 2025
97f55d7
fix: adjust format
hyanmandian Nov 2, 2025
e9e2c1b
fix: include some more utils
hyanmandian Nov 2, 2025
f871594
fix: include some more utils
hyanmandian Nov 2, 2025
e185a51
docs: add migration guide
hyanmandian Nov 2, 2025
cb13d33
fix: adjust lint
hyanmandian Nov 2, 2025
0ce3fb5
chore: update site
hyanmandian Nov 2, 2025
5a0309b
fix: include some more utils
hyanmandian Nov 2, 2025
c3cfe0d
feat: include some more utils
hyanmandian Nov 2, 2025
9e9cd6a
fix: adjust public api tests
hyanmandian Nov 2, 2025
38e06a4
fix: adjust all format errors
hyanmandian Nov 2, 2025
8df157c
feat: include some more utils
hyanmandian Nov 2, 2025
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
465 changes: 186 additions & 279 deletions .all-contributorsrc

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

34 changes: 14 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build

name: build

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

jobs:
build:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- name: Checkout code
uses: actions/checkout@v4

- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Run build
run: bun run build
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check

on: [push, pull_request]

jobs:
check:
name: Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Run tests
run: bun run ci
74 changes: 74 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Tests

on: [push, pull_request]

jobs:
test-node:
name: Test on Node.js (${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

test-bun:
name: Test on Bun
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Run tests
run: bun test

test-browsers:
name: Test on Browsers (${{ matrix.browser }})
runs-on: ubuntu-latest
strategy:
matrix:
browser: [edge, chrome, firefox]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: npm install

- name: Run tests in ${{ matrix.browser }}
run: npm run test:${{ matrix.browser }}-browser

test-safari:
name: Test on Browsers (safari)
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: npm install

- name: Run tests in Safari
run: npm run test:safari-browser
15 changes: 0 additions & 15 deletions .release-it.json

This file was deleted.

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

This file was deleted.

28 changes: 28 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!dist/**/*.js", "!dist/**/*.map", "!coverage", "!docs"]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
723 changes: 723 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* [Getting Started](getting-started.md)
* [Utilities](utilities.md)
* [Migration v1 to v2](migration-v1-to-v2.md)
Loading