Skip to content

Conversation

@adr-h
Copy link
Contributor

@adr-h adr-h commented Feb 20, 2018

Adding compat data for the Console API (https://developer.mozilla.org/docs/Web/API/Console)

@teoli2003 teoli2003 changed the title Adding compat data for Console Add compat data for Console Feb 21, 2018
@teoli2003 teoli2003 added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Feb 21, 2018
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Well done! I few structural changes, but otherwise this looks good to me! Thank you very much for contributing to mdn-browser-compat-data!

api/Console.json Outdated
"firefox": {
"version_added": "28",
"notes": [
"Available in workers from 38 onwards"
Copy link
Member

Choose a reason for hiding this comment

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

Lets please remove the notes throughout the file and add worker support as a sub feature of console like so:

"worker_support": {
  "__compat": {
    "description": "Available in workers",
    "support": {

In the tree this would get added here:

  • api
    • Console
      • __compat
      • worker_support
      • assert
      • ...

api/Console.json Outdated
"chrome": {
"version_added": true,
"notes": [
"Alias (console.exception) not available"
Copy link
Member

Choose a reason for hiding this comment

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

Please add exception as a separate subfeature (an own entry like error). And remove these notes throughout.

api/Console.json Outdated
"firefox": {
"version_added": "4",
"notes": [
"Substitution strings available from 9 onwards",
Copy link
Member

Choose a reason for hiding this comment

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

Please add substitution strings as a separate sub feature here:

"substitution_strings": {
  "__compat": {
    "description": "Substitution strings",
    "support": {

In the tree this would get added here:

  • api
    • Console
      • __compat
      • error
        • __compat
        • substitution_strings
      • info
        • __compat
        • substitution_strings
      • ...

api/Console.json Outdated
"firefox": {
"version_added": "9",
"notes": [
"This method is supported starting in Gecko 9 (Firefox 9 / Thunderbird 9 / SeaMonkey 2.6), but the new group was not collapsed; it's functionally was equivalent to console.group(). Since Gecko 52.0 (Firefox 52.0 / Thunderbird 52.0 / SeaMonkey 2.49) the group is collapsed",
Copy link
Member

Choose a reason for hiding this comment

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

So basically it works starting with 52. Lets remove this note and add version_added: 52.

api/Console.json Outdated
"firefox_android": {
"version_added": "9",
"notes": [
"This method is supported starting in Gecko 9 (Firefox 9 / Thunderbird 9 / SeaMonkey 2.6), but the new group was not collapsed; it's functionally was equivalent to console.group(). Since Gecko 52.0 (Firefox 52.0 / Thunderbird 52.0 / SeaMonkey 2.49) the group is collapsed",
Copy link
Member

Choose a reason for hiding this comment

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

ditto

api/Console.json Outdated
"version_added": "4",
"notes": [
"Available in workers from 38 onwards",
"Subtitution string available from 9 onwards"
Copy link
Member

Choose a reason for hiding this comment

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

Same thing for the substitution strings here. Please add a sub feature

api/Console.json Outdated
"chrome": {
"version_added": true,
"notes": [
"Substitution strings available from 28 onwards",
Copy link
Member

Choose a reason for hiding this comment

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

Same thing for the substitution strings here. Please add a sub feature and add the second note there.

api/Console.json Outdated
"firefox": {
"version_added": "4",
"notes": [
"Substitution strings available from 9 onwards",
Copy link
Member

Choose a reason for hiding this comment

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

Same thing for the substitution strings here. Please add a sub feature.

@adr-h
Copy link
Contributor Author

adr-h commented Feb 27, 2018

Hey there @Elchi3 - I've pushed a commit with the changes you requested. If there's anything else I've missed out, do let me know!

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Excellent work, thanks again! 👍

@Elchi3 Elchi3 merged commit 27d6107 into mdn:master Feb 27, 2018
dontcallmedom pushed a commit to dontcallmedom/browser-compat-data that referenced this pull request Mar 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants