From 3480a3d766580b987f010dd1b511a4cfec829431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 28 May 2026 07:51:56 +0200 Subject: [PATCH] chore(deps): add rrule for richer medication scheduling cadences The v1.5 medication-scheduling work needs to model monthly / quarterly / yearly cadences plus arbitrary `INTERVAL` patterns. The existing string encoding caps the interval at 4 weeks and has no representation for month-level recurrence at all. RFC 5545 RRULE is the industry standard for this and the `rrule` package is the battle-tested TypeScript implementation (used by Google Calendar sync, EventKit translation layers, FHIR servers). Pin the latest stable. The library's release cadence has slowed since 2022; a future migration to `rrule-temporal` is worth tracking once Node 24 LTS lands, but the existing surface covers HealthLog's needs without modification. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 1 + pnpm-lock.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/package.json b/package.json index 07d671f7f..b2e5f874c 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "react-dom": "19.2.5", "react-hook-form": "^7.76.1", "recharts": "^3.8.1", + "rrule": "^2.8.1", "sax": "^1.6.0", "sonner": "^2.0.7", "tailwind-merge": "^3.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a23f43971..87512e90e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -98,6 +98,9 @@ importers: recharts: specifier: ^3.8.1 version: 3.8.1(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react-is@16.13.1)(react@19.2.5)(redux@5.0.1) + rrule: + specifier: ^2.8.1 + version: 2.8.1 sax: specifier: ^1.6.0 version: 1.6.0 @@ -5642,6 +5645,9 @@ packages: resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} engines: {node: '>= 18'} + rrule@2.8.1: + resolution: {integrity: sha512-hM3dHSBMeaJ0Ktp7W38BJZ7O1zOgaFEsn41PDk+yHoEtfLV+PoJt9E9xAlZiWgf/iqEqionN0ebHFZIDAp+iGw==} + run-applescript@7.1.0: resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} engines: {node: '>=18'} @@ -12151,6 +12157,10 @@ snapshots: transitivePeerDependencies: - supports-color + rrule@2.8.1: + dependencies: + tslib: 2.8.1 + run-applescript@7.1.0: {} run-parallel@1.2.0: