Skip to content

fix(clerk-js,types): Warn about publicUserData.profileImageUrl deprecation warning#1812

Merged
dimkl merged 1 commit intomainfrom
fix-shared-nested-props-deprecation
Oct 2, 2023
Merged

fix(clerk-js,types): Warn about publicUserData.profileImageUrl deprecation warning#1812
dimkl merged 1 commit intomainfrom
fix-shared-nested-props-deprecation

Conversation

@dimkl
Copy link
Copy Markdown
Contributor

@dimkl dimkl commented Oct 2, 2023

Description

To support the nested property deprecation we introduced a class to handle loading the PublicUserData and added a deprecation warning on that class profileImageUrl property. This change was introduced based on the example of how the OrganizationMembership loads the Organization data.

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/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore

@dimkl dimkl self-assigned this Oct 2, 2023
@dimkl dimkl requested a review from a team as a code owner October 2, 2023 11:12
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Oct 2, 2023

🦋 Changeset detected

Latest commit: c077efc

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

This PR includes changesets to release 12 packages
Name Type
@clerk/clerk-js Patch
@clerk/types Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/backend Patch
@clerk/fastify Patch
gatsby-plugin-clerk Patch
@clerk/localizations Patch
@clerk/nextjs Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch

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

@dimkl dimkl force-pushed the fix-shared-nested-props-deprecation branch from 67f159e to ea69ca3 Compare October 2, 2023 11:14
Comment on lines +14 to +16
import { BaseResource } from './Base';
import { Organization } from './Organization';
import { OrganizationPublicUserData } from './OrganizationPublicUserData';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
import { BaseResource } from './Base';
import { Organization } from './Organization';
import { OrganizationPublicUserData } from './OrganizationPublicUserData';
import { BaseResource, Organization, OrganizationPublicUserData } from './internal';


import { unixEpochToDate } from '../../utils/date';
import { BaseResource } from './Base';
import { OrganizationPublicUserData } from './OrganizationPublicUserData';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
import { OrganizationPublicUserData } from './OrganizationPublicUserData';
import { OrganizationPublicUserData } from './internal';

@dimkl dimkl force-pushed the fix-shared-nested-props-deprecation branch from ea69ca3 to 5b93b39 Compare October 2, 2023 11:44
@dimkl dimkl enabled auto-merge October 2, 2023 11:47
@dimkl dimkl force-pushed the fix-shared-nested-props-deprecation branch from 5b93b39 to 2814252 Compare October 2, 2023 11:50
@clerk-cookie clerk-cookie removed the types label Oct 2, 2023
@dimkl dimkl force-pushed the fix-shared-nested-props-deprecation branch from 2814252 to 3403ccf Compare October 2, 2023 12:01
…ation warning

To support the nested property deprecation we introduced a
class to handle loading the PublicUserData and added a
deprecation warning on that class profileImageUrl property.
This changed was introduced based on the example of how the
OrganizationMembership loads the Organization data.
@dimkl dimkl force-pushed the fix-shared-nested-props-deprecation branch from 3403ccf to c077efc Compare October 2, 2023 12:04
@dimkl dimkl added this pull request to the merge queue Oct 2, 2023
Merged via the queue into main with commit 71bb1c7 Oct 2, 2023
@dimkl dimkl deleted the fix-shared-nested-props-deprecation branch October 2, 2023 12:21
@clerk-cookie clerk-cookie mentioned this pull request Oct 2, 2023
@clerk-cookie
Copy link
Copy Markdown
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants