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

Appearance settings

Conversation

samuelmaddock
Copy link
Member

@samuelmaddock samuelmaddock commented Sep 8, 2024

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
Copy link
Member

@jkleinsc jkleinsc left a comment

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
Member Author

  • updated to show deprecation warning when emitting to listeners with greater than one argument
  • restored deprecated argument docs

cc @codebytere @itsananderson @erickzhao @jkleinsc

docs/api/web-contents.md Show resolved Hide resolved
Copy link
Member

@erickzhao erickzhao left a comment

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
Copy link
Member

@jkleinsc jkleinsc left a comment

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
50 checks passed
@release-clerk
Copy link

release-clerk bot commented Oct 18, 2024

Release Notes Persisted

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

@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.