140 Commits

Author SHA1 Message Date
Convly
d9febfb963 v4.4.0 2022-09-28 14:25:44 +02:00
Rémi de Juvigny
061f59b155
Merge pull request #14455 from strapi/custom-fields/ts-generator
Add custom fields to Typescript generators
2022-09-21 15:08:49 +02:00
Rémi de Juvigny
cac7372a7f Fix test using wrong type 2022-09-21 14:50:53 +02:00
Alexandre Bodin
8ebf58d9ed v4.3.9 2022-09-21 14:17:36 +02:00
Rémi de Juvigny
1931224373 Add tests 2022-09-21 13:38:43 +02:00
Rémi de Juvigny
cb10c9a81a Add custom fields to TS generators 2022-09-21 12:29:06 +02:00
Alexandre Bodin
6654ad3528 Add node 18 2022-09-08 08:44:27 +02:00
Alexandre Bodin
c44f21d5ba v4.3.8 2022-09-07 16:47:41 +02:00
Alexandre Bodin
73f523b983 v4.3.7 2022-09-07 14:24:30 +02:00
Alexandre Bodin
4c6e67c493 v4.3.6 2022-08-24 15:53:23 +02:00
Alexandre Bodin
a52b053551 v4.3.5 2022-08-24 14:10:18 +02:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
Alexandre Bodin
28a2a00db8 v4.3.4 2022-08-11 10:17:34 +02:00
Alexandre Bodin
4d60bfdeee v4.3.3 2022-08-10 14:08:54 +02:00
Alexandre Bodin
655615b738 Upgrade babel 2022-08-03 12:09:08 +02:00
Alexandre BODIN
f2002891c4
Merge pull request #13952 from strapi/dependabot/npm_and_yarn/babel/plugin-transform-runtime-7.18.10
Bump @babel/plugin-transform-runtime from 7.16.7 to 7.18.10
2022-08-03 11:58:45 +02:00
Alexandre BODIN
803e50d18b
Merge pull request #13956 from strapi/dependabot/npm_and_yarn/babel/parser-7.18.10
Bump @babel/parser from 7.18.6 to 7.18.10
2022-08-03 11:56:59 +02:00
dependabot[bot]
1852eb40f1
Bump @babel/parser from 7.18.6 to 7.18.10
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.18.6 to 7.18.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.10/packages/babel-parser)

---
updated-dependencies:
- dependency-name: "@babel/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 09:11:02 +00:00
dependabot[bot]
202eb2350b
Bump @babel/plugin-transform-runtime from 7.16.7 to 7.18.10
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.16.7 to 7.18.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.10/packages/babel-plugin-transform-runtime)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 09:04:11 +00:00
Convly
a7eb9c81e6 Fix return type def 2022-08-03 09:51:45 +02:00
Convly
bf9c618a83 Fix invalid return for ts get-config-path 2022-08-03 09:50:27 +02:00
Alexandre BODIN
c282437dac
Merge pull request #13848 from strapi/dependabot/npm_and_yarn/babel/plugin-transform-modules-commonjs-7.18.6
Bump @babel/plugin-transform-modules-commonjs from 7.16.7 to 7.18.6
2022-08-02 18:16:09 +02:00
Convly
20259d944d Fix ts utils' getConfigPath returning false positive due to ancestors lookup 2022-08-02 10:52:10 +02:00
Alexandre Bodin
7039c0d228 v4.3.2 2022-08-01 17:18:09 +02:00
Pierre Noël
1eab2fb08c v4.3.1 2022-08-01 16:44:44 +02:00
dependabot[bot]
a7271ddca1
Bump @babel/plugin-transform-modules-commonjs from 7.16.7 to 7.18.6
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.16.7 to 7.18.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.6/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-27 12:51:48 +00:00
Convly
74a2b908df v4.3.0 2022-07-27 14:44:39 +02:00
Convly
0b8c7b59c6 Merge branch 'master' into features/typescript 2022-07-25 09:30:18 +02:00
Convly
704cdd8ae7 Use ISOString instead of Date for Default date values 2022-07-21 15:48:47 +02:00
Convly
d0168cf957 Handle dates 2022-07-21 08:46:35 +02:00
Convly
870dd61c28 Add silent option, rename from content-types:generate-types to ts:generate-types 2022-07-21 08:37:40 +02:00
Alexandre Bodin
fe296baf71 v4.2.3 2022-07-13 14:20:58 +02:00
Convly
c29a20349f Add tests for global module definition 2022-07-11 10:24:30 +02:00
Convly
9c4e9c500f Add missing tests for attributes properties generation 2022-07-08 15:06:52 +02:00
dependabot[bot]
7039b63aff
Bump @babel/generator from 7.16.7 to 7.18.7
Bumps [@babel/generator](https://github.com/babel/babel/tree/HEAD/packages/babel-generator) from 7.16.7 to 7.18.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.7/packages/babel-generator)

---
updated-dependencies:
- dependency-name: "@babel/generator"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 10:17:02 +00:00
Convly
a3672cf3d1 Merge branch 'features/typescript' into typescript/schema-types-generation 2022-07-07 16:30:56 +02:00
Convly
a5fbcc9e48 Merge branch 'master' into features/typescript 2022-07-07 15:20:34 +02:00
Convly
fbf166908b Improve test coverage for imports & attributes 2022-07-07 15:16:09 +02:00
Convly
4b17487953 Fix typo: litteral -> literal 2022-07-07 01:22:13 +02:00
Convly
fa240cfee3 Add unit tests for typescript generators utils 2022-07-07 01:20:36 +02:00
Convly
3b48fd1fcb Fix toTypeLiteral util - handle undefined and null, throw on function types 2022-07-07 01:19:57 +02:00
Convly
d587de6b19 Handle UID attributes when generating attributes types definition 2022-07-06 15:58:46 +02:00
Convly
dde36c88f1 Fix morph type detection 2022-07-06 15:31:57 +02:00
Convly
531977f9da Use lodash pipe instead of lodash flow 2022-07-06 15:26:56 +02:00
Convly
bac691d797 Move the attributes mappers outside of the generation function 2022-07-06 15:25:34 +02:00
Convly
93af3acbd1 Use _ instead of fp as variable name for the lodash import 2022-07-06 15:23:20 +02:00
Convly
1fe3db7126 Slightly improve performance when merging schemas definitions with new lines 2022-07-06 15:14:39 +02:00
Convly
870318b05a Replace 'debug' mode by a 'verbose' one 2022-07-06 14:56:26 +02:00
Convly
6e0e9d3526 Remove dependency to @strapi/strapi 2022-07-06 14:54:51 +02:00