Commit graph

16 commits

Author SHA1 Message Date
Damodar Lohani
196c76ac70 fix: map deprecated platform types in read endpoints for backwards compatibility
Old platform types stored in the database (e.g. flutter-web, apple-ios,
react-native-android) are now mapped to the new consolidated types (web,
apple, android, windows, linux) before being sent in API responses. This
ensures the response models' $conditions correctly select the right model
for each platform document.

Adds Platform::mapDeprecatedType() as a reusable static method and applies
the mapping in both Get and XList platform endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 07:47:42 +00:00
Damodar Lohani
db18caf739 fix: add backwards-compatible origin validation for deprecated platform types
Platform::getHostnames() and Platform::getSchemes() only handled the new
consolidated type names, causing "invalid origin" errors for projects still
using old granular types (flutter-*, apple-*, react-native-*, unity) stored
in the database. Add switch fall-through cases for all deprecated type values
and a V24 migration to convert old types to their new equivalents.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 07:31:58 +00:00
Matej Bačo
644840ec66 Refactor to new platforms interfaces 2026-03-27 13:45:58 +01:00
Matej Bačo
d3c5a425e7 Implement public platform API 2026-03-23 15:46:11 +01:00
copilot-swe-agent[bot]
b79132556c feat: add support for tauri://localhost as an allowed origin
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
2026-03-19 20:14:24 +00:00
Chirag Aggarwal
5fffae39d4 chore: update naming and add tests 2025-07-05 17:59:01 +05:30
Chirag Aggarwal
9dcb80649f fix: extension for safari 2025-07-05 10:18:40 +05:30
Chirag Aggarwal
0fb55f6312 fix: origin validation for web extensions 2025-07-05 07:59:52 +05:30
Chirag Aggarwal
72f08e281b chore: make check consistent 2025-07-03 22:39:12 +05:30
Chirag Aggarwal
431a26e151 chore: removing loggin 2025-07-03 22:37:31 +05:30
Chirag Aggarwal
172ba84ec8 chore: add logging 2025-07-03 22:25:46 +05:30
Chirag Aggarwal
b6f11144b8 chore: popular schemes 2025-07-03 21:39:23 +05:30
Chirag Aggarwal
bb9a271fa8 chore: add scheme validation 2025-07-03 16:39:41 +05:30
Chirag Aggarwal
f62c3135df add null check for platform 2025-07-03 16:26:56 +05:30
Chirag Aggarwal
c331a3caae chore: minor fixes 2025-06-25 11:00:07 +05:30
loks0n
0a4c430ae7 feat: exp scheme 2025-04-14 12:56:42 +01:00