Skip to content

Commit 294852b

Browse files
authored
Merge pull request #335 from offenesdresden/cleanup-and-modernize
Cleanup and modernize
2 parents 4480a91 + 63aee89 commit 294852b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4562
-9325
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.eslintrc.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/CI.yml

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,25 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ${{ matrix.os }}
98

109
strategy:
1110
fail-fast: false
1211
matrix:
13-
node-version: [14.x, 16.x, 18.x, 20.x]
12+
node-version: [20.x, 22.x]
1413
os: [ubuntu-latest, windows-latest, macos-latest]
1514

1615
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
24-
- name: Install Test
25-
uses: borales/actions-yarn@v4
26-
with:
27-
cmd: install
28-
29-
- name: Build Test
30-
uses: borales/actions-yarn@v4
31-
with:
32-
cmd: build
33-
34-
- name: Lint Test
35-
uses: borales/actions-yarn@v4
36-
with:
37-
cmd: lint
38-
39-
- name: dvbjs Test
40-
uses: borales/actions-yarn@v4
41-
with:
42-
cmd: test:node
43-
44-
- name: coveralls Test
45-
uses: borales/actions-yarn@v4
46-
with:
47-
cmd: coveralls
16+
- uses: actions/checkout@v4
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: npm
23+
24+
- run: npm ci
25+
- run: npm run lint
26+
- run: npm run typecheck
27+
- run: npm run build
28+
- run: npm test

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
node_modules/
22
coverage/
3-
.nyc_output/
4-
.idea/
53
dist/
64
docs/
75

8-
npm-debug.log
9-
yarn-error.log
10-
tsconfig.tsbuildinfo
6+
*.tsbuildinfo
117

12-
.DS_Store
8+
.DS_Store
9+
.direnv
10+
.idea/

.markdown-magic.config.js

Lines changed: 0 additions & 66 deletions
This file was deleted.

.prettierrc.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 7.0.0 - 2026-03-09
9+
10+
### Breaking Changes
11+
12+
- Dropped Node.js 18 support; requires Node.js 20+
13+
- Removed `coords()` function — use `findStop()` which already returns coordinates
14+
- Renamed all public interfaces: dropped `I` prefix (e.g. `IMonitor``Monitor`, `IRoute``Route`)
15+
- Tightened `coord` type from `number[]` to `[number, number]` tuple
16+
- `pins()` now throws on API errors instead of silently returning an empty array
17+
18+
### Changed
19+
20+
- Replaced axios with native `fetch`
21+
- Migrated all endpoints to VVO WebAPI
22+
- Switched to async/await throughout
23+
- Eliminated all `any` types; fully typed API responses
24+
- ESM-first package with dual ESM/CJS output via tsdown
25+
- Replaced ESLint + Prettier with Biome
26+
- Replaced Mocha + Chai with Vitest
27+
- Flattened monorepo to single package
28+
29+
### Removed
30+
31+
- `coords()` function
32+
- axios dependency
33+
- ESLint, Prettier, Mocha, Chai, Karma, nyc, and related dependencies
34+
835
## 6.0.0 - 2019-10-07
936

1037
### Added

0 commit comments

Comments
 (0)