projen-modules 4.6.0 → 5.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/.jsii CHANGED
@@ -3746,50 +3746,6 @@
3746
3746
  ],
3747
3747
  "symbolId": "src/projects/cdk-ts/deployment-environment:DeploymentEnvironment"
3748
3748
  },
3749
- "projen-modules.ISectionOptions": {
3750
- "assembly": "projen-modules",
3751
- "docs": {
3752
- "stability": "stable"
3753
- },
3754
- "fqn": "projen-modules.ISectionOptions",
3755
- "kind": "interface",
3756
- "locationInModule": {
3757
- "filename": "src/components/readme/elements/section.ts",
3758
- "line": 1
3759
- },
3760
- "name": "ISectionOptions",
3761
- "properties": [
3762
- {
3763
- "abstract": true,
3764
- "docs": {
3765
- "stability": "stable"
3766
- },
3767
- "locationInModule": {
3768
- "filename": "src/components/readme/elements/section.ts",
3769
- "line": 3
3770
- },
3771
- "name": "body",
3772
- "type": {
3773
- "primitive": "string"
3774
- }
3775
- },
3776
- {
3777
- "abstract": true,
3778
- "docs": {
3779
- "stability": "stable"
3780
- },
3781
- "locationInModule": {
3782
- "filename": "src/components/readme/elements/section.ts",
3783
- "line": 2
3784
- },
3785
- "name": "title",
3786
- "type": {
3787
- "primitive": "string"
3788
- }
3789
- }
3790
- ],
3791
- "symbolId": "src/components/readme/elements/section:ISectionOptions"
3792
- },
3793
3749
  "projen-modules.JsiiProject": {
3794
3750
  "assembly": "projen-modules",
3795
3751
  "base": "projen.cdk.JsiiProject",
@@ -11761,13 +11717,13 @@
11761
11717
  },
11762
11718
  "locationInModule": {
11763
11719
  "filename": "src/components/readme/elements/section.ts",
11764
- "line": 8
11720
+ "line": 14
11765
11721
  },
11766
11722
  "parameters": [
11767
11723
  {
11768
11724
  "name": "options",
11769
11725
  "type": {
11770
- "fqn": "projen-modules.ISectionOptions"
11726
+ "fqn": "projen-modules.SectionOptions"
11771
11727
  }
11772
11728
  }
11773
11729
  ]
@@ -11775,7 +11731,7 @@
11775
11731
  "kind": "class",
11776
11732
  "locationInModule": {
11777
11733
  "filename": "src/components/readme/elements/section.ts",
11778
- "line": 6
11734
+ "line": 12
11779
11735
  },
11780
11736
  "methods": [
11781
11737
  {
@@ -11784,7 +11740,7 @@
11784
11740
  },
11785
11741
  "locationInModule": {
11786
11742
  "filename": "src/components/readme/elements/section.ts",
11787
- "line": 11
11743
+ "line": 17
11788
11744
  },
11789
11745
  "name": "synth",
11790
11746
  "returns": {
@@ -11803,17 +11759,66 @@
11803
11759
  "immutable": true,
11804
11760
  "locationInModule": {
11805
11761
  "filename": "src/components/readme/elements/section.ts",
11806
- "line": 7
11762
+ "line": 13
11807
11763
  },
11808
11764
  "name": "options",
11809
11765
  "type": {
11810
- "fqn": "projen-modules.ISectionOptions"
11766
+ "fqn": "projen-modules.SectionOptions"
11811
11767
  }
11812
11768
  }
11813
11769
  ],
11814
11770
  "symbolId": "src/components/readme/elements/section:Section"
11771
+ },
11772
+ "projen-modules.SectionOptions": {
11773
+ "assembly": "projen-modules",
11774
+ "datatype": true,
11775
+ "docs": {
11776
+ "stability": "stable"
11777
+ },
11778
+ "fqn": "projen-modules.SectionOptions",
11779
+ "kind": "interface",
11780
+ "locationInModule": {
11781
+ "filename": "src/components/readme/elements/section.ts",
11782
+ "line": 1
11783
+ },
11784
+ "name": "SectionOptions",
11785
+ "properties": [
11786
+ {
11787
+ "abstract": true,
11788
+ "docs": {
11789
+ "stability": "stable",
11790
+ "summary": "The markdown content of the section."
11791
+ },
11792
+ "immutable": true,
11793
+ "locationInModule": {
11794
+ "filename": "src/components/readme/elements/section.ts",
11795
+ "line": 9
11796
+ },
11797
+ "name": "body",
11798
+ "type": {
11799
+ "primitive": "string"
11800
+ }
11801
+ },
11802
+ {
11803
+ "abstract": true,
11804
+ "docs": {
11805
+ "stability": "stable",
11806
+ "summary": "The heading of the section."
11807
+ },
11808
+ "immutable": true,
11809
+ "locationInModule": {
11810
+ "filename": "src/components/readme/elements/section.ts",
11811
+ "line": 5
11812
+ },
11813
+ "name": "title",
11814
+ "type": {
11815
+ "primitive": "string"
11816
+ }
11817
+ }
11818
+ ],
11819
+ "symbolId": "src/components/readme/elements/section:SectionOptions"
11815
11820
  }
11816
11821
  },
11817
- "version": "4.6.0",
11818
- "fingerprint": "FPqrAwKcURWT1wMe1KftZZZlz1y+mQUCz0KxMFkGumg="
11822
+ "version": "5.0.0",
11823
+ "fingerprint": "bECLvbO9z3iItoN36vGLH7mwjjnV+0vSkWpvPdcjRHc="
11819
11824
  }
package/API.md CHANGED
@@ -14655,6 +14655,49 @@ The description of the project.
14655
14655
 
14656
14656
  ---
14657
14657
 
14658
+ ### SectionOptions <a name="SectionOptions" id="projen-modules.SectionOptions"></a>
14659
+
14660
+ #### Initializer <a name="Initializer" id="projen-modules.SectionOptions.Initializer"></a>
14661
+
14662
+ ```typescript
14663
+ import { SectionOptions } from 'projen-modules'
14664
+
14665
+ const sectionOptions: SectionOptions = { ... }
14666
+ ```
14667
+
14668
+ #### Properties <a name="Properties" id="Properties"></a>
14669
+
14670
+ | **Name** | **Type** | **Description** |
14671
+ | --- | --- | --- |
14672
+ | <code><a href="#projen-modules.SectionOptions.property.body">body</a></code> | <code>string</code> | The markdown content of the section. |
14673
+ | <code><a href="#projen-modules.SectionOptions.property.title">title</a></code> | <code>string</code> | The heading of the section. |
14674
+
14675
+ ---
14676
+
14677
+ ##### `body`<sup>Required</sup> <a name="body" id="projen-modules.SectionOptions.property.body"></a>
14678
+
14679
+ ```typescript
14680
+ public readonly body: string;
14681
+ ```
14682
+
14683
+ - *Type:* string
14684
+
14685
+ The markdown content of the section.
14686
+
14687
+ ---
14688
+
14689
+ ##### `title`<sup>Required</sup> <a name="title" id="projen-modules.SectionOptions.property.title"></a>
14690
+
14691
+ ```typescript
14692
+ public readonly title: string;
14693
+ ```
14694
+
14695
+ - *Type:* string
14696
+
14697
+ The heading of the section.
14698
+
14699
+ ---
14700
+
14658
14701
  ## Classes <a name="Classes" id="Classes"></a>
14659
14702
 
14660
14703
  ### ReadmeOrder <a name="ReadmeOrder" id="projen-modules.ReadmeOrder"></a>
@@ -14730,18 +14773,18 @@ How to use and operate the project.
14730
14773
  ```typescript
14731
14774
  import { Section } from 'projen-modules'
14732
14775
 
14733
- new Section(options: ISectionOptions)
14776
+ new Section(options: SectionOptions)
14734
14777
  ```
14735
14778
 
14736
14779
  | **Name** | **Type** | **Description** |
14737
14780
  | --- | --- | --- |
14738
- | <code><a href="#projen-modules.Section.Initializer.parameter.options">options</a></code> | <code><a href="#projen-modules.ISectionOptions">ISectionOptions</a></code> | *No description.* |
14781
+ | <code><a href="#projen-modules.Section.Initializer.parameter.options">options</a></code> | <code><a href="#projen-modules.SectionOptions">SectionOptions</a></code> | *No description.* |
14739
14782
 
14740
14783
  ---
14741
14784
 
14742
14785
  ##### `options`<sup>Required</sup> <a name="options" id="projen-modules.Section.Initializer.parameter.options"></a>
14743
14786
 
14744
- - *Type:* <a href="#projen-modules.ISectionOptions">ISectionOptions</a>
14787
+ - *Type:* <a href="#projen-modules.SectionOptions">SectionOptions</a>
14745
14788
 
14746
14789
  ---
14747
14790
 
@@ -14764,54 +14807,19 @@ public synth(): string
14764
14807
 
14765
14808
  | **Name** | **Type** | **Description** |
14766
14809
  | --- | --- | --- |
14767
- | <code><a href="#projen-modules.Section.property.options">options</a></code> | <code><a href="#projen-modules.ISectionOptions">ISectionOptions</a></code> | *No description.* |
14810
+ | <code><a href="#projen-modules.Section.property.options">options</a></code> | <code><a href="#projen-modules.SectionOptions">SectionOptions</a></code> | *No description.* |
14768
14811
 
14769
14812
  ---
14770
14813
 
14771
14814
  ##### `options`<sup>Required</sup> <a name="options" id="projen-modules.Section.property.options"></a>
14772
14815
 
14773
14816
  ```typescript
14774
- public readonly options: ISectionOptions;
14775
- ```
14776
-
14777
- - *Type:* <a href="#projen-modules.ISectionOptions">ISectionOptions</a>
14778
-
14779
- ---
14780
-
14781
-
14782
- ## Protocols <a name="Protocols" id="Protocols"></a>
14783
-
14784
- ### ISectionOptions <a name="ISectionOptions" id="projen-modules.ISectionOptions"></a>
14785
-
14786
- - *Implemented By:* <a href="#projen-modules.ISectionOptions">ISectionOptions</a>
14787
-
14788
-
14789
- #### Properties <a name="Properties" id="Properties"></a>
14790
-
14791
- | **Name** | **Type** | **Description** |
14792
- | --- | --- | --- |
14793
- | <code><a href="#projen-modules.ISectionOptions.property.body">body</a></code> | <code>string</code> | *No description.* |
14794
- | <code><a href="#projen-modules.ISectionOptions.property.title">title</a></code> | <code>string</code> | *No description.* |
14795
-
14796
- ---
14797
-
14798
- ##### `body`<sup>Required</sup> <a name="body" id="projen-modules.ISectionOptions.property.body"></a>
14799
-
14800
- ```typescript
14801
- public readonly body: string;
14817
+ public readonly options: SectionOptions;
14802
14818
  ```
14803
14819
 
14804
- - *Type:* string
14820
+ - *Type:* <a href="#projen-modules.SectionOptions">SectionOptions</a>
14805
14821
 
14806
14822
  ---
14807
14823
 
14808
- ##### `title`<sup>Required</sup> <a name="title" id="projen-modules.ISectionOptions.property.title"></a>
14809
14824
 
14810
- ```typescript
14811
- public readonly title: string;
14812
- ```
14813
-
14814
- - *Type:* string
14815
-
14816
- ---
14817
14825
 
@@ -1,9 +1,15 @@
1
- export interface ISectionOptions {
2
- title: string;
3
- body: string;
1
+ export interface SectionOptions {
2
+ /**
3
+ * The heading of the section
4
+ */
5
+ readonly title: string;
6
+ /**
7
+ * The markdown content of the section
8
+ */
9
+ readonly body: string;
4
10
  }
5
11
  export declare class Section {
6
- readonly options: ISectionOptions;
7
- constructor(options: ISectionOptions);
12
+ readonly options: SectionOptions;
13
+ constructor(options: SectionOptions);
8
14
  synth(): string;
9
15
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Section = void 0;
4
4
  const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
5
5
  class Section {
6
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Section", version: "4.6.0" };
6
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Section", version: "5.0.0" };
7
7
  options;
8
8
  constructor(options) {
9
9
  this.options = options;
@@ -15,4 +15,4 @@ ${this.options.body}`;
15
15
  }
16
16
  }
17
17
  exports.Section = Section;
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL3JlYWRtZS9lbGVtZW50cy9zZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFLQSxNQUFhLE9BQU87O0lBQ1QsT0FBTyxDQUFrQjtJQUNsQyxZQUFZLE9BQXdCO1FBQ2xDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0lBQ3pCLENBQUM7SUFDRCxLQUFLO1FBQ0gsT0FBTyxNQUFNLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSzs7RUFFakMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNwQixDQUFDOztBQVRILDBCQVVDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJU2VjdGlvbk9wdGlvbnMge1xuICB0aXRsZTogc3RyaW5nO1xuICBib2R5OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjbGFzcyBTZWN0aW9uIHtcbiAgcmVhZG9ubHkgb3B0aW9uczogSVNlY3Rpb25PcHRpb25zO1xuICBjb25zdHJ1Y3RvcihvcHRpb25zOiBJU2VjdGlvbk9wdGlvbnMpIHtcbiAgICB0aGlzLm9wdGlvbnMgPSBvcHRpb25zO1xuICB9XG4gIHN5bnRoKCkge1xuICAgIHJldHVybiBgIyMgJHt0aGlzLm9wdGlvbnMudGl0bGV9XG5cbiR7dGhpcy5vcHRpb25zLmJvZHl9YDtcbiAgfVxufVxuIl19
18
+ //# sourceMappingUR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JdfQ==
@@ -9,7 +9,7 @@ const section_1 = require("./elements/section");
9
9
  * in between
10
10
  */
11
11
  class ReadmeOrder {
12
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.ReadmeOrder", version: "4.6.0" };
12
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.ReadmeOrder", version: "5.0.0" };
13
13
  /**
14
14
  * Sections a reader needs first, such as getting started
15
15
  */
@@ -30,7 +30,7 @@ class ReadmeOrder {
30
30
  }
31
31
  exports.ReadmeOrder = ReadmeOrder;
32
32
  class Readme extends projen_1.FileBase {
33
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Readme", version: "4.6.0" };
33
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Readme", version: "5.0.0" };
34
34
  /**
35
35
  * The README of a project, if it has one
36
36
  */
@@ -61,7 +61,7 @@ function getOptions(options) {
61
61
  * @pjid cdk-typescript-app
62
62
  */
63
63
  class CdkTypeScriptApp extends awscdk_1.AwsCdkTypeScriptApp {
64
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.CdkTypeScriptApp", version: "4.6.0" };
64
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.CdkTypeScriptApp", version: "5.0.0" };
65
65
  readme;
66
66
  constructor(options) {
67
67
  const mergedOptions = getOptions(options);
@@ -48,7 +48,7 @@ function getOptions(options) {
48
48
  * @pjid jsii-project
49
49
  */
50
50
  class JsiiProject extends projen_1.cdk.JsiiProject {
51
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.JsiiProject", version: "4.6.0" };
51
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.JsiiProject", version: "5.0.0" };
52
52
  readme;
53
53
  constructor(options) {
54
54
  const mergedOptions = getOptions(options);
@@ -47,7 +47,7 @@ function getOptions(options) {
47
47
  * @pjid npm-package
48
48
  */
49
49
  class NpmPackage extends projen_1.typescript.TypeScriptProject {
50
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.NpmPackage", version: "4.6.0" };
50
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.NpmPackage", version: "5.0.0" };
51
51
  readme;
52
52
  constructor(options) {
53
53
  const mergedOptions = getOptions(options);
@@ -43,7 +43,7 @@ function getOptions(options) {
43
43
  * @pjid python-package
44
44
  */
45
45
  class PythonPackage extends python_1.PythonProject {
46
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.PythonPackage", version: "4.6.0" };
46
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.PythonPackage", version: "5.0.0" };
47
47
  autoMerge;
48
48
  readme;
49
49
  constructor(options) {
package/package.json CHANGED
@@ -83,7 +83,7 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "version": "4.6.0",
86
+ "version": "5.0.0",
87
87
  "jest": {
88
88
  "coverageProvider": "v8",
89
89
  "testMatch": [