liblanis 0.2.0
liblanis: ^0.2.0 copied to clipboard
Build apps and scripts against SPH without Flutter - batteries included.
0.2.0 #
-
Separate refresh cadence from offline retention: default applet snapshots remain available for seven days, with their original fetch dates preserved.
-
Recognize native HTTP transport errors and transient gateway failures for cache fallback. Keep loaded data during failed foreground refreshes, without treating authentication or parsing failures as successful cache hits.
-
Migrate existing timetable/substitution deadlines once and retain already-loaded legacy applet data on transport failure without attempting a new login.
-
Parse parent course-detail homework marked by a home icon without student completion controls, so the app can show its homework box. Read detail completion status only from that response; do not transfer overview status.
-
Add
@Cacheable, generated cached companions, detached typed cache requests,MaybeCacheResult, and session-independent availability and cache-only reads. -
Persist versioned per-account results with hard expiry and guarded writes after cache clearing, including across database connections.
-
Migrate timetable homes, parent child plans, and unfiltered substitutions to the generic cache. Preserve metadata through nested cached reads and fall back only on offline or transport failures.
-
Add
TimetableParentParserwith a sealedParentTimetableHomeresult: a child selection or a loaded plan with its pupil ID. Follow single-child redirects and load selected plans through the shared timetable parser. -
Enable parent timetable support when offered by the portal, select the parent parser in
EasyParsers, and exposetimetableParentParserProvider. -
Cache both parent timetable result variants and add anonymized fixtures and regression tests for child selection, redirects, request counts, and offline restoration.
-
Add a read-only
LessonsParentParserwhosegetHome()returns a completeParentLessonsOverview, grouped by child, in one request. Course details load on demand. -
Select the parent lessons parser in
EasyParsersand exposelessonsParentParserProviderfor Riverpod clients. -
Parse parent course and attendance sections per child, expose
pupilId, and preserve pupil and semester URL parameters. -
Read parent homework status labels so open homework remains open without a student checkbox.
-
Add anonymized parent overview fixtures from live one-child and two-child tests, plus regression coverage for pupil isolation and request counts.
0.1.5 #
- Parse older student course folders and expose
Lesson.isOlder, with a default offalse. Preserve semester parameters in course URLs. - Fix student course details with unlinked teacher names, optional tabs, and compact markup. Match attendance records by exact course ID.
- Fix submission permissions, pages without upload forms, attachment filename encoding, and per-file upload result parsing.
- Add offline student parsing methods for overview, course detail, submission, and upload result documents.
- Preserve error details and original stack traces in lesson, conversation, and calendar operations while keeping exceptions within the
LanisExceptionhierarchy. - Add student parser regression fixtures, an anonymized bug report, and mutation tests.
0.1.4 #
- Expose the head message's sender as
Conversation.senderso clients can address private replies to the correct recipient. - Document that replies in private-answer-only conversations must target that sender to avoid reaching every participant.
0.1.3 #
- Serialize session authentication calls to prevent concurrent changes to shared cookies and encryption keys.
- Report failed applet reauthentication through the fetch response and unexpected-error hook.
- Mark the connection as disconnected when a keep-alive request returns HTTP 503.
- Preserve the original error type and stack trace for calendar event and conversation detail failures.
- Add connection and login timeouts, and use an offline HTTP adapter in unit tests to avoid waiting on the live portal.
0.1.2 #
- Stop duplicating substitution days when a personal-plan shell uses underscore
data-tagvalues together with#tagDD_MM_YYYYpanels. - Add a production-shaped synthetic fixture and parser tests for that layout.
0.1.1 #
- Update the pub.dev package description and README listing.
0.1.0 #
- Initial package extract of the SPH client stack from lanis-mobile.
- Riverpod providers for accounts, session, connection status, settings, and applets.
EasyLanisClientimperative API without Riverpod.- Unified optional
sqlite3database (in-memory by default). - Injectable
SecretStore, configurableStorageManager, English-only exceptions. - Fixture-driven hardening for substitutions, timetable, and calendar parsers.