5.2.0
TREK now runs on PostgreSQL as well as SQLite, reads the booking mails you forward, follows your flights live and lets a trip owner switch addons for one trip. The database is migrated on the first start, so take a backup before updating. The apps for iPhone, iPad, Apple Watch and Android are still in a closed test, and you can join: 👉 Sign up at liketrek.com/app-test.
Highlights
- PostgreSQL 14 to 18. Set
TREK_DB_URLand TREK runs on Postgres, plugin data, backups and restores included.db:move-to-postgresmoves an existing install over without losing anything; without the variable nothing changes. - Booking mails land in their trip. Forward a confirmation to your personal address and TREK reads it, finds the trip, checks it and adds the booking with its document. Anything it is not sure about waits under Pending bookings.
- Live flight status, with no API key and no cost. Every booked flight is followed on its day through open ADS-B data: state, delay, both airports, a map with the aircraft, and a notice on take-off, landing and delays.
- Addons per trip. A trip owner turns Lists, Costs, Documents, Collab, Road trip and Tours on or off for one trip, whatever the instance says.
- A new trip PDF with a cover, a route overview, every day as a timeline and all bookings with their codes.
- More ways to keep costs: totals only, splits by shares, another currency to read the trip in, and trip files as receipts.
- Tags on places, colour-coded and owned by the trip, and places for Google My Maps as KML.
Important
Back up before updating. 5.2.0 migrates the database on its first start. Installs that pin :5.1 stay on 5.1 until you move the tag.
Note
On PostgreSQL the compose file needs Docker Compose 2.23.1 or later, and a backup restores into the same or a newer PostgreSQL major only.
Note
For plugin authors. A plugin's own database follows the same rules on SQLite and Postgres: ctx.db refuses a script that opens its own transaction (batch writes with ctx.db.tx()) and NUL characters in values (bind binary data as a Buffer). With Documents off for a trip, ctx.files works only on files attached to a booking, place or expense, and a new file needs such a link; createMockHost({ documentsAddonEnabled: false }) behaves the same.
Added
Database
- TREK runs on PostgreSQL 14 to 18 (#2984, discussion #386). Set
TREK_DB_URLand TREK uses Postgres instead of the SQLite file, plugin data included, with backups, restores anddb:move-to-postgresto move an existing install over losslessly. On both engines a row id must now be written in decimal digits, so a malformed id in a request ('5e0', '0x5') answers like an unknown one or a 400 instead of reaching a row.
Bookings and transports
- Booking mails: forward a confirmation and it lands in its trip. Everyone gets a personal forwarding address, and a trip can have its own. TREK reads the mail's machine-readable booking data, wallet passes and calendar files, and with AI everything else, finds the trip, checks dates, plausibility and duplicates, and adds the booking with its document, undoable for 7 days. Anything it is not sure about waits under Pending bookings with the reason and the ways out: add, choose a trip, save as a document, fill in yourself, discard. Self-hosted instances take mail by IMAP or a signed webhook, set up in the admin settings with a connection test. Off by default.
- Live flight status, with no API key and no cost. TREK follows every booked flight on its day through the open ADS-B feeds: the booking dialog and the phone's transport sheet show a live card with the state and the delay, both airports with planned and expected times, a small map of the real route with the aircraft on it, altitude and speed. Booking cards and day plan rows say what is happening in one line, the trip map draws the aircraft in the air, and take-off, landing and delays notify. Gate and terminal are not part of open data. An admin switch turns it off (
FLIGHT_LIVE_ENABLEDwins), and only the flight's callsign is sent to the feeds. - A download button on every attachment of a booking (#2585).
Places and map
- Tags on places, owned by the trip (#3115). Colour-coded tags to filter the places by, each recolourable for the whole trip. The place form keeps description, notes and the note for one day under one switch, opening hours have an "open 24 hours" switch, and the phone form gained phone, e-mail and opening hours.
- Places for Google My Maps as KML (#1866), from a trip and from a collection, and over MCP.
- The place inspector folds to its head (#3039), so the map stays visible while the place stays selected. Its action row is calmer: one worded day action, navigation and edit, with website and collection as icons and the rest behind "...".
- Category icons for parking, bus stops, stations, airports and fuel (#2706).
- A place with an address but no coordinates says so (#2837).
- A map setting hides the points of interest of the Mapbox basemap (#1761), and Mapbox GL is no longer marked experimental.
- Wider planner panels. The day plan and the places list can be dragged as wide as the window allows while the map keeps about a third of it, instead of stopping at 520 px.
Trip, addons and settings
- A trip owner can switch addons for one trip (#3157). Trip settings has an Addons area where the owner turns Lists, Costs, Documents, Collab, Road trip and Tours on or off for that trip, whatever the instance says. The choice holds for everyone on the trip, in the app, the public link, offline, and for the assistant and MCP; switching back drops it, and no data is deleted.
- Edit the trip right inside Trip settings (#2811), as an area beside People, Sharing and Journal. On the phone the settings open on a short list of these areas.
- A trip opens without the splash when it loads quickly, on the desktop as on the phone.
- Settings and administration on the phone follow the desktop. The admin sections match the desktop sidebar (Security and Services instead of one Settings section), and every setting the desktop offers is there too.
- Addon options sit in their addon cards (#3155): live flight status in the Trip card, the booking mail import in the Integration card, paddle water data under Tours.
- Ctrl/Cmd+Enter saves a dialog (#1303).
Costs
- Totals only, per trip (#1714). A trip can keep its costs as plain totals, with no payer, split or settling; "Split costs between travelers" in the Costs tab switches it. A trip of one shows no owing and settling at all (#2689).
- Split by shares (#1165). A custom split takes shares (5 to 4, say) beside amounts and percent, cent-exact, on the desktop and the phone.
- Read a trip in another currency (#1683) from the currency picker in the Costs tab, and leave a category out of the totals for a look without it (#2819).
- Link a trip file as a receipt (#2839). The expense editor offers the trip's pictures and PDFs, the booking's own first. A new expense starts in the trip currency (#2807).
Lists and collections
- A calmer packing list. A row shows only what is set, and a click on an item opens one small window with its list, amount, pieces packed, weight, bag, who brings it and who sees it. Templates, import, export, the order and hiding packed items sit in one menu beside Add list, on the desktop and the phone.
- Change the sharing of a whole packing list at once (#2961).
- Collections: a "want to revisit" status (#2567), a category filter on the phone (#2618), and a saved place's website, phone, price and provider ids are editable (#2646).
- The collections map has a padlock (#2010). Locked, clicking through places leaves the map where it is.
Journey, tours and road trip
- Narrow an open photo album to a date range (#2859), and a satellite base layer on every journey map, the shared page included (#2594).
- Open a tour's route in Google Maps, Apple Maps or CoMaps (#2812), on foot or by bike as the tour goes.
- The place photo on the road trip's stop sheet and stop dialog (#2629).
- The Dawarich accept dialog preselects the stay's day (#3068).
PDF, calendar and dashboard
- A new trip PDF (#3169). The cover shows the trip photo with its route drawn in the day colours and the trip's figures; an overview follows with the route map, every day at a glance and all bookings and stays with their codes. Each day is a timeline with a strip of its photos, the night's stay and a card per place with rating, tags, the opening hours of that day, contact details and who goes.
- A large text switch for the trip PDF (#2817), and place photos baked in at thumbnail size, so a long trip no longer prints to tens of megabytes (#1501).
- Calendar feeds can leave out the per-day summary events (#2602).
- The dashboard atlas shows the most recently visited countries first (#2648).
Sign-in, API and deployment
- OIDC-only instances can keep the login page (#2925) instead of redirecting straight to the provider.
- MCP can manage a trip's shared links (#3076), set the dashboard world clocks (#3044) and page through a long collection compactly (#2647).
- Configurable PVC access modes in the Helm chart (#3061).
Supporting TREK
- TREK can now be supported monthly on Patreon, beside Buy Me a Coffee and Ko-fi: in the release notice, in About and in the admin GitHub panel. Like the other donation links it stays hidden inside the iOS and Android apps.
Help center
- The help center is up to date again. Every "How do I" guide was checked against this release, its text and pictures redone where the app had moved on, in every language, and new guides cover the trip assistant and setting up AI, tags on places, booking mails, live flight status, the new cost options, per-trip addons, KML export and more.
Fixed
Security
- Public trip and journey links share only what the owner chose (#3148). A travel-only trip link no longer carries day titles or day notes, the category list holds only the categories the shared places use, the public journey payload carries no storage paths or internal fields, journey entry media are no longer reachable by file name once a link is revoked, and every public photo or video goes out without its GPS location. That copy is made on its first view and kept beside the original, so shared media take more disk space. An Immich video with a location plays on a public link only when Immich serves a transcoded copy; set Immich's transcode policy to all videos to share untranscoded clips. Thanks to Paulino Michelazzo (pmichelazzo) for the report.
- An account an admin created no longer receives a colleague's SSO sign-in after an upgrade from 4.x. The 5.0.0 upgrade only recognized an address that a self-registered account had changed itself, so an account made in Admin > Users that had moved its address to a colleague's before the upgrade still had that colleague's verified SSO sign-in linked into it. Such a change now counts too. Thanks to EZO Labs Security for the report (GHSA-mvrg-q9p8-whp4).
- A public API key no longer opens a full sign-in session. A request with an API key and a session cookie past half its lifetime renewed that cookie without checking it, so whoever held a read-only key could come away with a session of the key's owner. The cookie is now verified before it is renewed, and a request an API key authenticated renews nothing. Thanks to Akihiro Omori (Mojashi) for the report (GHSA-jjrp-qrgw-hh6x).
- hono 4.13.18. Raised the floor of the MCP server's HTTP library for its validator and routing security fixes.
Planner and bookings
- Adding a day before the start of a trip moved the plan (#3119). With bookings kept on their dates, places, notes and bookings now stay on their days and the last day no longer ends up empty; road trip day boundaries stay on their days too.
- Transport times did not show their date (#3122). The phone's transport sheet and the desktop transport dialog name the calendar day beside the times, and the arrival day of an overnight trip.
- A place without a time fell below the evening flight when dragged between two bookings (#3100). On a day with a hotel check-in the place now stays where it was dropped, with the drag and with the arrow buttons.
- A flight with a stop showed the wrong seat (#3158). Each leg now shows its own seat, in the app, the PDF, the watch and the Wallet pass.
- The public transport search offered the wrong places (#3113). Switching the day now clears the previous day's stops, search and results, every place planned on that day and every stay covering it can be picked, and saved places that match what you type come before the search results.
- AirTrail stopped syncing with AirTrail 3.13 (#3114). TREK now uses AirTrail's new API when the instance has it and the old routes otherwise, so linked flights keep their sync. A key created in AirTrail 3.13 or later needs the scopes listed under Settings, Integrations; a missing scope never unlinks a flight.
- "Vorhandene verknüpfen" broke onto two lines in a booking's file buttons. The labels now stay on one line, and the German one reads "Datei verknüpfen".
- Numbered lists in notes read 1. 1. 1. (#3172). The numbered list button now continues from the item above, and a selection over several lines gets a number, bullet or quote on every line.
Road trip and maps
- The drive between connected days took the wrong colour (#3123). It now takes the arrival day's colour on every map, matching the road trip panel.
- A hire car picked up after a night set off from the wrong place (#2993). The road trip now starts that day's drive from the stay.
- A rental car's drive to its return and away from its pickup was missing (#3167). Both now show on the phone, the desktop and the map.
- A road trip stay belonged to the place, not the visit (#3092). The same place planned twice now keeps a stay per visit; visits without their own stay keep reading the place's, so existing trips do not change.
- A road trip stage on the phone showed every ride of the whole drive (#3154). It now shows only its own.
- Lines across the date line went round the whole world on the Journey map (#3080). Recorded tracks, plan routes, flights and the lines between entries now take the short way on both map renderers.
Places and collections
- A place open around the clock read as closed six days a week. Its looked-up hours now open every day, and the place says "Open 24 hours".
- Pins on a collection's map were all grey (#3073). They now show the category's colour and icon, like on the trip map.
- A place added from a collection inside a trip lost its category (#3074). A picked place now brings the category it was saved under.
- A search did not find a name typed without its accents (#3075). "Obidos" now finds "Óbidos", in the places list, a collection, the saved-place picker, the import from a trip and the location picker.
- The add-place search looked broken. It is one field with its search button inside, and the dialog opens in it.
Phone
- On a phone the assistant sat alone behind the "..." button. It is now an entry of the dock, and Settings > Appearance > Mobile moves it between the bar and More like the pages.
- The place details sheet cut the place name to one line (#3140). It now wraps as on the desktop.
- Transit stop names were cut off (#3139). They now wrap in every detail view, and each ride shows its arrival as well as its departure.
- Stay names in the day card were cut to a letter or two (#3149). The chip strip now scrolls sideways instead.
- A stay could not be added to a trip that had no place yet. The accommodation sheet now offers to add one right there.
Everywhere else
- The assistant failed on every message after its first answer (#3094). The earlier answer now goes back to the AI provider exactly as it saw it, so follow-ups and "Try again" work with every provider.
- Notifications opened the wrong page (#3079). A Vacay invite now opens Vacay and a chat message the trip's chat, on the phone too.
- Deselecting the last weekend day in Vacay brought back Saturday and Sunday (#3078).
- Nobody else could be put down as bringing a shared packing item (#3098). The item menu now lists every traveller to tick on or off.
- Exporting a large book from Journey Studio failed (#3102). The export now loads the photos a few at a time and shows the progress on the Save button.
- A long note detail ran out of its card on a shared trip link (#3082).
- Calendar feeds listed a booking linked to a plan stop twice, an hour off (#3150). It now takes the stop's time zone and place, and the stop is not repeated.
- A world clock for an Etc/GMT zone showed the opposite offset (#3175). Those zones count westward as positive, so the clock picked as GMT+4 ran four hours behind UTC; its name and the zone picker now show the real offset.
- The Atlas page and /api/v1/stats showed different city and place counts (#3137).
- Admin notification mails linked to the user settings (#2960). Their "Manage preferences" link now opens the admin panel's notification settings.
- Installs upgraded from before 5.0 lacked columns their history skipped (#3127). Turning on MFA failed there; a migration now adds every such column, and a start names anything still missing.
- The container hung at startup under rootful Podman (#3135). It now drops privileges with setpriv, which needs no signal.
Internal
Work on the native iOS and Android apps, which are in a closed test and do not ship with this release.
- Native app: a Flight widget and a boarding-pass Live Activity. The widget shows the trip's next flight or the one in the air with a countdown; around a flight the travel day's Live Activity turns into a boarding pass, in the Dynamic Island too.
- Native app: starts without its server. Android keeps the server's UI on the device and starts from it whenever the server does not answer, with the trips from the offline store; the check after an app update no longer locks the app out offline.
- Native app: the widgets turn to the next trip day by themselves (#3131).
- Native app: nothing sits under an iPhone Duo's status capsule (#3130, #3166).
- Native app: every widget and Live Activity tap opens its page, also when iOS had ended the app's page in the background.
- Native app: a running TREK Cloud subscription is found on a fresh install too, and App Review builds can buy TREK Cloud while orders are closed.
- Native app: a page that fails with an HTTP error is logged with its address and who answered it (#3170, #3014), so a report can tell the server, a proxy and the phone apart.
- Native app: smaller fixes. 12-hour times in the widgets' day timeline are no longer cut off, the entry field of a list stays above the keyboard, a tap beside a field closes the keyboard, and the Apple Watch icon has a light background.
Tests, CI and dependencies.
- CI runs once per push to dev (#3128) and was restructured for the Team plan (#3126), so a run reaches ci-ok in about ten minutes instead of up to 44.
- Server test suites remove only the uploads they stored (#3152).
- Dependency updates (#3106, #3107, #3108, #3109, #3110, #3112). dotenv 18 and the minor and patch group. Mapbox maps shape right-to-left text themselves since mapbox-gl 3.33, so the separate RTL text plugin is gone.
Sponsor
TREK runs on dataforest cloud. dataforest builds cloud servers made in Germany: enterprise hardware and a premium network in Frankfurt, up to 20 TB of traffic included, block storage, one-click apps and billing by the hour. They sponsor the servers behind TREK's public services, and they are a great home for your own TREK too. Get started with dataforest cloud.
