Repository navigation
fix(analytics): upgrade next, add analytics CI, whitespace-only gists are empty, fix antimeridian geohash test - #1693
Merged
Conversation
…pace-only gists as empty, fix antimeridian geohash test (PinSpace-Org#1582 PinSpace-Org#1583 PinSpace-Org#1584 PinSpace-Org#1585)
|
@TomikeDS Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
2 tasks
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.
What changed
analytics/package.json,package-lock.json:nextandeslint-config-next15.4.6 -> 15.5.29 (the non-major fix npm reports), with@next/env,@next/eslint-plugin-nextand the eight@next/swc-*packages moved to the same version in the lockfile. Thedeprecatednote on the oldnextentry is gone with it..github/workflows/analytics.yml(new): path-filtered toanalytics/**(and the workflow itself),permissions: contents: read, a concurrency group,workflow_dispatch, same action versions as the other workflows; runsnpm ci,npm run typecheck,npm run lint,npm test,npm run build.analytics/src/lib/content-length.ts(+ test): a gist that is only whitespace (spaces, tabs, newlines, NBSP) now counts as empty; real content is still measured untrimmed. The existing 'counts empty content separately' test is kept as is, and two tests were added.analytics/src/lib/geohash.test.ts: the antimeridian test now uses longitude 179.99, inside the easternmost precision-5 cell (asserted withbounds().maxLon === 180), so the east neighbour must wrap; added the western edge (-179.99) and the diagonal neighbours.Not done / partial / untested
npm install/npm ci,npm audit, typecheck, lint, tests or build, and noactionlint.next-family packages; their dependency lists did not change apart fromsharp's range onnext). Please regenerate withnpm installifnpm cicomplains. I did not re-run the audit, so the critical finding being cleared is expected from the version, not confirmed. The three high findings (postcss,sharp,source-map-js) may remain:nextpins its ownpostcss@8.4.31. Typecheck/build "not worse than before" is unchecked.main).emptyCountfrom this function.Merge notes
analytics/src/lib/content-length.tsandgeohash.test.tsare separate from the other open analytics PRs;analytics/package-lock.jsoncould conflict with any PR that also touches dependencies.Closes #1582
Closes #1583
Closes #1584
Closes #1585