@itee/server 8.0.0

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 ADDED
@@ -0,0 +1,169 @@
1
+ # [v8.0.0](https://github.com/Itee/server/compare/v7.0.0...v8.0.0) (2026-01-23)
2
+
3
+ ## 🐛 Bug Fixes
4
+ - [`dcf4172`](https://github.com/Itee/server/commit/dcf4172) (package) apply package override to fix trust publishing
5
+
6
+ ## 💥 Breaking Changes
7
+ - [`73df887`](https://github.com/Itee/server/commit/73df887) (package) change package name itee-server to scoped version @itee/server
8
+
9
+ # [v7.0.0](https://github.com/Itee/server/compare/v6.3.0...v7.0.0) (2026-01-23)
10
+
11
+ ## ✨ New Features
12
+ - [`7f8898b`](https://github.com/Itee/server/commit/7f8898b) (tasks) upgrade tasks to latest itee and gulp standards
13
+ - [`5120f07`](https://github.com/Itee/server/commit/5120f07) (tasks) update default tasks to latest itee standards
14
+ - [`703927f`](https://github.com/Itee/server/commit/703927f) (tests) remove the need to build backend file to run unit and benches tests
15
+
16
+ ## 🐛 Bug Fixes
17
+ - [`ef38958`](https://github.com/Itee/server/commit/ef38958) (gulpfile) fix broken import links
18
+ - [`aa33bd0`](https://github.com/Itee/server/commit/aa33bd0) (gulpfile-refresh) use external script that do not require gulp to be loaded for refreshing it
19
+ - [`c646853`](https://github.com/Itee/server/commit/c646853) (compute-unit-tests-task) fix default template for empty units
20
+ - [`ab62b9a`](https://github.com/Itee/server/commit/ab62b9a) (tasks) fix frontend task run on empty test generation
21
+ - [`199138a`](https://github.com/Itee/server/commit/199138a) (release) fix release task and update others to latest standards
22
+
23
+ ## 💥 Breaking Changes
24
+ - [`6d4b6c5`](https://github.com/Itee/server/commit/6d4b6c5) (node) drop nodejs v18 support and introduce nodejs v24
25
+
26
+ # [v6.3.0](https://github.com/Itee/itee-server/compare/v6.2.8...v6.3.0) (2025-10-20)
27
+
28
+ ## ✨ New Features
29
+ - [`316a57f`](https://github.com/Itee/itee-server/commit/316a57f) (package) use cz-emoji in favor of cz-conventional-changlog
30
+ - [`17e1626`](https://github.com/Itee/itee-server/commit/17e1626) (gulpfile) split gulpfile tasks into sub-tasks files
31
+
32
+ ## 🐛 Bug Fixes
33
+ - [`3ce9889`](https://github.com/Itee/itee-server/commit/3ce9889) (gulpfile) fix gulp.conf file extension
34
+ - [`518df1e`](https://github.com/Itee/itee-server/commit/518df1e) (rollup.conf) fix removed parameter name to fix iife generation
35
+
36
+ ## [6.2.8](https://github.com/Itee/itee-server/compare/v6.2.7...v6.2.8) (2025-09-08)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **gulpfile:** apply some gulpfile standard fixes ([94c464c](https://github.com/Itee/itee-server/commit/94c464ca586c221c16c6ff9dbae109dabbe4a98d))
42
+ * **package:** downgrade karma to v4 to fix npm install ([747be5c](https://github.com/Itee/itee-server/commit/747be5c655678ee6410a9ee90b176d9eeca3f04b))
43
+
44
+ ## [6.2.7](https://github.com/Itee/itee-server/compare/v6.2.6...v6.2.7) (2022-02-14)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * **package:** update deps to latest version ([5a29028](https://github.com/Itee/itee-server/commit/5a29028941507ed5a840413f42349853111854a3))
50
+
51
+ ## [6.2.6](https://github.com/Itee/itee-server/compare/v6.2.5...v6.2.6) (2022-02-14)
52
+
53
+
54
+ ### Bug Fixes
55
+
56
+ * **package:** update deps to latest version ([6c42c05](https://github.com/Itee/itee-server/commit/6c42c05edf10096147d1024e8b441c8475158feb))
57
+ * **package:** update packagelock ([0953cbe](https://github.com/Itee/itee-server/commit/0953cbef0eaaabd8bbe78638dbd9187e727d687c))
58
+
59
+ ## [6.2.5](https://github.com/Itee/itee-server/compare/v6.2.4...v6.2.5) (2021-07-21)
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * **readme:** fix readme tags ([fa69535](https://github.com/Itee/itee-server/commit/fa695352d48d0a3243d7ac6cd5fcdf92435c0687))
65
+
66
+ ## [6.2.4](https://github.com/Itee/itee-server/compare/v6.2.3...v6.2.4) (2021-07-08)
67
+
68
+
69
+ ### Bug Fixes
70
+
71
+ * **tbackendmanager:** fix parameter assignment in ctor ([de61172](https://github.com/Itee/itee-server/commit/de61172b2d87dacaecf887fa29c5856aa848e759))
72
+
73
+ ## [6.2.3](https://github.com/Itee/itee-server/compare/v6.2.2...v6.2.3) (2021-07-08)
74
+
75
+
76
+ ### Bug Fixes
77
+
78
+ * **tbackendmanager:** fix logger usage ([d9aacb3](https://github.com/Itee/itee-server/commit/d9aacb3df6cb3951c257c3674550bbc4725c9eab))
79
+
80
+ ## [6.2.2](https://github.com/Itee/itee-server/compare/v6.2.1...v6.2.2) (2021-07-08)
81
+
82
+
83
+ ### Bug Fixes
84
+
85
+ * **eslint:** remove console statement in favor of this.logger from itee core package ([3593054](https://github.com/Itee/itee-server/commit/3593054254b3b00ea98d17b9c8a76dacac5a68f3))
86
+ * **package:** apply dependencies fix ([03c7064](https://github.com/Itee/itee-server/commit/03c7064e266917f4d119a398c6f56d3169d4eeaf))
87
+ * **package:** apply fix from dependencies ([992e868](https://github.com/Itee/itee-server/commit/992e8684028521d256dd30d92af730c7ce0e95d8))
88
+ * **package:** apply npm audit fix ([2b28842](https://github.com/Itee/itee-server/commit/2b28842a88d05ac334b0737735a654c24382c90b))
89
+ * **package:** update all dependencies to their latest version ([49162e4](https://github.com/Itee/itee-server/commit/49162e4c4e1b6bc895946cf3dfc05eeb2edf71eb))
90
+ * **releaserc:** fix missing dev maps ([26fbe2d](https://github.com/Itee/itee-server/commit/26fbe2d7bb22a2da13a49019c61783939ce7c17c))
91
+ * **tbackendmanager:** fix bad server shutdown when connection are open, and add setter/getter ([20c8f1d](https://github.com/Itee/itee-server/commit/20c8f1dd694f5106cfca1926de85b88f44c5de73))
92
+
93
+ ## [6.2.1](https://github.com/Itee/itee-server/compare/v6.2.0...v6.2.1) (2020-02-18)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * **tbackendmanager:** fix database package assignment ([cf4c973](https://github.com/Itee/itee-server/commit/cf4c9738e0df59fb17dab6bad8692493bb39d5dc))
99
+
100
+ # [6.2.0](https://github.com/Itee/itee-server/compare/v6.1.1...v6.2.0) (2020-02-18)
101
+
102
+
103
+ ### Bug Fixes
104
+
105
+ * **package:** move itee packages as peer dependencies ([c88f92d](https://github.com/Itee/itee-server/commit/c88f92db53e514cf26af5a178502061eb67f4818))
106
+ * **tbackendmanager:** add missing import isDefined ([986b96a](https://github.com/Itee/itee-server/commit/986b96a0509d8c1f21f0849487aee9088f082640))
107
+ * **tbackendmanager:** comment itee-database mapping waiting new release ([7ddbfb6](https://github.com/Itee/itee-server/commit/7ddbfb6681beae909c4977e7bfc7231132b2b323))
108
+
109
+
110
+ ### Features
111
+
112
+ * **tbackendmanager:** allow user to specify the database package to use ([0c3de43](https://github.com/Itee/itee-server/commit/0c3de437da84ab10928014adb6d7e400c73bf6c6))
113
+
114
+ ## [6.1.1](https://github.com/Itee/itee-server/compare/v6.1.0...v6.1.1) (2020-02-17)
115
+
116
+
117
+ ### Bug Fixes
118
+
119
+ * **package:** update package lock ([178957d](https://github.com/Itee/itee-server/commit/178957da1d12a130b68501252426e1bfc1273cb5)), closes [#2](https://github.com/Itee/itee-server/issues/2)
120
+ * **package:** update package lock ([246bec6](https://github.com/Itee/itee-server/commit/246bec6b9d70fe526f4d86fb4460e5c93f20d43d)), closes [#7](https://github.com/Itee/itee-server/issues/7)
121
+
122
+ # [6.1.0](https://github.com/Itee/itee-server/compare/v6.0.0...v6.1.0) (2019-08-12)
123
+
124
+
125
+ ### Bug Fixes
126
+
127
+ * **tbackendmanager:** fix router initialisation ([2fae240](https://github.com/Itee/itee-server/commit/2fae240))
128
+ * **tbackendmanager:** fix stop method crash in case no callback was provide ([cac1489](https://github.com/Itee/itee-server/commit/cac1489))
129
+
130
+
131
+ ### Features
132
+
133
+ * **docs:** add documentation to github ([2619908](https://github.com/Itee/itee-server/commit/2619908))
134
+ * **tbackendmanager:** allow to load middlesware from package and/or local folder, like routers ([e813ab4](https://github.com/Itee/itee-server/commit/e813ab4))
135
+
136
+ # [6.0.0](https://github.com/Itee/itee-server/compare/v5.5.4...v6.0.0) (2019-08-05)
137
+
138
+
139
+ ### Bug Fixes
140
+
141
+ * **gulpfile:** fix default name of package to use in banner ([67b76eb](https://github.com/Itee/itee-server/commit/67b76eb))
142
+ * **package:** fix main and module keys to target builds and add postversion script ([62990b6](https://github.com/Itee/itee-server/commit/62990b6))
143
+ * **rollupbenchconfig:** fix files to use under benchs tests ([d6dd453](https://github.com/Itee/itee-server/commit/d6dd453))
144
+ * **tserver:** remove duplicate applications declaration and remove/add some express config ([05dea56](https://github.com/Itee/itee-server/commit/05dea56))
145
+ * **tserver:** update error message, and remove bad conditional check in initRouters ([734127c](https://github.com/Itee/itee-server/commit/734127c))
146
+
147
+
148
+ ### Build System
149
+
150
+ * **gulpfile:** remove iife and umd support ([e73ea2e](https://github.com/Itee/itee-server/commit/e73ea2e))
151
+
152
+
153
+ ### Code Refactoring
154
+
155
+ * **tbackendmanager:** rename tserver into tbackendmanager ([d67c08f](https://github.com/Itee/itee-server/commit/d67c08f))
156
+ * **tserver:** update the router usage and declaration ([2420565](https://github.com/Itee/itee-server/commit/2420565))
157
+
158
+
159
+ ### Features
160
+
161
+ * **tserver:** allow to load local middleware for application, and refactor in smarter way ([0c047e2](https://github.com/Itee/itee-server/commit/0c047e2))
162
+ * **tserver:** allow to start multiple servers. use map to cache them. refactor the start message ([c4f0eda](https://github.com/Itee/itee-server/commit/c4f0eda))
163
+
164
+
165
+ ### BREAKING CHANGES
166
+
167
+ * **tbackendmanager:** rename tserver to tbackendmanager
168
+ * **tserver:** the routers declaration change, and related configuration is now under application
169
+ * **gulpfile:** remove iife and umd bundles
package/LICENSE.md ADDED
@@ -0,0 +1,23 @@
1
+ ### BSD-3-Clause License
2
+
3
+ **Copyright (c) 2015-Present, Itee, Valcke Tristan [https://github.com/Itee](https://github.com/Itee). All rights reserved.**
4
+
5
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
+
7
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+ - Neither the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
12
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
13
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
14
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
15
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
16
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
17
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
18
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
20
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21
+
22
+ You should have received a copy of the [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) along
23
+ with this program. If not, see [https://opensource.org/licenses/BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause).
package/README.md ADDED
@@ -0,0 +1,132 @@
1
+
2
+ <h1 align="center">[Itee Server]</h1>
3
+ <br>
4
+
5
+ <p align="center">The itee server is the back end part of the itee solution predicted for running WebGL 3d content.
6
+ It allow to CRUD operation throught an RestFull Api in link with a mongo database.</p>
7
+ <br>
8
+
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/package/itee-server" target="_blank" rel="noopener noreferrer">
11
+ <img src="https://img.shields.io/npm/v/itee-server" alt="Current package version">
12
+ </a>
13
+ <a href="https://github.com/Itee/itee-server" target="_blank" rel="noopener noreferrer">
14
+ <img src="https://github.com/Itee/itee-server/actions/workflows/node.js.yml/badge.svg" alt="Itee-Server CI">
15
+ </a>
16
+ <a href="https://github.com/semantic-release/semantic-release" target="_blank" rel="noopener noreferrer">
17
+ <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="Build status">
18
+ </a>
19
+ </p>
20
+
21
+ <br>
22
+ <h2>How to install</h2>
23
+
24
+ From npm:
25
+
26
+ npm install itee-server
27
+
28
+ If you want to build the repository from source follow these instructions:
29
+
30
+ git clone https://github.com/Itee/itee-server.git
31
+ npm install
32
+ npm run build
33
+
34
+ <br>
35
+ <h2>How to use</h2>
36
+
37
+ <p align="center">At begin was <a href="https://itee.github.io/itee-server/">RTFM</a> !</p>
38
+ <br>
39
+ In case you have clone the repository you could also auto-generate the library documentation using:
40
+
41
+ npm run doc
42
+
43
+ then you will be able to use like this:
44
+
45
+ import { TBackendManager } from 'itee-server'
46
+
47
+ const backendManager = new TBackendManager({
48
+
49
+ rootPath: path.join( __dirname, '..', 'servers' ),
50
+
51
+ databases: [
52
+ {
53
+ type: 'TMongoDBDatabase',
54
+ name: 'MongoDB',
55
+ databaseUrl: `mongodb://127.0.0.1:27017/mydb`,
56
+ plugins: []
57
+ }
58
+ ],
59
+
60
+ applications: {
61
+
62
+ // All express configs, see: https://expressjs.com/en/4x/api.html#app.set
63
+ env: process.env.NODE_ENV,
64
+
65
+ // All express middleswares
66
+ middlewares: {
67
+
68
+ morgan: {
69
+ interval: '1d',
70
+ directoryPath: path.join( __dirname, '..', 'servers/logs/access.log' ),
71
+ fileName: 'access.log'
72
+ },
73
+
74
+ favicon: {
75
+ path: path.join( __dirname, '..', 'servers/resources/favicon.ico' )
76
+ },
77
+
78
+ //...
79
+
80
+ },
81
+
82
+ // Static routers
83
+ routers: {
84
+ '/': 'index/index.js',
85
+ '/downloads': 'downloads/downloads.js',
86
+ '/resources': 'resources/resources.js'
87
+ },
88
+
89
+ },
90
+
91
+ servers: {
92
+ type: 'http',
93
+ max_headers_count: 1100,
94
+ timeout: 30000
95
+ }
96
+
97
+ })
98
+
99
+
100
+ <br>
101
+ <h2>License (BSD-3-Clause)</h2>
102
+
103
+ <div class="prettyprint source">
104
+ <code style=" color: #ddd; font-size: 16px; ">
105
+ <p><b>Copyright (c) 2015-Present, Itee, Valcke Tristan <a href="https://github.com/Itee">https://github.com/Itee</a>. All rights reserved.</b></p>
106
+
107
+ <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
108
+
109
+ <ul>
110
+ <li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
111
+
112
+ <li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
113
+
114
+ <li>Neither the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
115
+ </ul>
116
+
117
+ <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
118
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
119
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
120
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
121
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
122
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
123
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
124
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
125
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
126
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
127
+
128
+ <p>You should have received a copy of the <a href="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause</a> along
129
+ with this program. If not, see <a href="https://opensource.org/licenses/BSD-3-Clause">https://opensource.org/licenses/BSD-3-Clause</a>.</p>
130
+ </code>
131
+ </div>
132
+