Skip to content

Commit d6d026d

Browse files
chore(release): 2.0.0 [skip ci]
# [2.0.0](v1.0.1...v2.0.0) (2025-01-11) ### Bug Fixes * **id repair:** null and empty string IDs are now repaired ([489ec64](489ec64)) * **inventory add:** no longer crashes when read only items are added ([afb6b44](afb6b44)), closes [#17](#17) * **inventory.getall<t>():** no longer crashes when used with a custom item entry type ([c8678b0](c8678b0)), closes [#20](#20) * **semantic-release:** was not picking up the main branch ([7124ae0](7124ae0)) ### Features * **inventory window:** categories now live display in the item table ([53193c4](53193c4)), closes [#21](#21) * **item definitions:** display name must now be implemented on all ItemDefinitionBase classes ([56e69c2](56e69c2)) ### BREAKING CHANGES * **item definitions:** Find all classes that inherit ItemDefinitionBase and add `[SerializeField] string _displayName; public override string DisplayName => _displayName;`. To fix the error that your classes do not implement the display name get accessor.
1 parent 1b91267 commit d6d026d

File tree

6 files changed

+44
-15
lines changed

6 files changed

+44
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
Replaced when project is built from commit logs via Semantic Release.
1+
## [1.0.1](https://github.com/ashblue/unity-elastic-inventory/compare/v1.0.0...v1.0.1) (2023-07-05)
2+
3+
4+
### Bug Fixes
5+
6+
* **packages:** added in a missing package ([c8b5cf9](https://github.com/ashblue/unity-elastic-inventory/commit/c8b5cf93337ddfa3efa926f691464f479ad88d5a))

Assets/com.fluid.elastic-inventory/README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ The above example assumes that you've created custom definitions and logic for y
6666
* [Example Store](#example-store)
6767
- [Documentation](#documentation)
6868
* [Inventory Instance](#inventory-instance)
69-
+ [Add item(s)](#add-item-s-)
70-
+ [Remove item(s)](#remove-item-s-)
71-
+ [Get item(s)](#get-item-s-)
69+
+ [Add item(s)](#add-items)
70+
+ [Remove item(s)](#remove-items)
71+
+ [Get item(s)](#get-items)
7272
+ [Get All Items](#get-all-items)
7373
+ [Has items](#has-items)
7474
+ [Events](#events)
@@ -117,7 +117,7 @@ Elastic Inventory is used through [Unity's Package Manager](https://docs.unity3d
117117

118118
Next you'll be greeted with a configuration wizard. Run it and you'll be able to create items by selecting the `ElasticInventory/Resources/ItemDatabase` asset and clicking the edit button.
119119

120-
Before you create an item, we recommend customizing the automatically generated item definition at `ElasticInventory/Resources/ItemDefinition` to your needs. This will allow you to add your own custom fields to items. Add a `cost` field to the auto generated definition.
120+
Before you create an item, we recommend customizing the automatically generated item definition at `ElasticInventory/ItemDefinition` to your needs. This will allow you to add your own custom fields to items. Add a `cost` field to the auto generated definition.
121121

122122
```C#
123123
public class ItemDefinition : ItemDefinitionBase {
@@ -345,6 +345,7 @@ inventory.Instance.Sort(
345345
);
346346
```
347347

348+
348349
#### Saving and Loading
349350

350351
You can save and load an inventory instance with the following snippets. This should only be done if you wish to create your own implementation of `InventoryInstance` without using the `InventoryHelper`. It's recommended you use the `InventoryHelper` class to save and load inventories for simplicity.

Assets/com.fluid.elastic-inventory/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.fluid.elastic-inventory",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"displayName": "Elastic Inventory",
55
"description": "A simple inventory micro-framework built with extendability in mind",
66
"unity": "2022.2",

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# [2.0.0](https://github.com/ashblue/unity-elastic-inventory/compare/v1.0.1...v2.0.0) (2025-01-11)
2+
3+
4+
### Bug Fixes
5+
6+
* **id repair:** null and empty string IDs are now repaired ([489ec64](https://github.com/ashblue/unity-elastic-inventory/commit/489ec648bfbe6bb109738b9abd620ad58a9b8be6))
7+
* **inventory add:** no longer crashes when read only items are added ([afb6b44](https://github.com/ashblue/unity-elastic-inventory/commit/afb6b44f3e1f5af02eb58440fd4e50fb7357c9ea)), closes [#17](https://github.com/ashblue/unity-elastic-inventory/issues/17)
8+
* **inventory.getall<t>():** no longer crashes when used with a custom item entry type ([c8678b0](https://github.com/ashblue/unity-elastic-inventory/commit/c8678b0ffa113957515ffc1402d11f1407d6fab1)), closes [#20](https://github.com/ashblue/unity-elastic-inventory/issues/20)
9+
* **semantic-release:** was not picking up the main branch ([7124ae0](https://github.com/ashblue/unity-elastic-inventory/commit/7124ae0720b961b4e1e08701eacae1989eeb66e6))
10+
11+
12+
### Features
13+
14+
* **inventory window:** categories now live display in the item table ([53193c4](https://github.com/ashblue/unity-elastic-inventory/commit/53193c4da7076173d63f93fa9d381882dbf9d0d2)), closes [#21](https://github.com/ashblue/unity-elastic-inventory/issues/21)
15+
* **item definitions:** display name must now be implemented on all ItemDefinitionBase classes ([56e69c2](https://github.com/ashblue/unity-elastic-inventory/commit/56e69c2b0a473e2d4459472a12669a82793b4342))
16+
17+
18+
### BREAKING CHANGES
19+
20+
* **item definitions:** Find all classes that inherit ItemDefinitionBase and add `[SerializeField] string
21+
_displayName; public override string DisplayName => _displayName;`. To fix the error that your
22+
classes do not implement the display name get accessor.
23+
124
## [1.0.1](https://github.com/ashblue/unity-elastic-inventory/compare/v1.0.0...v1.0.1) (2023-07-05)
225

326

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.fluid.elastic-inventory",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"unity": "2022.2",
55
"displayName": "Elastic Inventory",
66
"description": "A simple inventory micro-framework built with extendability in mind",
@@ -12,12 +12,12 @@
1212
"prepare": "husky install"
1313
},
1414
"keywords": [
15-
"unity3d",
16-
"unity package",
17-
"upm",
18-
"inventory",
19-
"inventory management"
20-
],
15+
"unity3d",
16+
"unity package",
17+
"upm",
18+
"inventory",
19+
"inventory management"
20+
],
2121
"repository": {
2222
"type": "git",
2323
"url": "git+https://github.com/ashblue/unity-elastic-inventory.git"

0 commit comments

Comments
 (0)