From fe2b1d5c7c7be3995dd7e912ddd051e4b1867916 Mon Sep 17 00:00:00 2001 From: James Brock Date: Thu, 1 Dec 2022 18:24:39 +0900 Subject: [PATCH 1/4] README web-encoding instead of text-encoding --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c89142a..ee4c15d 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ These are some other packages which provide more `ArrayBuffer` features. ### UTF -* [__text-encoding__](https://pursuit.purescript.org/packages/purescript-text-encoding) +* [__web-encoding__](https://pursuit.purescript.org/packages/purescript-web-encoding) ### Base64 From 464ddc8917252db0290da8d5851d9179346bd37b Mon Sep 17 00:00:00 2001 From: James Brock Date: Mon, 13 Feb 2023 15:36:58 +0900 Subject: [PATCH 2/4] Correct `Typed` `slice` and `subArray` docs (#51) --- CHANGELOG.md | 2 ++ src/Data/ArrayBuffer/Typed.purs | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e1187c..6c00e6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ Bugfixes: Other improvements: +- Correct `Typed` `slice` and `subArray` docs (#51 by @jamesdbrock) + ## [v13.1.0](https://github.com/purescript-contrib/purescript-arraybuffer/releases/tag/v13.1.0) - 2022-12-01 New features: diff --git a/src/Data/ArrayBuffer/Typed.purs b/src/Data/ArrayBuffer/Typed.purs index b8d593b..e46132d 100644 --- a/src/Data/ArrayBuffer/Typed.purs +++ b/src/Data/ArrayBuffer/Typed.purs @@ -23,8 +23,8 @@ -- | - `foldr`, `foldrM`, `foldr1`, `foldr1M`, `foldl`, `foldlM`, `foldl1`, `foldl1M` all can reduce an array -- | - `find` and `findIndex` are searching functions via a predicate -- | - `indexOf` and `lastIndexOf` are searching functions via equality --- | - `slice` returns a new typed array on the same array buffer content as the input --- | - `subArray` returns a new typed array with a separate array buffer +-- | - `slice` returns a new typed array with a new copied underlying `ArrayBuffer` +-- | - `subArray` returns a new typed array view of the same `ArrayBuffer` -- | - `toString` prints to a CSV, `join` allows you to supply the delimiter -- | - `toArray` returns an array of numeric values @@ -211,7 +211,7 @@ set = setInternal A.length ap1 :: forall a b c. (a -> c) -> (a -> b -> c) ap1 f = \x _ -> f x --- | Maps a new value over the typed array, creating a new buffer and +-- | Maps a new value over the typed array, creating a new `ArrayBuffer` and -- | typed array as well. map :: forall a t. TypedArray a t => (t -> t) -> ArrayView a -> ArrayView a map = mapWithIndex' <<< ap1 @@ -415,7 +415,8 @@ foreign import setImpl :: forall a b. EffectFn3 (ArrayView a) Index b Unit setTyped :: forall a. ArrayView a -> Maybe Index -> ArrayView a -> Effect Boolean setTyped = setInternal length --- | Copy part of the contents of a typed array into a new buffer, between some start and end indices. +-- | Copy part of the contents of a typed array into a new `ArrayBuffer`, +-- | between the start and end indices. slice :: forall a. Index -> Index -> ArrayView a -> Effect (ArrayView a) slice s e a = runEffectFn3 sliceImpl a s e @@ -427,7 +428,8 @@ sort a = runEffectFn1 sortImpl a foreign import sortImpl :: forall a. EffectFn1 (ArrayView a) Unit --- | Returns a new typed array view of the same buffer, beginning at the index and ending at the second. +-- | Returns a new typed array view of the same `ArrayBuffer`, beginning at +-- | the index and ending at the second. subArray :: forall a. Index -> Index -> ArrayView a -> ArrayView a subArray s e a = runFn3 subArrayImpl a s e From e70974bffa51d622441d8ea47cec2b9fc715f3ee Mon Sep 17 00:00:00 2001 From: James Brock Date: Mon, 13 Feb 2023 15:39:29 +0900 Subject: [PATCH 3/4] Prep for v13.2.0 purs 15.7 --- CHANGELOG.md | 4 ++++ bower.json | 2 +- packages.dhall | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c00e6a..fb92693 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ Bugfixes: Other improvements: +## [v13.2.0](https://github.com/purescript-contrib/purescript-arraybuffer/releases/tag/v13.2.0) - 2023-02-13 + +Other improvements: + - Correct `Typed` `slice` and `subArray` docs (#51 by @jamesdbrock) ## [v13.1.0](https://github.com/purescript-contrib/purescript-arraybuffer/releases/tag/v13.1.0) - 2022-12-01 diff --git a/bower.json b/bower.json index d7d9ae7..e0cb70c 100644 --- a/bower.json +++ b/bower.json @@ -15,7 +15,7 @@ ], "dependencies": { "purescript-arraybuffer-types": "^v3.0.2", - "purescript-arrays": "^v7.1.0", + "purescript-arrays": "^v7.2.0", "purescript-effect": "^v4.0.0", "purescript-float32": "^v2.0.0", "purescript-functions": "^v6.0.0", diff --git a/packages.dhall b/packages.dhall index 2ffa9a7..8af7890 100644 --- a/packages.dhall +++ b/packages.dhall @@ -1,5 +1,5 @@ let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20221102/packages.dhall - sha256:8628e413718876ce26983db1d0ce9d9e1588129117fa3bb8ed9f618db6914127 + https://github.com/purescript/package-sets/releases/download/psc-0.15.7-20230211/packages.dhall + sha256:c44fcd5b1b7a1adf85bbd4ed2eeb08865c44996bd0c8b1e1fdcd3dea8cfab914 in upstream From a1e62aa93360fcc363766024a3c737bb6b75d562 Mon Sep 17 00:00:00 2001 From: James Brock Date: Mon, 13 Feb 2023 15:50:39 +0900 Subject: [PATCH 4/4] =?UTF-8?q?v13.1.1=20=E2=86=92=20v13.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit