Coder Social home page Coder Social logo

Comments (5)

github-actions avatar github-actions commented on August 16, 2024

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

from data.

lahmatiy avatar lahmatiy commented on August 16, 2024

I missed when functions.json was added. As to me it should be merged back into syntaxes.json. The types.json is actually contains generic types, in other words types that has no syntax definition but a prose definition in CSS specs. Having a split in functions and other types makes no sense in terms of CSS.

from data.

yarusome avatar yarusome commented on August 16, 2024

I found that types.json contain both prose-only types (such as <number>) and types that do have syntaxes (such as <display-internal>), meanwhile the schema for types.json doesn't allow for a syntax key. I could add a special case to split types into syntaxes.json and types.json based on the presence/absence of syntax, but this dichotomy seems unnecessary 🤔 (I'll leave units.json as it is despite of the fact that their types are "value" in Webref).

So there're two ways to move forward:

  1. Split any data in Webref of the "type" type into syntaxes.json and types.json based on the presence/absence of syntax.
  2. Change the schema for types.json, and split syntaxes.json into funtions.json and types.json.

from data.

caugner avatar caugner commented on August 16, 2024

Thank you for opening this issue, and sorry for the long waiting time. 🙏

Unfortunately, I'm not very familiar with mdn/data, so I must be missing some important context here.

@yarusome As I understand, the combined syntaxes.json makes it more difficult for you to diff mdn/data and w3c/webref. Can you explain the background of this diff?

The documented plan has been to deprecate this package in favor of w3c/webref, which is blocked by references to mdn-data in yari. Since this package is used a lot with 26 million weekly downloads, we need to have a very good reason for this breaking change.

If all the data in mdn-data can be derived from w3c/webref (can it?), then it might make sense to publish mdn-data v3 such that it extracts the data from w3c/webref and merely presents it in the current format. But I'm not sure what the advantage of mdn-data's representation is in comparison to w3c/webref?

from data.

caugner avatar caugner commented on August 16, 2024

@yarusome Can you please take a look at my previous comment?

from data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.