Skip to content

fix(nextjs,remix,clerk-sdk-node,shared): Use isTruthy helper - #2002

Merged
LekoArts merged 4 commits into
mainfrom
lekoarts/sdk-755-add-istruthy-helper-function
Nov 1, 2023
Merged

fix(nextjs,remix,clerk-sdk-node,shared): Use isTruthy helper#2002
LekoArts merged 4 commits into
mainfrom
lekoarts/sdk-755-add-istruthy-helper-function

Conversation

@LekoArts

@LekoArtsLekoArts commented Nov 1, 2023

Copy link
Copy Markdown
Contributor

Description

Small QoL improvement to use an isTruthy helper for cases when we check if an env var is true. Could lead to subtle bugs if people not use the String "true" but something else that is truthy.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@changeset-bot

changeset-botBot commented Nov 1, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a55122d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
NameType
@clerk/nextjsPatch
@clerk/remixPatch
@clerk/clerk-sdk-nodePatch
@clerk/sharedPatch
gatsby-plugin-clerkPatch
@clerk/backendPatch
@clerk/clerk-jsPatch
@clerk/clerk-expoPatch
@clerk/fastifyPatch
@clerk/clerk-reactPatch
@clerk/chrome-extensionPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LekoArtsLekoArts changed the title fix(*): Use isTruthy helperfix(nextjs,remix,sdk-node-shared): Use isTruthy helperNov 1, 2023
@LekoArts
LekoArts marked this pull request as ready for review November 1, 2023 13:26
@dimkldimkl changed the title fix(nextjs,remix,sdk-node-shared): Use isTruthy helperfix(nextjs,remix,sdk-node,shared): Use isTruthy helperNov 1, 2023
@dimkldimkl changed the title fix(nextjs,remix,sdk-node,shared): Use isTruthy helperfix(nextjs,remix,clerk-sdk-node,shared): Use isTruthy helperNov 1, 2023

@dimkldimkl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Comment threadpackages/shared/src/underscore.ts Outdated
@LekoArts
LekoArts enabled auto-merge November 1, 2023 13:40
@LekoArts
LekoArts added this pull request to the merge queue Nov 1, 2023
Merged via the queue into main with commit ef2325dNov 1, 2023
@LekoArts
LekoArts deleted the lekoarts/sdk-755-add-istruthy-helper-function branch November 1, 2023 14:01
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@LekoArts@dimkl@clerk-cookie