Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(neon): JsFunction::bind() and Object::prop() #1056

Merged
merged 37 commits into from
Oct 1, 2024
Merged

Commits on Sep 27, 2024

  1. Implement JsFunction::bind(), which creates a builder for calling a f…

    …unction using the Try{From,Into}Js traits.
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    5195a1b View commit details
    Browse the repository at this point in the history
  2. prettier

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    2dce48c View commit details
    Browse the repository at this point in the history
  3. cargo fmt --all

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    e23492c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0f8ff9e View commit details
    Browse the repository at this point in the history
  5. api doc formatting

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    a72ea6c View commit details
    Browse the repository at this point in the history
  6. tweak test name for clarity

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1369807 View commit details
    Browse the repository at this point in the history
  7. Optimization: only do the function type check of the callee when call…

    …ing BindOptions::apply()
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    9fa6a0d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5e26ba1 View commit details
    Browse the repository at this point in the history
  9. remove unnecessary sys::fun::call helper, and add test case for calli…

    …ng non-functions with .bind()
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    670837f View commit details
    Browse the repository at this point in the history
  10. prettier

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1f8e108 View commit details
    Browse the repository at this point in the history
  11. cargo fmt --all

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    c2b4d5b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8b09460 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f1bc138 View commit details
    Browse the repository at this point in the history
  14. arg_with's closure doesn't need to require a Result, since TryIntoJs …

    …is already implemented for NeonResult
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    6253c56 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9f13037 View commit details
    Browse the repository at this point in the history
  16. BindOptions::this() takes a TryIntoJs (and is therefore fallible)

    - tests for both strict and sloppy mode functions to show it works on primitives
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    d603630 View commit details
    Browse the repository at this point in the history
  17. store object in PropOptions as a JsObject so it doesn't need a ty…

    …pe parameter other than for the key
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    3305fc2 View commit details
    Browse the repository at this point in the history
  18. avoid the double-type-check of eagerly downcasting to function when c…

    …alling .bind(), since it's performed when calling .apply()
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    b779e37 View commit details
    Browse the repository at this point in the history
  19. style: move the InvalidArg tag check to a match guard

    Co-authored-by: K.J. Valencik <[email protected]>
    dherman and kjvalencik committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    a34531e View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    8f3c58e View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9050dc4 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    72bc8b8 View commit details
    Browse the repository at this point in the history
  23. move call_local into a method of ValueInternal, so there's less o…

    …f a weird inconsistency between the callee being something other than a Handle vs the other args
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    e37382d View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    12d0217 View commit details
    Browse the repository at this point in the history
  25. safety comment for .prop()

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    41c1376 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    6e44074 View commit details
    Browse the repository at this point in the history
  27. - put back the O: Object type parameter to PropOptions for more pre…

    …cise typing
    
    - add PropOptions::this() to return the object
    - add PropOptions::prop() to enable assignment chaining
    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    fd643a2 View commit details
    Browse the repository at this point in the history
  28. add PropOptions::set_with

    dherman committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    7a4bbe3 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    3d264bc View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. - Object::method()

    - BindOptions::exec()
    - rename BindOptions::apply() to BindOptions::call()
    - eliminate call_method_with() from API docs
    dherman committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    7f1d108 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84ee9ec View commit details
    Browse the repository at this point in the history
  3. allow fallible args_with

    dherman committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    2158281 View commit details
    Browse the repository at this point in the history
  4. add BindOptions::construct()

    dherman committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    b5a76b8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    39eaada View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    942fb50 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    46918d2 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    9bc02b6 View commit details
    Browse the repository at this point in the history