ads-client 1.14.3 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,39 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.0.0-beta.2] - 26.08.2024
8
+ - Changed `subscribeSymbol()` -> `subscribeValue()`
9
+ - Bug fix: Fixing [issue #144](https://github.com/jisotalo/ads-client/issues/144)
10
+
11
+ ## [2.0.0-beta.1] - 24.08.2024
12
+ **IMPORTANT:** This is a major version update. There are lots of **breaking changes**!
13
+
14
+ <u>**Updating v1 -> v2 requires manual changes to your codebase!**</u>
15
+
16
+ See [MIGRATION.md](MIGRATION.md) for all breaking changes and follow the instructions. This changelog does not have breaking changes listed for 2.0.0.
17
+
18
+ ### Changes
19
+ - Everything rewritten in TypeScript
20
+ - Everything is tested before releasing
21
+ - Lots of optimizations
22
+ - Lots of name changes
23
+ - New methods: `resetPlc()`, `readWriteRawMulti()`, `writeRawByPath()`, `readValueBySymbol()`, `writeValueBySymbol()`
24
+ - New setting `disableCaching`: disables all symbol and data type caching
25
+ - Added optional `targetOpts` argument in **all methods**
26
+ - Possible to provide different target address (AmsNetId and/or AdsPort) than specified in the settings
27
+ - Caching is only available for the original target provided in settings
28
+ - The same client can be used for many different targets at the same time
29
+ - Added support for reading/writing `INTERFACE` data types
30
+ - Added support for reading/writing empty `FUNCTION_BLOCK`s
31
+ - Added support for reading/writing `BIT` data type
32
+ - Writing a `STRING` or `WSTRING` value that is longer than the target data type causes the string to be truncated.
33
+ - Previously the string end character was lost, which caused "never ending string" and `<Value of the expression cannot be retrieved` in PLC online view.
34
+ - E.g. writing 85 bytes of string to `STRING(80)` variable
35
+ - `BOOL` and `BIT` data values are now true if the value is anything else than 0
36
+ - In TwinCAT, `BOOL` is true if the value is anything else than zero (see [x_TO_BOOL](https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_plc_intro/2529047435.html&id=))
37
+ - Before, ads-client set the value to true only if value was true or 1, otherwise it was 0
38
+ - `writeControl()` accepts also string values for `adsState`
39
+
7
40
  ## [1.14.3] - 23.09.2023
8
41
  ### Changed
9
42
  - Bug fix: Some TwinCAT 2 devices (such as BK9050) do not send data length if answering with error code
@@ -42,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
42
75
  - See [https://github.com/nodejs/node/issues/40702](https://github.com/nodejs/node/issues/40702)
43
76
  - Fixed by using `127.0.0.1` instead of `localhost`
44
77
 
78
+
45
79
  ## [1.14.0] - 23.07.2022
46
80
  ### Added
47
81
  - Created end-to-end testing for the library using Jest
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Jussi Isotalo <j.isotalo91@gmail.com>
3
+ Copyright (c) Jussi Isotalo <j.isotalo91@gmail.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal