clientnode 4.0.1411 → 4.0.1413

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.
Files changed (2) hide show
  1. package/package.json +14 -14
  2. package/readme.md +39 -119
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clientnode",
3
- "version": "4.0.1411",
4
- "description": "upgrade to object orientated rock solid plugins",
3
+ "version": "4.0.1413",
4
+ "description": "Handy utilities for any JavaScript environments.",
5
5
  "keywords": [
6
6
  "client",
7
7
  "tools",
@@ -70,24 +70,24 @@
70
70
  "watch": "weboptimizer build --watch"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/cli": "^7.28.6",
74
- "@babel/eslint-parser": "^7.28.6",
75
- "@babel/plugin-transform-proto-to-assign": "^7.27.1",
76
- "@babel/runtime": "^7.29.2",
73
+ "@babel/cli": "^7.29.7",
74
+ "@babel/eslint-parser": "^7.29.7",
75
+ "@babel/plugin-transform-proto-to-assign": "^7.29.7",
76
+ "@babel/runtime": "^7.29.7",
77
77
  "@eslint/js": "^10.0.1",
78
78
  "@stylistic/eslint-plugin": "^5.10.0",
79
79
  "@types/ejs": "^3.1.5",
80
80
  "@types/html-minifier": "^4.0.6",
81
81
  "@types/imagemin": "^9.0.1",
82
- "@types/node": "^25.9.1",
82
+ "@types/node": "^25.9.2",
83
83
  "@types/prop-types": "^15.7.15",
84
84
  "@types/webpack-env": "^1.18.8",
85
- "@typescript-eslint/eslint-plugin": "^8.59.4",
86
- "@typescript-eslint/parser": "^8.59.4",
85
+ "@typescript-eslint/eslint-plugin": "^8.60.1",
86
+ "@typescript-eslint/parser": "^8.60.1",
87
87
  "clientnode": "workspace:.",
88
- "eslint": "^10.4.0",
88
+ "eslint": "^10.4.1",
89
89
  "eslint-config-google": "^0.14.0",
90
- "eslint-plugin-jsdoc": "^63.0.0",
90
+ "eslint-plugin-jsdoc": "^63.0.2",
91
91
  "favicons-webpack-plugin": "^6.0.1",
92
92
  "image-minimizer-webpack-plugin": "^5.0.0",
93
93
  "jest": "30.4.2",
@@ -95,8 +95,8 @@
95
95
  "node-fetch": "^3.3.2",
96
96
  "prop-types": "^15.8.1",
97
97
  "rimraf": "^6.1.3",
98
- "typescript-eslint": "^8.59.4",
99
- "web-documentation": "^1.0.17",
98
+ "typescript-eslint": "^8.60.1",
99
+ "web-documentation": "^1.0.21",
100
100
  "weboptimizer": "^3.0.24",
101
101
  "webpack-dev-server": "^5.2.4"
102
102
  },
@@ -139,7 +139,7 @@
139
139
  "enUS"
140
140
  ],
141
141
  "name": "clientnode",
142
- "tagline": "upgrade to object orientated rock solid plugins<!--deDE:Schreibe Objekt orientierte solide Plugins-->",
142
+ "tagline": "Utilities for your JavaScript environment.<!--deDE:Hilfsfunktionen für Ihre JavaScript-Umgebung.-->",
143
143
  "trackingCode": "UA-40192634-7"
144
144
  },
145
145
  "webOptimizer": {
package/readme.md CHANGED
@@ -34,10 +34,32 @@ Project status
34
34
  Use case
35
35
  --------
36
36
 
37
- Simple generic (web and node compatible) utility library.
38
- <!--deDE:
39
- Einfache generische (Web- und Node-kompatible) Hilfsbibliothek.
40
- -->
37
+ You need utilities for:<!--deDE:Sie benötigen Hilfsfunktionen für:-->
38
+
39
+ - Primitive types
40
+ - Arrays
41
+ - Functions
42
+ - Numbers
43
+ - Objects
44
+ - Strings
45
+ - Date and time
46
+ - Mutual exclusion
47
+ - Lock management
48
+ - Semaphore management
49
+ - Backend
50
+ - CLIs
51
+ - Filesystem
52
+ - Processes
53
+ - Frontend
54
+ - Cookies
55
+ - DOM
56
+ - Data-Transfer
57
+ - JSON-based Expressions
58
+ - Logging
59
+ - Scopes
60
+ - Testing
61
+ - Typescript
62
+ - URLs
41
63
 
42
64
  <!--Place for automatic generated table of contents.-->
43
65
  <div class="doc-toc" style="display:none">
@@ -45,45 +67,6 @@ Simple generic (web and node compatible) utility library.
45
67
  <h2 id="content">Content</h2>
46
68
  </div>
47
69
 
48
- <!--|deDE:Merkmale-->
49
- Features
50
- --------
51
-
52
- <ul>
53
- <li>
54
- Mutual exclusion support through locking management
55
- <!--deDE:Wechselseitiger Ausschluss durch Lock-Management-->
56
- </li>
57
- <li>
58
- Cross browser logging with different log levels
59
- <!--deDE:
60
- Browserübergreifender Log-Mechanismen mit diversen Log-Levels
61
- -->
62
- </li>
63
- <li>
64
- Extending native JavaScript types like strings, arrays or functions
65
- <!--deDE:
66
- Erweiterung der Standard-JavaScript-Typen wie Strings, Arrays und
67
- Funktionen
68
- -->
69
- </li>
70
- <li>
71
- A set of helper functions to parse option objects
72
- <!--deDE:Hilfsfunktionen um Options-Objekte intelligent zu parsen-->
73
- </li>
74
- <li>
75
- Extended dom tree handling.<!--deDE:Erweitertes DOM-Baum-Management-->
76
- </li>
77
- <li>
78
- Plugin scoped event handling.
79
- <!--deDE:Plugineigene Namensräume für Events.-->
80
- </li>
81
- <li>
82
- Generic none-redundant plugin pattern for JavaScript and CoffeeScript
83
- <!--deDE:Generischer Plugin-Muster für JavaScript und CoffeeScript-->
84
- </li>
85
- </ul>
86
-
87
70
  <!--|deDE:Installation-->
88
71
  Installation
89
72
  ------------
@@ -91,13 +74,18 @@ Installation
91
74
  <!--|deDE:Klassische Dom-Integration-->
92
75
  ### Classical dom injection
93
76
 
94
- You can simply download the compiled version as zip file here and inject it
95
- after needed dependencies:
77
+ You can install via package manager, simply download the compiled version as
78
+ zip file here and inject or request via cdn in HTML:
96
79
  <!--deDE:
97
- Du kannst einfach das Plugin als Zip-Archiv herunterladen und per
98
- Script-Tag in deine Webseite integrieren:
80
+ Sie können das Paket über den Paketmanager installieren oder einfach die
81
+ kompilierte Version als ZIP-Datei hier herunterladen und in HTML einbinden
82
+ oder über ein CDN abrufen:
99
83
  -->
100
84
 
85
+ ```bash
86
+ npm install clientnode
87
+ ```
88
+
101
89
  ```HTML
102
90
  <!--Inject downloaded file:
103
91
  <script src="index.js"></script>
@@ -117,74 +105,9 @@ want.
117
105
  Dadurch können verschiedene Module-Bundler genutzt werden.
118
106
  -->
119
107
 
120
- <!--|deDE:Paket-Management und Modul-Komposition-->
121
- ### Package managed and module bundled
122
-
123
- If you are using npm as package manager you can simply add this tool to your
124
- **package.json** as dependency:
125
- <!--deDE:
126
- Nutzt du npm als Paket-Manager, dann solltest du einfach deine
127
- <strong>package.json</strong> erweitern:
128
- -->
129
-
130
- ```JSON
131
- ...
132
- "dependencies": {
133
- ...
134
- "clientnode": "latest",
135
- ...
136
- },
137
- ...
138
- ```
139
-
140
- After updating your packages you can simply depend on this script and let
141
- a module bundler do the hard stuff or access it via an exported variable name
142
- in given context.
143
- <!--deDE:
144
- Nach einem Update deiner Pakete kannst du dieses Plugin einfach in deine
145
- JavaScript-Module importieren oder die exportierte Variable im gegebenen
146
- Context referenzieren.
147
- -->
148
-
149
- ```JavaScript
150
- 'use strict'
151
- import {$} from 'clientnode'
152
- /**
153
- * This plugin holds all needed methods to extend input fields to select
154
- * numbers very smart.
155
- * @extends clientnode:Tools
156
- * @property static:_name - Defines this class name to allow retrieving them
157
- * after name mangling.
158
- * @property _options - Options extended by the options given to the
159
- * initializer method.
160
- */
161
- export default class Example extends $.Tools.class {
162
- static _name = 'Example';
163
- /* eslint-disable jsdoc/require-description-complete-sentence */
164
- /**
165
- * Initializes the plugin. Later needed dom nodes are grabbed.
166
- * @param options - An options object.
167
- * @returns Returns $'s extended current dom node.
168
- */
169
- initialize(options = {}) {
170
- /* eslint-enable jsdoc/require-description-complete-sentence */
171
- this._options = {/*Default options here*/}
172
- super.initialize(options)
173
- return this.$domNode
174
- }
175
- }
176
- $.fn.Example = function() {
177
- return $.Tools().controller(Example, arguments, this)
178
- }
179
- ```
180
-
181
- Initialisation with given dom node and without:
182
- <!--deDE:Aufruf mit und ohne übergebenen DOM-Knoten:-->
183
-
184
- ```JavaScript
185
- const $domNode = $('#domNode').Example({firstOption: 'value'});
186
- const exampleInstance = $.Example({firstOption: 'value'});
187
- ```
108
+ <!--|deDE:Nutzung-->
109
+ Usage
110
+ -----
188
111
 
189
112
  Function call from previous generated instance via dom node or instance
190
113
  reference:
@@ -194,8 +117,5 @@ reference:
194
117
  -->
195
118
 
196
119
  ```JavaScript
197
- const returnValue = $('#domNode').Example('method', 'anArgument')
198
- const returnValue = $('#domNode').Example().method('anArgument')
199
- const exampleInstance = $.Example({firstOption: 'value'})
200
- const returnValue = exampleInstance.method('anArgument')
120
+ console.log('TEST')
201
121
  ```