@odata2ts/odata2ts 0.20.0 → 0.20.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +52 -12
  3. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.20.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.20.0...@odata2ts/odata2ts@0.20.1) (2023-04-08)
7
+
8
+ **Note:** Version bump only for package @odata2ts/odata2ts
9
+
6
10
  # [0.20.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.19.2...@odata2ts/odata2ts@0.20.0) (2023-04-04)
7
11
 
8
12
  ### Features
package/README.md CHANGED
@@ -2,34 +2,74 @@
2
2
 
3
3
  # odata2ts
4
4
 
5
- Generate TypeScript models, magical q-objects and / or complete client services
6
- from readily available metadata descriptions of your OData service.
5
+ The basic idea of `odata2ts` is to leverage the readily available metadata of any OData service
6
+ to generate different sorts of typed artefacts which you use in your TypeScript code.
7
+ This package `@odata2ts/odata2ts` realizes the generation process.
8
+
9
+ The generator is supposed to be used with a TypeScript based configuration file.
10
+ Then it's able to handle the generation for multiple OData services.
11
+
12
+ It comes with powerful configuration options. Some highlights:
13
+ - generation of TypeScript files or compiled JS / DTS files
14
+ - name or rename stuff
15
+ - naming of pretty much any aspect of the generated artefacts
16
+ - e.g. all types should be prefixed with an "I", Person => IPerson
17
+ - consistent casing (as in "camelCase" or "PascalCase") even for property names of entity types
18
+ - use type converters
19
+
20
+ See the [generator documentation](https://odata2ts.github.io/docs/generator/setup-and-usage) for more information.
7
21
 
8
22
  ## Installation
9
23
 
10
24
  ```
11
25
  npm install --save-dev @odata2ts/odata2ts
12
-
13
- yarn add --dev @odata2ts/odata2ts
14
26
  ```
15
27
 
16
- ## Implicit Dependencies
17
- The generated artefacts depend on other libraries. `odata2ts` lists them as peer dependencies.
18
- Hence, you will need to add runtime dependencies matching the mentioned peer dependencies.
19
- See the Getting Started Guide of the documentation.
28
+ ### Implicit Dependencies
29
+ Most of the generated artefacts depend on other libraries. `odata2ts` lists them as peer dependencies.
30
+
31
+ Depending on your use case, you will need to add runtime dependencies matching the mentioned peer dependencies.
32
+ See the [Getting Started Guide](https://odata2ts.github.io/docs/category/getting-started/) of the documentation
33
+ for guidance.
20
34
 
21
35
  ## Documentation
36
+ [Generator Documentation](https://odata2ts.github.io/docs/generator/setup-and-usage)
37
+
22
38
  Main documentation for the odata2ts eco system:
23
39
  [https://odata2ts.github.io](https://odata2ts.github.io/)
24
40
 
41
+
25
42
  ## Examples
26
43
  See [example packages](https://github.com/odata2ts/odata2ts/tree/main/examples) for examples of how to integrate `odata2ts`.
27
44
 
45
+ ## Tests
46
+ See folder [test](https://github.com/odata2ts/odata2ts/tree/main/packages/odata2ts/test)
47
+ for unit tests.
48
+
49
+ See folder [int-test](https://github.com/odata2ts/odata2ts/tree/main/packages/odata2ts/int-test) for integration
50
+ tests of the CLI.
51
+
52
+ Each example package serves as integration test of the generator.
53
+
54
+ ## Support, Feedback, Contributing
55
+ This project is open to feature requests, suggestions, bug reports, usage questions etc.
56
+ via [GitHub issues](https://github.com/odata2ts/odata2ts/issues).
57
+
58
+ Contributions and feedback are encouraged and always welcome.
59
+
60
+ See the [contribution guidelines](https://github.com/odata2ts/odata2ts/blob/main/CONTRIBUTING.md) for further information.
61
+
28
62
  ## Spirit
29
- * Adhere to the OData specification as much as possible
30
- * Test Driven Development
31
- * High Code Coverage: > 90%
63
+ This project and this module have been created and are maintained in the following spirit:
64
+
65
+ * adhere to the **OData specification** as much as possible
66
+ * support any OData service implementation which conforms to the spec
67
+ * allow to work around faulty implementations if possible
68
+ * stability matters
69
+ * exercise Test Driven Development
70
+ * bomb the place with unit tests (code coverage > 95%)
71
+ * ensure that assumptions & understanding are correct by creating integration tests
32
72
 
33
73
  ## License
34
- MIT
74
+ MIT - see [License](./LICENSE).
35
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odata2ts/odata2ts",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,14 +46,14 @@
46
46
  "js"
47
47
  ],
48
48
  "peerDependencies": {
49
- "@odata2ts/odata-client-api": "^0.6.0",
50
- "@odata2ts/odata-query-objects": "^0.17.0",
51
- "@odata2ts/odata-service": "^0.13.6"
49
+ "@odata2ts/odata-client-api": "^0.6.3",
50
+ "@odata2ts/odata-query-objects": "^0.17.1",
51
+ "@odata2ts/odata-service": "^0.13.7"
52
52
  },
53
53
  "dependencies": {
54
54
  "@odata2ts/converter-api": "^0.1.1",
55
55
  "@odata2ts/converter-runtime": "^0.1.2",
56
- "@odata2ts/odata-core": "^0.3.6",
56
+ "@odata2ts/odata-core": "^0.3.7",
57
57
  "camel-case": "^4.1.2",
58
58
  "commander": "^9.1.0",
59
59
  "constant-case": "^3.0.4",
@@ -72,9 +72,9 @@
72
72
  },
73
73
  "devDependencies": {
74
74
  "@odata2ts/converter-v2-to-v4": "^0.1.2",
75
- "@odata2ts/odata-client-api": "^0.6.2",
76
- "@odata2ts/odata-query-objects": "^0.17.0",
77
- "@odata2ts/odata-service": "^0.13.6",
75
+ "@odata2ts/odata-client-api": "^0.6.3",
76
+ "@odata2ts/odata-query-objects": "^0.17.1",
77
+ "@odata2ts/odata-service": "^0.13.7",
78
78
  "@types/fs-extra": "^9.0.13",
79
79
  "@types/jest": "^27.4.1",
80
80
  "@types/node": "^17.0.23",
@@ -88,6 +88,6 @@
88
88
  "typescript": "^4.9.4"
89
89
  },
90
90
  "types": "./lib/index.d.ts",
91
- "gitHead": "7342db39191ee043048e00496beefa3991df4a7a",
91
+ "gitHead": "e822bca2fc167a490cd7467167868c624fe7b9a1",
92
92
  "readme": "README.md"
93
93
  }