Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deferred: RenamegetStackHook togetErrorHook#5211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mgol merged 1 commit intojquery:mainfrommgol:get-error-hook
Mar 14, 2023

Conversation

mgol
Copy link
Member

@mgolmgol commentedFeb 15, 2023
edited
Loading

Summary

RenamejQuery.Deferred.getStackHook tojQuery.Deferred.getErrorHook to indicate passing an error instance is usually a better choice - it works with source maps while a raw stack generally does not.

In jQuery3.7.0, we'll keep both names, marking the old one as deprecated. In jQuery4.0.0 we'll just keep the new one. This change implements the4.0.0 version; PRgh-5212 implements the3.7.0 one.

Fixesgh-5201
Refgh-5212

Checklist

@mgolmgol added this to the4.0.0 milestoneFeb 15, 2023
@mgolmgol self-assigned thisFeb 15, 2023
@mgolmgol requested a review fromdmethvinFebruary 15, 2023 13:18
mgol added a commit to mgol/jquery that referenced this pull requestFeb 15, 2023
Rename `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`to indicate passing an error instance is usually a better choice - itworks with source maps while a raw stack generally does not.In jQuery `3.7.0`, we'll keep both names, marking the old one asdeprecated. In jQuery `4.0.0` we'll just keep the new one. Thischange implements the `3.7.0` version; PRjquerygh-5211 implementsthe `4.0.0` one.Fixesjquerygh-5201Closesjquerygh-5212Refjquerygh-5211
mgol added a commit to mgol/jquery that referenced this pull requestFeb 15, 2023
Rename `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`to indicate passing an error instance is usually a better choice - itworks with source maps while a raw stack generally does not.In jQuery `3.7.0`, we'll keep both names, marking the old one asdeprecated. In jQuery `4.0.0` we'll just keep the new one. Thischange implements the `4.0.0` version; PRjquerygh-5212 implementsthe `3.7.0` one.Fixesjquerygh-5201Closesjquerygh-5211Refjquerygh-5212
@mgol
Copy link
MemberAuthor

A few JS Bins to test what gets passed to the hook, justifying the name change:

@mgol
Copy link
MemberAuthor

PR to@dmethvin'sjquery-deferred-reporter:dmethvin/jquery-deferred-reporter#5

@mgolmgol added the Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labelFeb 24, 2023
Copy link
Member

@dmethvindmethvin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@timmywiltimmywil removed the Discuss in MeetingReserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labelMar 13, 2023
Rename `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`to indicate passing an error instance is usually a better choice - itworks with source maps while a raw stack generally does not.In jQuery `3.7.0`, we'll keep both names, marking the old one asdeprecated. In jQuery `4.0.0` we'll just keep the new one. Thischange implements the `4.0.0` version; PRjquerygh-5212 implementsthe `3.7.0` one.Fixesjquerygh-5201Closesjquerygh-5211Refjquerygh-5212
mgol added a commit to mgol/jquery that referenced this pull requestMar 14, 2023
Rename `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`to indicate passing an error instance is usually a better choice - itworks with source maps while a raw stack generally does not.In jQuery `3.7.0`, we'll keep both names, marking the old one asdeprecated. In jQuery `4.0.0` we'll just keep the new one. Thischange implements the `3.7.0` version; PRjquerygh-5211 implementsthe `4.0.0` one.Fixesjquerygh-5201Closesjquerygh-5212Refjquerygh-5211
@mgolmgol merged commit258ca1e intojquery:mainMar 14, 2023
@mgolmgol deleted the get-error-hook branchMarch 14, 2023 21:32
mgol added a commit that referenced this pull requestMar 14, 2023
Rename `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`to indicate passing an error instance is usually a better choice - itworks with source maps while a raw stack generally does not.In jQuery `3.7.0`, we'll keep both names, marking the old one asdeprecated. In jQuery `4.0.0` we'll just keep the new one. Thischange implements the `3.7.0` version; PRgh-5211 implementsthe `4.0.0` one.Fixesgh-5201Closesgh-5212Refgh-5211
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dmethvindmethvindmethvin approved these changes

@timmywiltimmywiltimmywil approved these changes

Assignees

@mgolmgol

Labels
Milestone
4.0.0
Development

Successfully merging this pull request may close these issues.

Use jQuery.Deferred.getErrorHook in 3.7.0, deprecate jQuery.Deferred.getStackHook
3 participants
@mgol@dmethvin@timmywil

[8]ページ先頭

©2009-2025 Movatter.jp