ads-client 1.14.2 → 2.0.0-beta.1

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,51 @@ 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.1] - 24.08.2024
8
+ **IMPORTANT:** This is a major version update. There are lots of **breaking changes**!
9
+
10
+ <u>**Updating v1 -> v2 requires manual changes to your codebase!**</u>
11
+
12
+ 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.
13
+
14
+ ### Changes
15
+ - Everything rewritten in TypeScript
16
+ - Everything is tested before releasing
17
+ - Lots of optimizations
18
+ - Lots of name changes
19
+ - New methods: `resetPlc()`, `readWriteRawMulti()`, `writeRawByPath()`, `readValueBySymbol()`, `writeValueBySymbol()`
20
+ - New setting `disableCaching`: disables all symbol and data type caching
21
+ - Added optional `targetOpts` argument in **all methods**
22
+ - Possible to provide different target address (AmsNetId and/or AdsPort) than specified in the settings
23
+ - Caching is only available for the original target provided in settings
24
+ - The same client can be used for many different targets at the same time
25
+ - Added support for reading/writing `INTERFACE` data types
26
+ - Added support for reading/writing empty `FUNCTION_BLOCK`s
27
+ - Added support for reading/writing `BIT` data type
28
+ - Writing a `STRING` or `WSTRING` value that is longer than the target data type causes the string to be truncated.
29
+ - Previously the string end character was lost, which caused "never ending string" and `<Value of the expression cannot be retrieved` in PLC online view.
30
+ - E.g. writing 85 bytes of string to `STRING(80)` variable
31
+ - `BOOL` and `BIT` data values are now true if the value is anything else than 0
32
+ - 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=))
33
+ - Before, ads-client set the value to true only if value was true or 1, otherwise it was 0
34
+ - `writeControl()` accepts also string values for `adsState`
35
+
36
+ ## [1.14.3] - 23.09.2023
37
+ ### Changed
38
+ - Bug fix: Some TwinCAT 2 devices (such as BK9050) do not send data length if answering with error code
39
+ - This caused `RangeError: Index out of range` exception as there wasn't enough bytes received
40
+ - See [issue #116](https://github.com/jisotalo/ads-client/issues/116)
41
+ - Bug fix: If using older Node.js versions such as 8.x, connection lost could have caused unhandled exception
42
+ - Reason was `catch {}` which isn't supported in old versions
43
+ - See [issue #116](https://github.com/jisotalo/ads-client/issues/116)
44
+
45
+ ### Added
46
+ - Updated readme to include information about TypeScript types
47
+ - Thanks to [Christian Rishøj](https://github.com/crishoj)
48
+ - Updated readme with FAQ about TwinCAT 2 low-end devices
49
+ - Updated readme about v2 development
50
+ - Added option to run tests with usermode runtime AmsNetId (`192.168.4.1.1.1`) instead of localhost (`npm run test-um`)
51
+
7
52
  ## [1.14.2] - 02.05.2023
8
53
  ### Changed
9
54
  - Bug fix: `ADS_DATA_TYPE_FLAGS` (`dataType.flags`) were parsed incorrectly.
@@ -26,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
71
  - See [https://github.com/nodejs/node/issues/40702](https://github.com/nodejs/node/issues/40702)
27
72
  - Fixed by using `127.0.0.1` instead of `localhost`
28
73
 
74
+
29
75
  ## [1.14.0] - 23.07.2022
30
76
  ### Added
31
77
  - 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