Skip to content

Commit 0e4f28b

Browse files
authored
Notice about List, bump dependencies, release 0.4.3
1 parent 75782f4 commit 0e4f28b

5 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/pull_request_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
runs-on: ubuntu-22.04
99

1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: ZenVoich/setup-mops@v1
11+
- uses: actions/checkout@v6
12+
- uses: caffeinelabs/setup-mops@v1
1313
- uses: dfinity/setup-dfx@main
1414

1515
- name: make sure moc is installed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Vector changelog
22

3+
## 0.4.3
4+
5+
* Notice about using `List` instead
6+
* Bump dependencies
7+
38
## 0.4.2
49

510
* Bugfix: last() could sometimes return wrong element

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2023 MR Research AG
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
# Vector data structure for Motoko
55

6+
**Important notice:** `Vector` has been integrated into the `core` package under the name `List`.
7+
This package will not be updated anymore.
8+
The use of `List` is encouraged over `Vector` for the following reasons:
9+
10+
* `List` has a more modern API design. `Lists` are static records that can be declared stable and support dot notation without being classes.
11+
* `List` is a more comprehensive package. It has more convenience functions than `Vector`.
12+
* `List` has been optimized for instructions to a higher degree than `Vector`.
13+
614
## Overview
715

816
The `Vector` data structure is meant to be a replacement for `Array` when a growable and/or shrinkable data structure is needed.

mops.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
[package]
22
name = "vector"
3-
version = "0.4.2"
3+
version = "0.4.3"
44
description = "Memory-efficient resizable array (replaces Buffer)"
55
repository = "https://github.com/research-ag/vector"
66
keywords = [ "array", "buffer", "resize", "optimized" ]
77
license = "Apache-2.0"
88

99
[dependencies]
10-
base = "0.14.14"
10+
base = "0.16.0"
1111

1212
[dev-dependencies]
1313
test = "2.1.1"
1414
bench = "1.0.0"
1515
matchers = "https://github.com/kritzcreek/motoko-matchers#v1.3.0@3dac8a071b69e4e651b25a7d9683fe831eb7cffd"
1616

1717
[toolchain]
18-
moc = "0.14.14"
18+
moc = "1.0.0"
1919

2020
[requirements]
2121
moc = "0.14.13"

0 commit comments

Comments
 (0)