feat: expose frame & move properties to console-message event object by samuelmaddock · Pull Request #43617 · electron/electron · GitHub
Skip to content

feat: expose frame & move properties to console-message event object#43617

Merged
jkleinsc merged 4 commits into
electron:mainfrom
samuelmaddock:feat/better-console-message
Oct 18, 2024
Merged

feat: expose frame & move properties to console-message event object#43617
jkleinsc merged 4 commits into
electron:mainfrom
samuelmaddock:feat/better-console-message

Conversation

@samuelmaddock

@samuelmaddock samuelmaddock commented Sep 8, 2024

Copy link
Copy Markdown
Member

Description of Change

resolves #35418

Implements what @MarshallOfSound proposed in #35418—this time moving properties to the event object.

The stack trace seemed nuanced so I opted not to expose it.

|untrusted_stack_trace| is not present for most messages; only when requested in advance and only for exceptions.

Checklist

Release Notes

Notes:

  • Added frame to 'console-message' event.
  • Moved 'console-message' arguments into event object.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Sep 8, 2024
@samuelmaddock samuelmaddock added the semver/minor backwards-compatible functionality label Sep 8, 2024

@jkleinsc jkleinsc left a comment

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.

The deprecations need to be noted in breaking-changes.md

@samuelmaddock samuelmaddock requested a review from a team as a code owner September 11, 2024 22:30
@samuelmaddock samuelmaddock force-pushed the feat/better-console-message branch 2 times, most recently from e49a964 to ce22499 Compare September 12, 2024 23:32
@samuelmaddock

Copy link
Copy Markdown
Member Author

Comment thread docs/api/web-contents.md

@erickzhao erickzhao left a comment

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.

API LGTM

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Sep 15, 2024

@jkleinsc jkleinsc left a comment

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.

API LGTM

refactor: use property names similar to ServiceWorker's console-message event

refactor: don't use deprecated params in tests

doc: console-message breaking change

chore: add deprecation warning

docs: restore deprecated argument descriptions
@samuelmaddock samuelmaddock force-pushed the feat/better-console-message branch from 04e2b83 to 07f7f6f Compare September 18, 2024 18:58
@samuelmaddock samuelmaddock force-pushed the feat/better-console-message branch from fbca88b to 9be909b Compare October 1, 2024 14:54
@jkleinsc jkleinsc merged commit 87bd665 into electron:main Oct 18, 2024
@release-clerk

release-clerk Bot commented Oct 18, 2024

Copy link
Copy Markdown

@samuelmaddock samuelmaddock deleted the feat/better-console-message branch October 18, 2024 20:13
yangannyx pushed a commit to yangannyx/electron that referenced this pull request Oct 21, 2024
…lectron#43617)

* feat: expose frame on console-message event

refactor: use property names similar to ServiceWorker's console-message event

refactor: don't use deprecated params in tests

doc: console-message breaking change

chore: add deprecation warning

docs: restore deprecated argument descriptions

* move console-message deprecations to v34

---------

Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
yangannyx pushed a commit to yangannyx/electron that referenced this pull request Oct 21, 2024
…lectron#43617)

* feat: expose frame on console-message event

refactor: use property names similar to ServiceWorker's console-message event

refactor: don't use deprecated params in tests

doc: console-message breaking change

chore: add deprecation warning

docs: restore deprecated argument descriptions

* move console-message deprecations to v34

---------

Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
yangannyx pushed a commit to yangannyx/electron that referenced this pull request Oct 21, 2024
…lectron#43617)

* feat: expose frame on console-message event

refactor: use property names similar to ServiceWorker's console-message event

refactor: don't use deprecated params in tests

doc: console-message breaking change

chore: add deprecation warning

docs: restore deprecated argument descriptions

* move console-message deprecations to v34

---------

Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants