Skip to content

Standard library additions and cleanup. #532

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

Merged
merged 46 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
3ca9be9
Code action framework and order entities code action.
gdotdesign Jan 13, 2022
2564b72
Start to clean up and extend core modules.
gdotdesign Jan 11, 2022
264aab9
Extend `String` module with more examples and clean it up.
gdotdesign Jan 13, 2022
620502e
Use `padStart` instead of `padLeft` in `Time.format`
gdotdesign Jan 13, 2022
f18b948
Order entities in `Array` module.
gdotdesign Jan 14, 2022
fa8e35d
Fix index related issues of for expressions.
gdotdesign Jan 14, 2022
82d33ce
Allow function as a variable name.
gdotdesign Jan 14, 2022
a32bd31
Cleanup `Array` module part I.
gdotdesign Jan 14, 2022
4773ffa
Cleanup `Array` module part II.
gdotdesign Jan 16, 2022
dc44275
Reorder entities in `AnimationFrame.mint`
gdotdesign Jan 16, 2022
524992d
Reorder entities in `Dom.mint`
gdotdesign Jan 16, 2022
e8489f2
Reorder entities in `File.mint`
gdotdesign Jan 16, 2022
2984757
Cleanup `File.mint`
gdotdesign Jan 16, 2022
0528c09
Cleanup `FormData.mint`
gdotdesign Jan 18, 2022
6526a7d
Added `File.readAsArrayBuffer` and `ArrayBuffer` module.
gdotdesign Jan 18, 2022
1c20241
Added `Function.debounce1`.
gdotdesign Jan 18, 2022
89e2ce4
Order entities in `Html.Event.mint`
gdotdesign Jan 18, 2022
d1c19f9
Merge branch 'master' into core-extend-and-cleanup
Sija Feb 16, 2022
550e932
Merge branch 'master' into core-extend-and-cleanup
Apr 6, 2022
bd5b8c3
Cleanup Html.DataTransfer module.
Apr 6, 2022
64e10dc
Reorder entities in Html module.
Apr 6, 2022
68decec
Cleanup IntersectionObserver module and add `disconnect` function.
Apr 6, 2022
d5db917
Cleanup Json module and add `prettyStringify` function.
Apr 6, 2022
ae76b0c
Make sure false can be used as a fallback from `Maybe(Bool)`.
Apr 7, 2022
888aca2
Cleanup `Map` module.
Apr 7, 2022
b8f6e9b
Reorder functions in `Math` module.
Apr 7, 2022
36a14d6
Reorder and cleanup `Maybe` module.
Apr 7, 2022
0c398d4
Reorder and cleanup `Set` module.
Apr 7, 2022
d98800f
Reorder and cleanup `Number` module.
Apr 7, 2022
84ae13e
Convert `Array.find` to use Mint only code.
Apr 7, 2022
4a4c4a1
Fix failing spec.
Apr 7, 2022
cb11ac9
Cleanup and update providers.
Apr 7, 2022
9b14648
Added Provider.Pointer
Apr 7, 2022
2e661f5
Cleanup and refactor `Timer` module.
Apr 7, 2022
7275ac6
Added `Base64` module.
Apr 7, 2022
931ef64
Cleanup `Object.Decode` module.
Apr 7, 2022
7213d30
Save.
gdotdesign Jun 28, 2022
113a4d1
Merge branch 'master' into core-extend-and-cleanup
gdotdesign Nov 23, 2022
23a5d3b
Merge branch 'master' of github.com:mint-lang/mint into core-extend-a…
gdotdesign Nov 23, 2022
76f33db
Added order entities code action for providers as well.
gdotdesign Nov 23, 2022
29a991d
Cleanup and normalize remaining modules.
gdotdesign Nov 23, 2022
ec1bfb3
Update src/compilers/top_level.cr
gdotdesign Nov 23, 2022
afce55e
Fall back to ubuntu-20.04 since it has Firefox.
gdotdesign Nov 23, 2022
d79aa9d
Merge branch 'core-extend-and-cleanup' of github.com:mint-lang/mint i…
gdotdesign Nov 23, 2022
b89af86
PR suggestion.
gdotdesign Nov 28, 2022
3e4917d
Crystal nightly (1.7.0) compatibility.
gdotdesign Nov 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-20.04, macos-latest]
crystal: [latest, nightly]
runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
crystal 1.4.1
crystal 1.6.2
16 changes: 8 additions & 8 deletions core/source/AnimationFrame.mint
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/* This module provides a wrapper over the Animation Frame Web API. */
module AnimationFrame {
/*
Schedules the function to run on the next frame, and returns its ID.
Cancels a scheduled function call.

id = AnimationFrame.request((timestamp : Number) { Debug.log("Hello") })
AnimationFrame.cancel(id)
*/
fun request (method : Function(Number, a)) : Number {
`requestAnimationFrame(#{method})`
fun cancel (id : Number) : Number {
`cancelAnimationFrame(#{id}) || -1`
}

/*
Cancels a scheduled function call.
Schedules the function to run on the next frame, and returns its ID.

AnimationFrame.cancel(id)
id = AnimationFrame.request((timestamp : Number) { Debug.log("Hello") })
*/
fun cancel (id : Number) : Number {
`cancelAnimationFrame(#{id}) || -1`
fun request (function : Function(Number, a)) : Number {
`requestAnimationFrame(#{function})`
}
}
Loading