Repository navigation
Conversation
Handle the results OSL 24 returns from db, fs, zip, json and r2 calls, rename requests timeoutMs to timeout and the s3 options to camelCase, and give the Rotur, storage ledger and Rotur app requests their 10 second timeouts in milliseconds, which OSL 24 reads timeout as. CI builds OSL at the 24.0.1 fixes this needed.
A failed findById or findOne read throws again instead of reading as a missing document, ?all= with a value that isn't a boolean answers 400 again, and the privacy test checks that the hidden list is an array.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the API from OSL 6.1.1 to OSL 24.0.1. 24.0.1 is the 24.0.0 release plus the compiler fixes in osl/.go#145, which this needed. CI builds OSL at that PR's head commit (
f5e02b2e0). Merge the OSL PR first.Changes
osl fixrewrites and syntax.osl fixrewrites,defin place of the removedfunctiontype, and the websocket globals declared before the startup code that reads them (23.0's global-order rule).findById/findOneread throws, as 6.1's implicit unwrap did, and a missing document still reads as the default.?all=with a value that isn't a boolean still answers 400.isOk()checks.timeoutMsis nowtimeout, and thes3.newkeys are camelCase.timeoutin milliseconds, where 6.1 read seconds. The Rotur, storage ledger and Rotur app requests passedtimeout: 10, so they now pass10000. Without this change they time out after 10 ms.s3.newwith the old snake_case keys throws at startup on OSL 24.json.opentakes{maxBytes: n}.resp.status, since OSL 24 responses have nosuccessfield. This is stricter than 6.1, where every response that arrived counted as a success, but nothing calls these helpers.Behaviour changes that come from OSL 24
HEADinAllow, and HEAD requests are answered by GET routes.json.Number. A game save containing1e3comes back as1000. Browsers already send numbers in that form.Version
1.7.0 → 1.7.1 (patch: toolchain move, no API change intended).
Checks
osl lsp check main.oslreports no errors, andosl testpasses all 66 files.scripts/e2e_smoke.pycompared the old 6.1.1 build with this one. Both ran 400 steps with no server errors and no failed checks. The only response difference is theHEADinAllow.Follow-ups (already on main, not changed here)
stripeRequestreadsresp.body ?? ""before checking the status. If Stripe can't be reached, the fallback'sbody: nullthrows, which needs the OSLunwrapOrfix onfix-unwrapor-object-fallback.conn.Sendin the realtime broadcast loops throws when a peer has gone. That ends the loop for everyone after it, and can stop the site heartbeat thread.defer jobs.done(), so a throw leavesjobs.wait()hanging.No screenshots: nothing visible changes.