typed-factorio 0.14.1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
package/Changelog.md CHANGED
@@ -1,3 +1,14 @@
1
+ # v0.15.0
2
+
3
+ - Table or array concepts are now declared in table form wherever it is an "read" position.
4
+ - This works with setter overloading for applicable properties: `player.color.x; player.color = [1, 1, 1]` is now valid!
5
+ - This also applies to concepts/complex types which contain table_or_array properties.
6
+ - Some concepts now also have a special form where it is known to be in a "read" position, where all table_or_array concepts are declared in table form. These concepts are suffixed with "Read", e.g. `ScriptAreaRead`.
7
+ - Arrays which are known to be in a "write" only form (e.g. method parameters) now are marked readonly. This means you can now pass readonly-only arrays to these methods.
8
+ - `MapPosition` is now a table or array concept.
9
+ - Classes with subclasses are now declared with all properties, instead of an intersection of subclasses (reversion)
10
+ - Subclass specializations are added for some missing classes
11
+
1
12
  # v0.14.1
2
13
 
3
14
  - LuaStyle: `extra_margin/padding_when_activated` is now for subclass scroll_pane
@@ -7,17 +18,17 @@
7
18
  - LuaStyle size, margin/padding setters now have more specific array types. These array types are `SizeArray` and `StyleValuesArray` for size and margin/padding, respectively.
8
19
  - `@noSelf` annotation is now only present when necessary.
9
20
  - For classes with subclasses:
10
- - The original class name (e.g. `LuaItemStack`) still contains attributes of all subclasses (same as before).
11
- - There is now a `Base` type (e.g. `BaseItemStack`) which only includes attributes common to all subclasses.
12
- - There is a separate type definition for each subclass, e.g. `BlueprintItem`. Note that one instance may still belong to multiple subclasses (the subclasses are not mutually exclusive).
13
- - The above two can be optionally used for stricter types.
21
+ - The original class name (e.g. `LuaItemStack`) still contains attributes of all subclasses (same as before).
22
+ - There is now a `Base` type (e.g. `BaseItemStack`) which only includes attributes common to all subclasses.
23
+ - There is a separate type definition for each subclass, e.g. `BlueprintItem`. Note that one instance may still belong to multiple subclasses (the subclasses are not mutually exclusive).
24
+ - The above two can be optionally used for stricter types.
14
25
 
15
26
  # v0.13.2
16
27
 
17
28
  - Fix: resize_to_sprite property should not be on subclass sprite-button
18
29
  - Fix: ChooseElemButtonSpec filters should be named elem_filters
19
30
  - Switch back to `/latest` api docs link
20
- - New version of web api docs is now active
31
+ - New version of web api docs is now active
21
32
 
22
33
  # v0.13.0
23
34
 
@@ -53,7 +64,7 @@
53
64
  # v0.7.3
54
65
 
55
66
  - Update to factorio version 1.1.42
56
- - No api changes, but improvements to descriptions
67
+ - No api changes, but improvements to descriptions
57
68
 
58
69
  # v0.7.2
59
70