Skip to content

Commit ae30278

Browse files
committed
Update for 1.6.6 release
1 parent bbdc474 commit ae30278

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## [1.6.6](https://github.com/nicklockwood/ShapeScript/releases/tag/1.6.6) (2023-03-25)
4+
5+
- The position and transform of mesh and path values can now be set as if they were a block
6+
- Setting name on a block that returns a path no longer makes the result unusable in a builder
7+
- Constants and property symbols are no longer called "function" in error messages
8+
- Removed unhelpful "did you mean" suggestions when a valid symbol is used in wrong context
9+
- Improved error description for numeric list type
10+
- Fixed various bugs in the iOS source editor
11+
- Bumped SVGPath to version 1.1.3
12+
313
## [1.6.5](https://github.com/nicklockwood/ShapeScript/releases/tag/1.6.5) (2023-03-02)
414

515
- Fixed performance regression in `GeometryType.bounds` when using lathe shapes

ShapeScript.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ShapeScript",
3-
"version": "1.6.5",
3+
"version": "1.6.6",
44
"license": {
55
"type": "MIT",
66
"file": "LICENSE.md"
@@ -10,7 +10,7 @@
1010
"authors": "Nick Lockwood",
1111
"source": {
1212
"git": "https://github.com/nicklockwood/ShapeScript.git",
13-
"tag": "1.6.5"
13+
"tag": "1.6.6"
1414
},
1515
"source_files": ["ShapeScript", "LRUCache/Sources", "SVGPath/Sources"],
1616
"requires_arc": true,

ShapeScript.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@
11351135
"$(inherited)",
11361136
"@executable_path/../Frameworks",
11371137
);
1138-
MARKETING_VERSION = 1.6.5;
1138+
MARKETING_VERSION = 1.6.6;
11391139
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
11401140
PRODUCT_MODULE_NAME = Viewer;
11411141
PRODUCT_NAME = "ShapeScript Viewer";
@@ -1163,7 +1163,7 @@
11631163
"$(inherited)",
11641164
"@executable_path/../Frameworks",
11651165
);
1166-
MARKETING_VERSION = 1.6.5;
1166+
MARKETING_VERSION = 1.6.6;
11671167
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
11681168
PRODUCT_MODULE_NAME = Viewer;
11691169
PRODUCT_NAME = "ShapeScript Viewer";
@@ -1193,7 +1193,7 @@
11931193
"$(inherited)",
11941194
"@executable_path/Frameworks",
11951195
);
1196-
MARKETING_VERSION = 1.6.5;
1196+
MARKETING_VERSION = 1.6.6;
11971197
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
11981198
PRODUCT_MODULE_NAME = Viewer;
11991199
PRODUCT_NAME = ShapeScript;
@@ -1225,7 +1225,7 @@
12251225
"$(inherited)",
12261226
"@executable_path/Frameworks",
12271227
);
1228-
MARKETING_VERSION = 1.6.5;
1228+
MARKETING_VERSION = 1.6.6;
12291229
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
12301230
PRODUCT_MODULE_NAME = Viewer;
12311231
PRODUCT_NAME = ShapeScript;
@@ -1388,7 +1388,7 @@
13881388
"@executable_path/../Frameworks",
13891389
"@loader_path/Frameworks",
13901390
);
1391-
MARKETING_VERSION = 1.6.5;
1391+
MARKETING_VERSION = 1.6.6;
13921392
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
13931393
PRODUCT_NAME = ShapeScript;
13941394
SKIP_INSTALL = YES;
@@ -1419,7 +1419,7 @@
14191419
"@executable_path/../Frameworks",
14201420
"@loader_path/Frameworks",
14211421
);
1422-
MARKETING_VERSION = 1.6.5;
1422+
MARKETING_VERSION = 1.6.6;
14231423
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
14241424
PRODUCT_NAME = ShapeScript;
14251425
SKIP_INSTALL = YES;

ShapeScript/Interpreter.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111

1212
// MARK: Public interface
1313

14-
public let version = "1.6.5"
14+
public let version = "1.6.6"
1515

1616
public protocol EvaluationDelegate: AnyObject {
1717
func resolveURL(for path: String) -> URL
@@ -1216,13 +1216,13 @@ extension Expression {
12161216
}
12171217
newContext.sourceIndex = sourceIndex
12181218
if values.first?.type == .path {
1219-
return .tuple(values.map({
1219+
return .tuple(values.map {
12201220
.path(($0.value as! Path).transformed(by: newContext.transform))
1221-
}))
1221+
})
12221222
}
1223-
return .tuple(values.map({
1223+
return .tuple(values.map {
12241224
.mesh(($0.value as! Geometry).transformed(by: newContext.transform))
1225-
}))
1225+
})
12261226
case .property, .function((.void, _), _):
12271227
throw RuntimeError(
12281228
.unexpectedArgument(for: name, max: 0),

docs/1.6.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.6.3

0 commit comments

Comments
 (0)