4.0.4 (2024-08-14)
4.0.3 (2024-07-01)
4.0.2 (2023-11-17)
4.0.1 (2023-07-23)
4.0.0 (2023-07-18)
- Drop support for Node.js older than v18.16.1 (#198)
- deps: Bump dependencies (#200) (50e38ae)
- deps: update dependency axios to v1 (#139) (d46252d)
- Export types with "export type" for clarity (#197) (efb96e6)
- Use non-deprecated Cheerio load function (#162) (5081869)
3.2.0 (2022-09-01)
3.1.0 (2022-08-31)
- data: Update canteen and line names (#125) (e3c40bc)
- Perform line name matching case-insensitively (#123) (e856efd)
3.0.2 (2022-06-18)
- jsonapi: Update endpoint URLs to fix infinite redirect errors (#97) (7d598c2)
- simplesite: Update URL and page structure after SW-KA redesign (#99) (fccb07b)
3.0.1 (2022-06-16)
3.0.0 (2022-04-22)
Breaking changes
- feat: Convert everything to ESM (#79)
- feat: Declare 'canteens' and 'legend' dataset directly in TypeScript (#80)
- feat(data): Move alt. name "Vegane Linie" to l2 in (#78)
Additionally:
- Configure Renovate (#27)
- fix(deps): update dependency axios to ^0.26.0 (#52)
- test: Add test case covering remainder of simplesite-parse (#57)
- lots and lots of dev dependency updates and some improvements to CI workflows
- simplified packaging
2.1.5 (2021-12-08)
- feat(data): Add alt. name "Vegane Linie" for schnitzelbar (#26)
2.1.4 (2021-11-29)
- chore(ci): Add "tsc --noEmit" to lint script (#23)
- feat(data): Add alt. name "Cafeteria 11-14 Uhr To-Go" (#24
- feat(data): Switch "Cafeteria 11-14 Uhr" and "To-Go" variant (#25)
2.1.3 (2021-11-22)
- feat(data): Add names "Linie 2 Gut & Günstig", "Linie 5 Vegane Linie" (#22)
2.1.2 (2021-11-16)
2.1.1 (2021-11-16)
- feat(data): Add alt. name "Schnitzel-Burger-Bar" (#19)
2.1.0 (2021-10-14)
- chore: Update dependencies (#14)
- chore: Remove types from JSDoc comments in favor of TypeScript (#15)
- feat(data): Add alt. name "Linie 2 vegane Linie" (#16)
- feat(data): Add line l5 and add alt. name "Linie 4" for l45 (#17)
- chore: Update dependencies and fix Axios-related code (#18)
2.0.1 (2021-08-15)
- Add alternative line name "Linie 1 BOOK A MENSA" (#13)
2.0.0 (2021-07-07)
This is effectively a maintenance, but with a breaking change in how the library is imported. There is no more default export.
You need to do the following:
import { fetchMensa } from 'ka-mensa-fetch'
// or for non-transpiled JavaScript:
const { fetchMensa } = require('ka-mensa-fetch')
Additionally, fetchSessionCookie
is now exported by name as well:
import { fetchSessionCookie } from 'ka-mensa-fetch'
// or for non-transpiled JavaScript:
const { fetchSessionCookie } = require('ka-mensa-fetch')
TypeScript typings for every relevant interface/class are included. See README.md for a list of all the types.
1.3.1 (2021-06-12)
- Add alternative line name "Linie 2 BOOK A MENSA" (ff9fab8)
1.3.0 (2021-06-12)
This release marks the switch to TypeScript.
1.2.2 (2021-02-26)
1.2.1 (2020-11-11)
- Add alternative name "Linie 1 To-Go" (87597c3)
1.2.0 (2020-10-25)
- Use 'simplesite' descriptor instead of 'handicap' (084cc9a)
- Please switch! The new terminology is meant to be more inclusive.
- For now, 'handicap' still works, but is deprecated and will be removed in a major release.
- Fix
isDateSupported
operand order and reduce range (64916ea) - Minor refactors (64bb9a9, 1fa2764, 86d344c)
- More unit tests, including for request modules (21fc7c7, e3a121f, 86d344c)
- Dependency updates (1c6102f)
1.1.3 (2020-10-19)
- Add alternative name "Linie 4/5 G&G-Gerichte To-Go" (eedffd2)
- Add alternative name "[pizza]werk Pizza 11-14 Uhr To-Go" (eedffd2)
1.1.2 (2020-10-07)
- Add alternative name "[pizza]werk Pizza 11:30-13:30 Uhr To-Go" (04f90a9)
- Update dependencies (1c65e63)
1.1.1 (2020-10-05)
- Add alternative name "[pizza]werk Pizza 11:30-14:30 Uhr To-Go" (ba06b24)
- Misc. refactoring (e74355c, 57c79db)
1.1.0 (2020-09-11)
- Add option for request parallelization (b5861cf)
- Retrieve up-to-date canteen+line names from JSON API (#2) (795f34c)
- Fix wrongly transcribed short properties in
legend.json
(8f6eade) - Add more alternative line names (ba99451)
- Fix semicolon error in README.md examples (08a94c7)
1.0.0 (2020-09-02)
- Implement parser & request modules for JSON API (419fe80, 404b844, fedf42b, c50dfd0)
- Add 'source' option to main module for request/parser selection (7c68dd8)
- Increase resilience to fake headlines in handicap-parse (a4cdb35)
- Add unit tests for handicap-parse module (bc81f47, 664c6f7, 427417b)
- Add reference parameter to handicap-parse (e9f8de1)
- Use cheerio map function to compact parsing (cb6d3e4)
- Update dependencies (326a29e, 1ac07ca, 567d998)
- Update README.md (26ae2e2)
0.5.3 (2020-06-30)
- Update dependencies (969cb99, 24a2dbf)
- Build on Node 14 instead of 13 (37c9b58)
- Update JSON files to use 2 space indentation (324a799)
- Fix datestamp parsing for June/July border (97d71a5, 9fe885b)
0.5.2 (2020-05-24)
- Add alternative name "[kœri]werk 11-14:30 Uhr" (550c2f9)
0.5.1 (2020-05-17)
- Add alternative name "[kœri]werk 11-14 Uhr" (35e4abc)
0.5.0 (2020-05-06)
- Add resolution for alternative names (5a12f8c)
0.4.0 (2020-05-06)
- Update dependencies (5dfc9e5)
- Improve README.md (2b0921c)
- Implement session cookie support (7284a61)
0.3.3 (2020-03-19)
0.3.2 (2020-03-19)
- Add check for date validity in parser (9cbc59f)
0.3.1 (2020-01-28)
- Fix
REQUEST_MAX_LENGTH
too small (acc6373)
0.3.0 (2020-01-26)
- Drop Node 8 support; update dependencies (25692bf)
- Implement request timeout, max response size (694cbe5)
- Support not passing options parameter (e52d7dc)
0.2.1 (2019-12-30)
- Fix nyc mistakenly added as core dependency; add .npmignore (e15295b)
0.2.0 (2019-12-30)
Breaking
- Use 0-indexed months; add plausibility check (c0cef48)
Style
- Split handicap-parse into testable modules (c9163d5, b6828f1)
- Improve handicap-parse input error handling (efc9ca6)
Misc
- Setup CodeClimate (coverage, maintainability) (13b3c51)
0.1.1 (2019-12-27)
- Improve year deduction (ca96f2e)
0.1.0 (2019-12-01)
Initial release, supporting "handicap view" data source and basic date/canteen querying capabilities. Also has packaged canteens.json
and legend.json
files.