Skip to content

Commit

Permalink
Adding Temporal API (#10643)
Browse files Browse the repository at this point in the history
* Added Temporal skeleton; support, status, and linking fields still to fill

* [Temporal] Fully hydrated all-false entries for (I think) all of the API

* [Temporal] Fixes to spec_url values

* [Temporal] Fixes to JSON structure

* Replace, e.g, "from()" identifiers w/ "from" (no parens)

https://github.com/mdn/browser-compat-data/blob/master/schemas/compat-data.schema.json#L255-L264
doesn’t allow feature identifiers to contain parenthesis; instead it
restricts them to "^(?!__compat)[a-zA-Z_0-9-$@]*$".

And in the rest of the tree, existing feature identifiers method names omit the parenthesis.

* Drop empty spec_url keys/values

The spec_url value isn’t allowed to be empty — so if there’s no spec URL
(yet), the spec_url key/value should be omitted completely.

* Add fragment ID to ES spec URL

spec_url values must contain a fragment ID.

* Run "npm run fix" to re-sort keys

I think this change also replaces tabs with spaces, and adds newlines to
the ends of the files.

* Temporal support in STP133

* Updated information as of STP139

Co-authored-by: Michael[tm] Smith <mike@w3.org>
  • Loading branch information
meyerweb and sideshowbarker authored Apr 26, 2022
1 parent c1b7112 commit 00d7b68
Show file tree
Hide file tree
Showing 12 changed files with 16,095 additions and 0 deletions.
1,437 changes: 1,437 additions & 0 deletions javascript/builtins/Temporal/Calendar.json

Large diffs are not rendered by default.

1,439 changes: 1,439 additions & 0 deletions javascript/builtins/Temporal/Duration.json

Large diffs are not rendered by default.

1,280 changes: 1,280 additions & 0 deletions javascript/builtins/Temporal/Instant.json

Large diffs are not rendered by default.

1,861 changes: 1,861 additions & 0 deletions javascript/builtins/Temporal/PlainDate.json

Large diffs are not rendered by default.

2,391 changes: 2,391 additions & 0 deletions javascript/builtins/Temporal/PlainDateTime.json

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions javascript/builtins/Temporal/PlainMonthDay.json

Large diffs are not rendered by default.

1,332 changes: 1,332 additions & 0 deletions javascript/builtins/Temporal/PlainTime.json

Large diffs are not rendered by default.

1,384 changes: 1,384 additions & 0 deletions javascript/builtins/Temporal/PlainYearMonth.json

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions javascript/builtins/Temporal/Temporal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"javascript": {
"builtins": {
"Temporal": {
"__compat": {
"description": "Temporal API",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal",
"spec_url": "https://tc39.es/proposal-temporal/#sec-temporal-intro",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": {
"version_added": false
},
"edge": {
"version_added": false
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"nodejs": {
"version_added": false
},
"opera": {
"version_added": false
},
"opera_android": {
"version_added": false
},
"safari": {
"version_added": "preview",
"flags": [
{
"name": "useTemporal",
"value_to_set": "1",
"type": "runtime_flag"
}
]
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
Loading

0 comments on commit 00d7b68

Please sign in to comment.