Skip to content

Commit 22530a8

Browse files
authored
Merge pull request #6653 from mermaid-js/4459-remove-beta-suffix
#4459: Remove beta suffix
2 parents e6574ef + a14cd0e commit 22530a8

File tree

23 files changed

+343
-308
lines changed

23 files changed

+343
-308
lines changed

.changeset/chatty-lemons-stick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mermaid': patch
3+
---
4+
5+
chore: Remove the "-beta" suffix from the XYChart, Block, Sankey diagrams to reflect their stable status

cypress/integration/rendering/block.spec.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Block diagram', () => {
1616

1717
it('BL2: should handle columns statement in sub-blocks', () => {
1818
imgSnapshotTest(
19-
`block-beta
19+
`block
2020
id1["Hello"]
2121
block
2222
columns 3
@@ -32,7 +32,7 @@ describe('Block diagram', () => {
3232

3333
it('BL3: should align block widths and handle columns statement in sub-blocks', () => {
3434
imgSnapshotTest(
35-
`block-beta
35+
`block
3636
block
3737
columns 1
3838
id1
@@ -48,7 +48,7 @@ describe('Block diagram', () => {
4848

4949
it('BL4: should align block widths and handle columns statements in deeper sub-blocks then 1 level', () => {
5050
imgSnapshotTest(
51-
`block-beta
51+
`block
5252
columns 1
5353
block
5454
columns 1
@@ -68,7 +68,7 @@ describe('Block diagram', () => {
6868

6969
it('BL5: should align block widths and handle columns statements in deeper sub-blocks then 1 level (alt)', () => {
7070
imgSnapshotTest(
71-
`block-beta
71+
`block
7272
columns 1
7373
block
7474
id1
@@ -87,7 +87,7 @@ describe('Block diagram', () => {
8787

8888
it('BL6: should handle block arrows and spece statements', () => {
8989
imgSnapshotTest(
90-
`block-beta
90+
`block
9191
columns 3
9292
space:3
9393
ida idb idc
@@ -106,7 +106,7 @@ describe('Block diagram', () => {
106106

107107
it('BL7: should handle different types of edges', () => {
108108
imgSnapshotTest(
109-
`block-beta
109+
`block
110110
columns 3
111111
A space:5
112112
A --o B
@@ -119,7 +119,7 @@ describe('Block diagram', () => {
119119

120120
it('BL8: should handle sub-blocks without columns statements', () => {
121121
imgSnapshotTest(
122-
`block-beta
122+
`block
123123
columns 2
124124
C A B
125125
block
@@ -133,7 +133,7 @@ describe('Block diagram', () => {
133133

134134
it('BL9: should handle edges from blocks in sub blocks to other blocks', () => {
135135
imgSnapshotTest(
136-
`block-beta
136+
`block
137137
columns 3
138138
B space
139139
block
@@ -147,7 +147,7 @@ describe('Block diagram', () => {
147147

148148
it('BL10: should handle edges from composite blocks', () => {
149149
imgSnapshotTest(
150-
`block-beta
150+
`block
151151
columns 3
152152
B space
153153
block BL
@@ -161,7 +161,7 @@ describe('Block diagram', () => {
161161

162162
it('BL11: should handle edges to composite blocks', () => {
163163
imgSnapshotTest(
164-
`block-beta
164+
`block
165165
columns 3
166166
B space
167167
block BL
@@ -175,7 +175,7 @@ describe('Block diagram', () => {
175175

176176
it('BL12: edges should handle labels', () => {
177177
imgSnapshotTest(
178-
`block-beta
178+
`block
179179
A
180180
space
181181
A -- "apa" --> E
@@ -186,7 +186,7 @@ describe('Block diagram', () => {
186186

187187
it('BL13: should handle block arrows in different directions', () => {
188188
imgSnapshotTest(
189-
`block-beta
189+
`block
190190
columns 3
191191
space blockArrowId1<["down"]>(down) space
192192
blockArrowId2<["right"]>(right) blockArrowId3<["Sync"]>(x, y) blockArrowId4<["left"]>(left)
@@ -199,7 +199,7 @@ describe('Block diagram', () => {
199199

200200
it('BL14: should style statements and class statements', () => {
201201
imgSnapshotTest(
202-
`block-beta
202+
`block
203203
A
204204
B
205205
classDef blue fill:#66f,stroke:#333,stroke-width:2px;
@@ -212,7 +212,7 @@ describe('Block diagram', () => {
212212

213213
it('BL15: width alignment - D and E should share available space', () => {
214214
imgSnapshotTest(
215-
`block-beta
215+
`block
216216
block
217217
D
218218
E
@@ -225,7 +225,7 @@ describe('Block diagram', () => {
225225

226226
it('BL16: width alignment - C should be as wide as the composite block', () => {
227227
imgSnapshotTest(
228-
`block-beta
228+
`block
229229
block
230230
A("This is the text")
231231
B
@@ -238,7 +238,7 @@ describe('Block diagram', () => {
238238

239239
it('BL17: width alignment - blocks should be equal in width', () => {
240240
imgSnapshotTest(
241-
`block-beta
241+
`block
242242
A("This is the text")
243243
B
244244
C
@@ -249,7 +249,7 @@ describe('Block diagram', () => {
249249

250250
it('BL18: block types 1 - square, rounded and circle', () => {
251251
imgSnapshotTest(
252-
`block-beta
252+
`block
253253
A["square"]
254254
B("rounded")
255255
C(("circle"))
@@ -260,7 +260,7 @@ describe('Block diagram', () => {
260260

261261
it('BL19: block types 2 - odd, diamond and hexagon', () => {
262262
imgSnapshotTest(
263-
`block-beta
263+
`block
264264
A>"rect_left_inv_arrow"]
265265
B{"diamond"}
266266
C{{"hexagon"}}
@@ -271,7 +271,7 @@ describe('Block diagram', () => {
271271

272272
it('BL20: block types 3 - stadium', () => {
273273
imgSnapshotTest(
274-
`block-beta
274+
`block
275275
A(["stadium"])
276276
`,
277277
{}
@@ -280,7 +280,7 @@ describe('Block diagram', () => {
280280

281281
it('BL21: block types 4 - lean right, lean left, trapezoid and inv trapezoid', () => {
282282
imgSnapshotTest(
283-
`block-beta
283+
`block
284284
A[/"lean right"/]
285285
B[\"lean left"\]
286286
C[/"trapezoid"\]
@@ -292,7 +292,7 @@ describe('Block diagram', () => {
292292

293293
it('BL22: block types 1 - square, rounded and circle', () => {
294294
imgSnapshotTest(
295-
`block-beta
295+
`block
296296
A["square"]
297297
B("rounded")
298298
C(("circle"))
@@ -303,7 +303,7 @@ describe('Block diagram', () => {
303303

304304
it('BL23: sizing - it should be possible to make a block wider', () => {
305305
imgSnapshotTest(
306-
`block-beta
306+
`block
307307
A("rounded"):2
308308
B:2
309309
C
@@ -314,7 +314,7 @@ describe('Block diagram', () => {
314314

315315
it('BL24: sizing - it should be possible to make a composite block wider', () => {
316316
imgSnapshotTest(
317-
`block-beta
317+
`block
318318
block:2
319319
A
320320
end
@@ -326,7 +326,7 @@ describe('Block diagram', () => {
326326

327327
it('BL25: block in the middle with space on each side', () => {
328328
imgSnapshotTest(
329-
`block-beta
329+
`block
330330
columns 3
331331
space
332332
middle["In the middle"]
@@ -337,7 +337,7 @@ describe('Block diagram', () => {
337337
});
338338
it('BL26: space and an edge', () => {
339339
imgSnapshotTest(
340-
`block-beta
340+
`block
341341
columns 5
342342
A space B
343343
A --x B
@@ -347,7 +347,7 @@ describe('Block diagram', () => {
347347
});
348348
it('BL27: block sizes for regular blocks', () => {
349349
imgSnapshotTest(
350-
`block-beta
350+
`block
351351
columns 3
352352
a["A wide one"] b:2 c:2 d
353353
`,
@@ -356,7 +356,7 @@ describe('Block diagram', () => {
356356
});
357357
it('BL28: composite block with a set width - f should use the available space', () => {
358358
imgSnapshotTest(
359-
`block-beta
359+
`block
360360
columns 3
361361
a:3
362362
block:e:3
@@ -370,7 +370,7 @@ describe('Block diagram', () => {
370370

371371
it('BL29: composite block with a set width - f and g should split the available space', () => {
372372
imgSnapshotTest(
373-
`block-beta
373+
`block
374374
columns 3
375375
a:3
376376
block:e:3

cypress/integration/rendering/sankey.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Sankey Diagram', () => {
1515
describe('when given a linkColor', function () {
1616
this.beforeAll(() => {
1717
cy.wrap(
18-
`sankey-beta
18+
`sankey
1919
a,b,10
2020
`
2121
).as('graph');
@@ -62,7 +62,7 @@ describe('Sankey Diagram', () => {
6262
this.beforeAll(() => {
6363
cy.wrap(
6464
`
65-
sankey-beta
65+
sankey
6666
6767
a,b,8
6868
b,c,8

0 commit comments

Comments
 (0)