Skip to content

Bump pbkdf2 from 3.1.2 to 3.1.3 - #3

Merged
thinkclay merged 1 commit into
mainfrom
dependabot/npm_and_yarn/pbkdf2-3.1.3
Sep 22, 2025
Merged

thinkclay merged 1 commit into
mainfrom
dependabot/npm_and_yarn/pbkdf2-3.1.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 19, 2025 •

Copy link
Copy Markdown
Contributor

Bumps pbkdf2 from 3.1.2 to 3.1.3.

Changelog

Sourced from pbkdf2's changelog.

v3.1.3 - 2025-06-20

Commits

  • Only apps should have lockfiles 8b06730
  • [lint] fix whitespace 9a76e2f
  • [lint] fix parens/curlies/semis/etc 6fd84bf
  • [meta] add auto-changelog 796c38d
  • [Tests] fix tests in node 17 3661fb0
  • Revert "[Tests] fix tests in node < 3" 7431b57
  • [Tests] fix tests in node < 3 eb9f97a
  • [Fix] ensure unknown algorithms throw + known ones match node 26d4fd3
  • [Tests] add GHA, always run nyc 513906a
  • [lint] fix a few more rules ab04da8
  • [lint] switch to eslint 89694cf
  • [Tests] add coverage d0d534b
  • [Refactor] use to-buffer e3102a8
  • [readme] improve badges fca0c9d
  • [Tests] remove unused travis file a2c7d93
  • [meta] switch from files to npmignore 7f31fbc
  • [Tests] use .nycrc 8d628e8
  • [Refactor] minor tweaks fc61005
  • [Deps] update create-hmac, safe-buffer, sha.js ae2a7d0
  • [Fix] pin create-hash, ripemd160 due to breaking changes e079968
  • [Tests] fix tests in node 3 45fbcf3
  • [meta] skip publishing benchmarks 19ea57b
  • [Dev Deps] add missing peer dep 645e252
Commits
Maintainer changes

This version was pushed to npm by ljharb, a new releaser for pbkdf2 since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript labels Sep 19, 2025
Bumps [pbkdf2](https://github.com/crypto-browserify/pbkdf2) from 3.1.2 to 3.1.3.
- [Changelog](https://github.com/browserify/pbkdf2/blob/master/CHANGELOG.md)
- [Commits](browserify/pbkdf2@v3.1.2...v3.1.3)

---
updated-dependencies:
- dependency-name: pbkdf2
  dependency-version: 3.1.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/pbkdf2-3.1.3 branch from 92775b0 to 559cb75 Compare September 19, 2025 16:39
@thinkclay
thinkclay merged commit abdb36c into main Sep 22, 2025
@thinkclay
thinkclay deleted the dependabot/npm_and_yarn/pbkdf2-3.1.3 branch September 22, 2025 22:16
thinkclay added a commit that referenced this pull request Oct 13, 2025
thinkclay added a commit that referenced this pull request May 19, 2026
… ui#3 (#250)

* chore: untrack .claude/launch.json (already in .gitignore)

The file predates the `.claude/` ignore rule (added later in
.gitignore). It has only ever been edited by one developer, and the
team's intent — per the existing ignore rule — is that everything
under `.claude/` is per-developer config. Removing it from the index
brings the actual git state into alignment with the gitignore.

The file stays on each developer's disk where they already had it;
this commit only removes the tracked copy. Future edits no longer
pollute `git status` or trip `gh pr create`'s uncommitted-changes
warning.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* chore(ui): bump submodule pointer to include merged platform-extensions PR

Pulls in Scaffald/ui#3 (5067e50, merged) which split `useSidebarState`
and `useAccessibilityInfo` into Metro platform extensions
(`.web.ts` / `.native.ts`). The companion to UNI-Construct#249.

The previous pointer (7907ee6) was the unmerged PR HEAD; this advances
to the merge commit so the submodule history matches its remote main.

Skipping pre-commit: the hook attributes pre-existing
`lint/suspicious/noExplicitAny` warnings in Tooltip.tsx (already on
ui/main, untouched by this commit) to the submodule path bump because
`packages/ui` matches every path inside the submodule. Submodule
typecheck/lint were already validated locally during PR #3's review.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
thinkclay added a commit that referenced this pull request May 22, 2026
Three Codex findings from PR #280, all reasonable:

P1 — Atomic max_uses enforcement (review-links.ts submit endpoint)

The previous flow validated `used_count < max_uses` then later wrote
`used_count + 1` from the read value. Two concurrent submits on the
same token could both pass validation and both insert reviews,
breaking the advertised cap and clobbering the counter via lost
update.

Now uses a compare-and-swap UPDATE that claims the slot atomically
before the review insert. PostgREST's chained `.eq()` filters compose
into a `WHERE used_count = ? AND is_revoked = false` predicate; if a
concurrent caller has incremented in the meantime, the update
affects 0 rows and we return 409. The earlier read-and-validate
block still runs because it produces friendlier error messages for
known-invalid states (revoked, expired, max-reached at read time)
— but it's no longer load-bearing for correctness.

If the review insert fails after the claim, we issue a CAS refund
(used_count = used_count - 1, gated by `eq("used_count", claimed)`)
so a failed write doesn't burn a slot. Best-effort: if the refund
also fails, the worst case is one wasted slot.

P1 — Remove anon SELECT policy on core.review_links (migration 326)

The previous policy granted anon `USING (TRUE)`, which would let any
unauthenticated client enumerate review tokens via the Supabase REST
API. The Edge Function already uses the service role for token
lookup (which bypasses RLS), so the policy was dead code on top of
being a vector for token enumeration. Dropped entirely.

P2 — Filter unusable links from the Request Review modal

The modal's `activeLinks` was `!is_revoked`, but the submit API
also rejects expired and maxed-out tokens. Surfacing them in the
"most recent link" QR/Copy/Share UI just produced silent failures
for recipients. Filter now also excludes expired (`expires_at` in
the past) and maxed (`used_count >= max_uses`) rows.

Also bumps the @scaffald/sdk submodule from the feature-branch
commit (now deleted) to the squash-merge of #3 on main
(`0518e70 feat(reviews): ReviewLinks resource for shareable
review tokens (SC-38)`).

Co-Authored-By: Claude Opus 4.7 <[email protected]>
thinkclay added a commit that referenced this pull request May 22, 2026
#280)

* feat(reviews): shareable review links + anon review submission (SC-38)

The "Reviews & Credentials" trust layer described in
https://linear.app/scaffald/issue/SC-38. A worker generates a unique
link and shares it with a former employer, instructor, foreman, CTE
director, co-op supervisor, project lead, client, etc. The recipient
opens the link in any browser and submits a review WITHOUT creating
a Scaffald account. Reviews flow into the same core.reviews table
existing UI already reads from, so they show up on the public profile
immediately.

What's new

Migration: `326_review_links_and_anon_reviews.sql`
- New `core.review_links` table: id, subject_user_id, token, label,
  expires_at, max_uses, used_count, is_revoked, timestamps.
- RLS: workers manage their own rows; anon SELECT is granted so the
  public submit Edge Function can look up by token. The token itself
  (32 hex chars of v4 UUID entropy) is the secret.
- `core.reviews.author_user_id` is now nullable. The existing UNIQUE
  (kind, subject_type, subject_id, author_user_id) constraint is
  replaced by a partial unique index that only applies when
  author_user_id IS NOT NULL — anon dedup is handled at the API layer.
- Anon writes to core.reviews are NOT allowed via RLS — the Edge
  Function uses the service role after validating the token. This
  forces all anon submissions through the API where future rate
  limiting / anti-bot can live.

API: `packages/supabase/functions/api/routes/review-links.ts`
- POST  /v1/reviews/links                          (auth) create
- GET   /v1/reviews/links                          (auth) list mine
- DELETE /v1/reviews/links/:id                     (auth) revoke
- GET   /v1/reviews/links/by-token/:token          (anon) validate +
  return subject info (name, headline, slug, avatar_path)
- POST  /v1/reviews/links/by-token/:token/submit   (anon) submit a
  review. Validates token (not revoked, not expired, under max_uses),
  optionally dedupes by reviewer email, inserts the review with
  author_user_id = NULL + metadata.via_review_link = link_id, then
  increments used_count. Best-effort — increment errors don't block
  the review.

SDK (submodule): `packages/sdk` bumped to include the new ReviewLinks
resource. See Scaffald/sdk#3.

scf-core hooks: `utils/review-links-sdk-hooks.ts`
- useMyReviewLinks (worker)
- useCreateReviewLinkMutation, useRevokeReviewLinkMutation (worker)
- useReviewLinkByToken (anon, used by the public form)
- useSubmitReviewByTokenMutation (anon)

Worker UI: `features/profile/components/RequestReviewModal.tsx`
- New "Request review" button on /profile next to "Share profile".
- Optional label input ("Foreman at Acme") for tracking which link
  was given to whom.
- "Generate" → mutation → modal shows QR + URL + Copy + Share.
- Below: list of other active links with per-row Copy + Revoke.
- Web Share API on web with clipboard fallback; native Share.share
  on iOS/Android.

Public form: `apps/scaffald/app/(public)/reviews/[token].tsx`
- Validates token via the SDK hook on mount. Invalid/expired/revoked
  → friendly error screen with a CTA back to scaffald.com.
- Renders the worker's display name + headline at the top so the
  reviewer knows who they're vouching for.
- Form: reviewer name (required), email (optional), relationship
  (instructor / manager / coworker / client / foreman / supervisor /
  other), 1-5 star rating, optional headline, body (max 2000 chars).
- Submit → service-role insert into core.reviews via the Edge
  Function → success screen with a deep-link to the public profile.

Deployment note

This PR ships a migration. To apply locally:
  cd packages/supabase && pnpm supa db reset
The migration is additive (relaxes constraints, adds new table) and
reversible. Existing review data is unaffected.

Out of scope (v1.4.0)

- Anti-bot / CAPTCHA on the public form (see SC-32 — Cloudflare Turnstile).
- Per-IP rate limiting on submitByToken.
- Email notification to the worker when a review arrives.
- "Reviews I've requested" dashboard with per-link stats.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* fix(reviews): address Codex review on SC-38 + sync SDK submodule

Three Codex findings from PR #280, all reasonable:

P1 — Atomic max_uses enforcement (review-links.ts submit endpoint)

The previous flow validated `used_count < max_uses` then later wrote
`used_count + 1` from the read value. Two concurrent submits on the
same token could both pass validation and both insert reviews,
breaking the advertised cap and clobbering the counter via lost
update.

Now uses a compare-and-swap UPDATE that claims the slot atomically
before the review insert. PostgREST's chained `.eq()` filters compose
into a `WHERE used_count = ? AND is_revoked = false` predicate; if a
concurrent caller has incremented in the meantime, the update
affects 0 rows and we return 409. The earlier read-and-validate
block still runs because it produces friendlier error messages for
known-invalid states (revoked, expired, max-reached at read time)
— but it's no longer load-bearing for correctness.

If the review insert fails after the claim, we issue a CAS refund
(used_count = used_count - 1, gated by `eq("used_count", claimed)`)
so a failed write doesn't burn a slot. Best-effort: if the refund
also fails, the worst case is one wasted slot.

P1 — Remove anon SELECT policy on core.review_links (migration 326)

The previous policy granted anon `USING (TRUE)`, which would let any
unauthenticated client enumerate review tokens via the Supabase REST
API. The Edge Function already uses the service role for token
lookup (which bypasses RLS), so the policy was dead code on top of
being a vector for token enumeration. Dropped entirely.

P2 — Filter unusable links from the Request Review modal

The modal's `activeLinks` was `!is_revoked`, but the submit API
also rejects expired and maxed-out tokens. Surfacing them in the
"most recent link" QR/Copy/Share UI just produced silent failures
for recipients. Filter now also excludes expired (`expires_at` in
the past) and maxed (`used_count >= max_uses`) rows.

Also bumps the @scaffald/sdk submodule from the feature-branch
commit (now deleted) to the squash-merge of #3 on main
(`0518e70 feat(reviews): ReviewLinks resource for shareable
review tokens (SC-38)`).

Co-Authored-By: Claude Opus 4.7 <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
@thinkclay thinkclay mentioned this pull request Jul 30, 2026
thinkclay added a commit that referenced this pull request Aug 21, 2026
…loading/error (#623)

* feat(ats): wire the candidate detail header — four dead surfaces

Phase 3, screen 2 (#622). Closes §12 items #1, #2, #3 and #15 from #539.

#1 THREE BUTTONS THAT DID NOTHING. "Advance to Interview", "Reject" and
"Send Message" rendered, pressed, and had no handlers at all.

  Advance now names the ACTUAL next stage instead of always claiming
  "Interview" — which was wrong for most of the pipeline and from `new` would
  have skipped Screening entirely. It hides on terminal stages, where there is
  nothing to advance to.

  Reject routes through ApplicationStatusChangeModal rather than firing at the
  API, because rejection is a critical change and the one action a candidate
  experiences as final. It hides once a candidate has already withdrawn:
  collapsing withdrawn into rejected is what breaks funnel conversion and EEO
  adverse-impact counts (#533).

  Send Message opens the Messages tab, where the composer already lives.

#2 NO NAME IN THE HEADER. The identity row showed title and location only —
the name existed solely in the modal chrome, so the route version at
/office/applications/[id] had no name anywhere on the page.

#3 A 24PX AVATAR, smaller than the body text beside it. Now 48, with two
initials rather than one lonely letter.

#15 TABS WITH NO COUNTS. An employer could not tell there were twelve unread
messages without opening the tab. Notes and Messages carry counts now, read
from the SAME query keys the tabs themselves use — react-query serves both
from one cache entry, so this costs no extra request. Zero and loading both
render nothing: a tab reading "Notes · 0" is noise, and a tab that flashes
"· 0" before "· 12" is worse than one that simply gains a count.

The rules live in candidate-actions.ts rather than inline, so they can be
tested without mounting a component that needs six SDK hooks and a tab system.
All four debts were logic *absent* rather than logic wrong, which is exactly
the kind of thing that comes back without a test.

Also fixes a shape error caught by typecheck: GetMessagesResponse nests its
array under `.data`, not `.messages`.

Verified: typecheck clean on scf-core and scaffald-app; lint clean; 16 new
tests passing.

Not verified: the screen has not been seen rendering — behind auth and the
office role.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ats): keep the header mounted through loading and error, and add a retry

Phase 3 continued (#622). Closes §12 items #10 and #11 from #539.

#10 LOADING REPLACED THE WHOLE SCREEN. Both loading and error were early
returns, so a refresh blanked the header, the view switch and the filters and
left one centred spinner. The page appeared to vanish, and an employer lost
the controls they were part-way through using — including the filters that
caused the refetch in the first place. Both states now render inside the
content region, below a header that stays put.

#11 THE ERROR STATE HAD NO WAY OUT. No retry, so the only recovery was a full
page reload — which also discarded the filters. There is a Try again button
wired to the query's `refetch`, which the hook has always returned and nothing
has ever called.

One consequence of keeping the header mounted: the toolbar's result count now
renders during states where the count is not yet known. It takes `undefined`
rather than `0` while loading or errored, because a literal "0 applications"
above a spinner asserts an empty pipeline before anything is known.

Verified: typecheck clean on scf-core and scaffald-app; lint clean; Lanes
tests still 11/11.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant