@livinglogic/livingapi 1.0.0 → 1.1.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
@@ -1,5 +1,24 @@
1
1
  # Changes
2
2
 
3
+ ## 1.1.0 (2023-03-17)
4
+
5
+ Add `Panel` attributes `header_type`, `header_background`, `text_color`,
6
+ `background_color1` and `background_color2`.
7
+
8
+
9
+ ## 1.0.1 (2023-03-16)
10
+
11
+ Fixed name of the attribute for the "nothing selected" option: `nonekey` has
12
+ been renamed to `none_key` and `nonelabel` has been renamed to `none_label`.
13
+
14
+ Added the class `MenuItem` and `Panel` and the `App` attributes `menus` and
15
+ `panel` for the menus/panels that appear on various LivingApps pages.
16
+
17
+ Added attribute `App.datasource`.
18
+
19
+ Fixed name of "geo distance" method (`Globals.dist()`).
20
+
21
+
3
22
  ## 1.0.0 (2023-02-02)
4
23
 
5
24
  The image of a `ImageLayoutControl` can now be changed (via Javascript and UL4).
@@ -0,0 +1,74 @@
1
+ # How to release a new LivingAPI version
2
+
3
+
4
+ ## Requirements
5
+
6
+ This project uses "git flow", so to be able to properly create releases you
7
+ have to execute `git flow init` once.
8
+
9
+ Also you need to have `npm` installed, and you need to have run `npm install`
10
+ once.
11
+
12
+
13
+ ## During development
14
+
15
+ Document changes in `CHANGELOG.md`. Ideally this is done during development.
16
+ If not, do a diff against the last released version and document the changes
17
+ you see.
18
+
19
+
20
+ ## Preparing for a release
21
+
22
+ 1. When the time comes for a release, open a release branch like this:
23
+
24
+ ```
25
+ git flow release start x.y.z
26
+ ```
27
+
28
+ (using the correct version number).
29
+
30
+ 2. Bump the version number in `package.json`. Since the version number is
31
+ incorporated into the generated source and the generated source is checked
32
+ in, you have to build the release files, after you update the version number
33
+ like this:
34
+
35
+ ```
36
+ npm run build
37
+ ```
38
+
39
+ This should rebuild `dist/umd/livingapi.js`, `dist/umd/livingapi.js.map`,
40
+ `dist/esm-node/livingapi.js`, `dist/esm-node/livingapi.js.map`,
41
+ `dist/esm-static/livingapi.js` and `dist/esm-static/livingapi.js.map`.
42
+
43
+ 3. Update UL4 and LivingAPI version number in the example code in `README.md`.
44
+
45
+ 4. Check in the resulting changes.
46
+
47
+ 5. Close the release branch with the following command:
48
+
49
+ ```
50
+ git flow release finish x.y.z
51
+ ```
52
+
53
+ (using the same version number that you used in step 1).
54
+
55
+ 6. Push all changes to the internal Gitlab instance with:
56
+
57
+ ```
58
+ git push --all
59
+ ```
60
+
61
+ The internal Gitlab instance will automatically mirror what you pushed to
62
+ `github.com`.
63
+
64
+
65
+ ## Releasing the new version on `npmjs.org`
66
+
67
+ To push the finish release to `npmjs.org` do the following:
68
+
69
+ ```
70
+ npm publish --access public
71
+ ```
72
+
73
+ The release should be visible at https://www.npmjs.com/package/@livinglogic/livingapi
74
+ after this.
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2016-2018 by LivingLogic AG, Bayreuth/Germany
1
+ Copyright 2016-2023 by LivingLogic AG, Bayreuth/Germany
2
2
 
3
3
  All Rights Reserved
4
4
 
package/README.md CHANGED
@@ -9,7 +9,7 @@ For more info about LivingApps and the LivingAPI see
9
9
  https://my.living-apps.de/docs/LivingAPI.html (in german).
10
10
 
11
11
 
12
- # Build instructions
12
+ ## Build instructions
13
13
 
14
14
  Install the npm packages:
15
15
 
@@ -25,7 +25,7 @@ npm run build
25
25
  ```
26
26
 
27
27
 
28
- # Using the LivingAPI in your project
28
+ ## Using the LivingAPI in your project
29
29
 
30
30
  In your HTML include the following:
31
31
 
@@ -41,7 +41,7 @@ do
41
41
 
42
42
  ```html
43
43
  <script type="module">
44
- import * as la from '/static/livingapi/0.13.0/dist/esm-static/livingapi.js';
44
+ import * as la from '/static/livingapi/1.0.1/dist/esm-static/livingapi.js';
45
45
  ...
46
46
  </script>
47
47
  ```
@@ -50,15 +50,13 @@ or (if you need both UL4 and LivingAPI):
50
50
 
51
51
  ```html
52
52
  <script type="module">
53
- import * as ul4 from '/static/ul4/1.11.0/dist/esm/ul4.js';
54
- import * as la from '/static/livingapi/0.13.0/dist/esm-static/livingapi.js';
53
+ import * as ul4 from '/static/ul4/1.15.2/dist/esm/ul4.js';
54
+ import * as la from '/static/livingapi/1.0.1/dist/esm-static/livingapi.js';
55
55
  ...
56
56
  </script>
57
57
  ```
58
58
 
59
-
60
-
61
- # Authors
59
+ ## Authors
62
60
 
63
61
  - Walter Dörwald: `ul4.js` and `livingapi.js`
64
62