forked from rescript-lang/rescript
- Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from rescript-lang:master #81
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
Open
pull wants to merge 781 commits into TheSpyder:master Choose a base branch from rescript-lang:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+482,144 −339,163
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
* Don't panic when dev files are not found during clean. * Add test project * Clean up * Test clean of nonexisting dev files * Revert usage of rescript json name * type dev * Add changelog entry * Don't read folder is dev source does not exists during clean. * Clean up changelog * Revert changes * Revert cli changes * Update changelog * Add --dev in tests
* Only get dev_deps from local packages * Add changelog entry
Put the label and type together, so in future it will be possible to represent a function of several arguments with a list.
* Use root package suffix in clean log messages * Mention RESCRIPT_BSC_EXE if not set. * Add changelog entry
* Add support for "rescript -w" for compatibility * CHANGELOG
* Remove trailing comma in empty dict and print inside comment * Remove extra line * Add test * Update CHANGELOG * Don't use List.is_empty
This should give an explicit handle over how all arrow types are constructed.
… arguments. The arity is inferred, by just the length of the list of arguments.
…or error messages (#7656) * prevent trying to read non-existing file when extracting extra info for error messages * changelog
* Rust implementation of "rescript format" * Files must be present unless --all or --stdin is set
Functions of several arguments are stored as nested `Ptyp_arrow` ast nodes, with attributes at toplevel in the node. This change adds an attribute field to type arguments, makin it impossible to distinguish attributes on arguments from attributes on the entire function.
Introduces an 'attrs' field to the 'arg' record in typedtree.ml and typedtree.mli to support attributes on function arguments. Updates related code in typetexp.ml and printtyped.ml to handle the new field, enabling attribute preservation and printing for function argument types.
* Read bs-dev-dependencies if --dev was passed. * Try and check the file type when allowing dev dependency access. * Store is_type_dev in SourceFileMeta. * Only allow usage of dev_dependencies when type:dev is true for source file * Traverse rescript config for compiler-args command to find out if type = dev * Collect all qualified package sources * Expand search for type:dev in rescript config. * Add some unit test to cover find_is_type_dev_for_path * Add is_type_dev to Module as well. * Remove pub * Add changelog entry * Add negative test * Add snapshot * Normalize paths * Try --ignore-cr-at-eol * Revert "Try --ignore-cr-at-eol" This reverts commit 3a67a8f. * Trigger CI * Remove extra lines in changelog * Add tmate on Windows * Add tmate on Windows but earlier 🙃 * Remove more stuff * More general path normalize check on Windows * This has to be newlines * Update to beta 1 * Revert line changes
…7658) * feat: deprecate bs-deps and bs-dev-deps * feat: deprecate `bsc-flags` * chore: CHANGELOG * tests: add tests for compiler-flags
…fault error message (#7630) * Add optional message argument to Result.getOrThrow and improve default error message * Add CHANGELOG entry * Use JsError.panic instead of deprecated Error.panic for Option.getOrThrow * Update completions * Note breaking change in CHANGELOG
* improve errors for circular dependencies * changelog * fix * Update rewatch/src/build/compile/dependency_cycle.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * remove * fix error message * remove replace --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* JSX PPX: add Jsx.element return constraint * Extract collect_prop_types helper * Simplify collect_prop_types * Cleanup * Remove merlin.focus attribute * CHANGELOG # Conflicts: # CHANGELOG.md * Update JSXV4 docs. * Constrain return expression; do not use outer loc * Revert binding loc change
…#7945) * Fix: use configured Jsx module for constraining component return type * CHANGELOG
* undeprecate Js_OO since it is still used * changelog
* JSX PPX: externals: React.componentLike -> React.component * Analysis test output * CHANGELOG
* switch to F#-style binary operators * fix dangling token selection * add changelog * fix migrations
* Fix crash when using bitwise not on incompatible type * CHANGELOG * Fix comments
* Handle non-tty mode the same as snapshot mode * Remove --snapshot-output command line arg * Rename snapshot_output -> plain_output * CHANGELOG
* Streamline rewatch help texts * CHANGELOG
* Rework Makefile; dependency tracking * Review change * Restore "make build" as default target, use .yarn/install-state.gz as stamp * Try to fix build * Update AGENTS.md
* Add global docstrings * Completions * Fix * Simplify * Completions again * Add warning about rather writing own bindings
…7977) * Fix @directive on function level with async and multiple parameters * CHANGELOG
* WeakMap docstrings * MDN links
* WeakSet docstrings * More examples and MDN links
* TypedArray docstrings * Completions * Review * Remove non-existant MDN links
* Remove unnecessary usage of Ast_uncurried helpers * CHANGELOG
* Add alternative for dict{} pattern match * 🔨 😱 ©️ * Reduce logs * Fix line break * Removed unused emojis * Fix extension print * Add changelog * Add link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )