8000 update-vals etc from Clojure 1.11 missing · Issue #137 · borkdude/jet · GitHub
[go: up one dir, main page]

Skip to content

update-vals etc from Clojure 1.11 missing #137

Open

Description

@Oddsor

Tried writing a little transformer that was going to use update-vals, but it seems to be missing from Jet!

Similar story to other functions added in Clojure 1.11 such as update-keys, parse-long etc...

Activity

  1. borkdude commented on Jul 10, 2023

    @borkdude
    Owner

    Can you make a repro?

  2. Oddsor commented on Jul 10, 2023

    @Oddsor
    ContributorAuthor

    I made a PR with tests instead!
    #138

    Edit: And here's an example to illustrate the problem where I convert the keys in a map into keywords:

    > echo "{\"a\" \"1\"}" | jet -T '(update-keys keyword)'
    ...
    Caused by: clojure.lang.ExceptionInfo: Could not resolve symbol: update-keys
  3. borkdude commented on Jul 10, 2023

    @borkdude
    Owner

    Thanks :)

    I noticed the changelogs weren't updated yet. Can you do this too?

  4. Oddsor commented on Jul 10, 2023

    @Oddsor
    ContributorAuthor

    Will do!
    Also noted in the PR that maybe a separate NS should be created instead of inlining the missing functions directly?
    Babashka does this with a core-extras in an "impl"-namespace

  5. borkdude commented on Jul 10, 2023

    @borkdude
    Owner

    Yes, I think moving this extra config to sci.configs will be even better so then we can re-use it in both bb and jet and possibly more projects.

  6. Oddsor commented on Jul 10, 2023

    @Oddsor
    ContributorAuthor

    Okay, so maybe the current PR should be closed and then I can open one for SCI where the functions are added to clojure-core here?
    https://github.com/babashka/sci/blob/master/src/sci/impl/namespaces.cljc#L991C11-L991C11

  7. borkdude commented on Jul 10, 2023

    @borkdude
    Owner
  8. Oddsor commented on Jul 10, 2023

    @Oddsor
    ContributorAuthor

    Cool, I'll give updating sci.configs a try later today 😊

  9. Oddsor commented on Jul 12, 2023

    @Oddsor
    ContributorAuthor

    I tried to applying the recent update to sci.configs to Jet and noticed that leiningen is still used to build and test, which doesn't support referencing git-dependencies!

    I can try to assist with moving to building using deps.edn instead if that's a good direction for the project, but for now it looks like this issue will be resolved with the next release 😊

  10. borkdude commented on Jul 12, 2023

    @borkdude
    Owner

    Ah yes, sorry, I didn't notice that. We can move to tools.build. I'll make an issue for that and solve that myself, if nobody else jumps on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0