Skip to content

Make is.js it's own independent module #55

Closed

Description

@jwerre

is.js really slows down the tests. What do you guys think about moving it to it's own repository and adding it as a dependency?

Screen Shot 2021-11-10 at 8 42 09 AM

Activity

  1. jankapunkt commented on Nov 11, 2021

    @jankapunkt
    Member

    Hey @jwerre this code was written by me when I added these tests. The thing is, that the RegEx that is about to be tested allows nearly the whole unicode set and I do lots of permutations in order to cover them. This is course takes lot of time.

    From my pov we should not remove them but we could update the docs and describe why this test is so slow (and give some background info).

    We can also add an instant remedy by describing how to use regex pattern to filter out mocha tests that are not of focus right now: https://mochajs.org/#-grep-regexp-g-regexp

    What do you think?

  2. jwerre commented on Nov 11, 2021

    @jwerre
    ContributorAuthor

    @jankapunkt Yes I remember when you wrote these test. Nice work by the way—I agree with you that they were needed. I guess I'm not clear why you wouldn't want to add is.js as a dependance under the same organization. It's not really oauth specific, it's not likely to change, and it would shave 5.5 sec off the unit tests. It just doesn't make sense to run these tests with every deployment of node-oauth-server when they can be run independently whenever there are changes to is.js.

  3. jankapunkt commented on Nov 11, 2021

    @jankapunkt
    Member

    Ah now I get, you want to add them as internal dependency. We could do this.

  4. jankapunkt commented on Nov 13, 2021

    @jankapunkt
    Member

    @jwerre @HappyZombies I would start this as a new repo under this org if you both agree

  5. jwerre commented on Nov 21, 2021

    @jwerre
    ContributorAuthor

    I put is.js into it's own repo. @HappyZombies would you mind publishing this to NPM? Once that's done I'll update the code and create a PR. @jankapunkt feel free to clone and make any changes you see fit.

  6. jankapunkt commented on Nov 22, 2021

    @jankapunkt
    Member

    @jwerre @HappyZombies I would first make some additions, like adding the namespace, updating the README, link the RFC docs etc. I'll link the PR here

  7. jankapunkt commented on Nov 22, 2021

    @jankapunkt
    Member
  8. Uzlopak commented on Dec 11, 2021

    @Uzlopak
    Contributor

    I am sorry to be nagging on the wording, but I think the name is wrong. it is not a "is-unicode" package because some of the validators are not unicode but simple ascii. It is actually something like oauth2-formats (naming similar to something like ajv-formats).

  9. jankapunkt commented on Dec 11, 2021

    @jankapunkt
    Member

    @jwerre what do you think about renaming? It's at least not published, yet.

  10. jwerre commented on Dec 11, 2021

    @jwerre
    ContributorAuthor

    Yes! Good call @Uzlopak

  11. jankapunkt commented on Dec 11, 2021

    @jankapunkt
    Member

    I will rename and then publish, so we can finally integrate it :-)

  12. jankapunkt commented on Dec 11, 2021

    @jankapunkt
    Member

    Published 1.0.0: https://www.npmjs.com/package/@node-oauth/formats
    Let's keep this open until we integrated it into the main package

  13. linked a pull request that will close this issueRemoved is.js #108on Dec 14, 2021
  14. jorenvandeweyer commented on Dec 19, 2021

    @jorenvandeweyer
    Member

    Resolved by #108

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions