#535: Import Conditions
Discussions
2020-08-03
Tess: my very short review is it seems fine
Yves: use of types that are not media types is confusing... Otherwise it seems OK.
Tess: the string json is hard coded... into the spec... should have been media type json?
Yves: yes - a +JSON extension to the generic media type...
Peter: if you're going to use a specific media type it should be filtered to that media type... I like having just plain JSON but needs to be clearly defined what that maps to.
Yves: restricted set of types they are allowing...
Peter: we need to specify that the media type should be something+json...
Tess: what about text/plain? Some issue with web server configuration... as i read it: If you say type json it tries to parse it as json and if that parse fails it fails the import.
Peter: kind of scary to me that it relies as parsing. some stuff that isn't json could parse as json... I guess for json it's probably safe. More concerned about other things.
Tess: yes fair to be concerned about other cases...
Yves: more about the processing model of json rather than the type.
Yves: probably ok as it is.
Peter: yes probably.
Dan: we should close? I think any thing else we discussed could be handled by extensions down the road.
Tess: I can write a closing statement.
[agreed to close with thumbs-up]
Peter: Tag Ken in the issue [since he's not here this week and he's an assignee.]
OpenedJul 12, 2020
Saluton TAG!
I'm requesting a TAG review of Import Conditions.
The Import Conditions and JSON modules proposal adds: An inline syntax for module import statements to pass on more information alongside the module specifier. An initial application for such attributes in supporting JSON modules in a common way across JavaScript environments.
Further details:
We'd prefer the TAG provide feedback as:
💬 leave review feedback as a comment in this issue and @-notify @xtuc @littledan @MylesBorins @dandclark