GithubHelp home page GithubHelp logo

Comments (9)

travisbrown avatar travisbrown commented on July 22, 2024

No, not currently. Given that Shapeless supports it and it's coming soon to cats, it shouldn't be too difficult here. You'd also need a parser (I'm assuming there are probably easier ways than adding Scala.js support to Jawn, since it's JavaScript, after all).

There are a number of things that are higher priorities for me, but I'd be happy to accept a pull request once cats is published with Scala.js support.

from circe.

travisbrown avatar travisbrown commented on July 22, 2024

@omidb Also, if you'd like to rephrase the issue as a request for Scala.js support, I'd be happy to slap a milestone label on it (probably 0.2, since I'd like to publish an 0.1 sooner rather than later, and I'm not sure what the timing will look like for cats).

from circe.

ngbinh avatar ngbinh commented on July 22, 2024

👍 for Scala.js support. Just FYI: here's upickle's parser: https://github.com/lihaoyi/upickle-pprint/blob/master/upickle/js/src/main/scala/upickle/json/package.scala

from circe.

 avatar commented on July 22, 2024

Cats support is done, just waiting for a second 👍 from a maintainer 😉 - https://github.com/non/cats/pull/427

from circe.

ngbinh avatar ngbinh commented on July 22, 2024

https://github.com/non/cats/pull/427 has been merged

from circe.

travisbrown avatar travisbrown commented on July 22, 2024

How would people feel about some kind of "best effort" Scala.js support? I'm imagining something like the following:

  1. We don't include Scala.js in the Travis CI config (at least for now).
  2. Anyone submitting a substantial PR would be expected to run the Scala.js build locally.
  3. We make sure Scala.js support is working before releases.

In part because this is such a young project, I don't really want to slow down PRs and deal with a lot of CI fussiness just to be 100% sure that Scala.js support is never broken in master.

from circe.

ngbinh avatar ngbinh commented on July 22, 2024

I understand the pain. But doing so would make scala.js support 2nd class citizen. Also, does that mean we cannot have official scala.js artifacts on Maven?

Can you please point out the pain you experience with supporting scala.js?

from circe.

 avatar commented on July 22, 2024

@travisbrown All the cats CI issues have been resolved so it would make sense to me to get scalajs support in asap (assuming of course, that's your end goal). Shout if you need any help, btw

from circe.

alexarchambault avatar alexarchambault commented on July 22, 2024

@travisbrown A way of achieving that could be to have two branches, differing only by their .travis.yml.

master would compile for JVM Scala, and a scalajs branch would compile for Scala.js. master would be merged in scalajs from time to time, and possible Scala.js proper issues fixed then.

Validations for JVM Scala and Scala.js have already been split in #33 (see the validateJVM and validateJS it adds, inspired by @inthenow work in cats).

from circe.

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.