From 9c4d61991644959b28d643fb3cc4cce0f52940ef Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Sat, 23 Apr 2022 14:59:48 +0100 Subject: [PATCH] Update for 1.5.0 release --- CHANGELOG.md | 18 ++++++++++++++++++ README.md | 6 +++--- ShapeScript.podspec.json | 4 ++-- ShapeScript.xcodeproj/project.pbxproj | 8 ++++---- ShapeScript/Interpreter.swift | 2 +- 5 files changed, 28 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da7c8b7f..a52d0317 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +## [1.5.0](https://github.com/nicklockwood/ShapeScript/releases/tag/1.5.0) (2022-04-29) + +- Added support for custom light sources using the `light` command +- Added user-defined functions/commands (previously only blocks could be defined) +- The width and/or height for exported images can now be set on a per-camera basis +- Added `polygon` command for more easily creating regular polygon paths +- The scene background can now be set individually for each camera +- Using `position`, `orientation` and `size` inside a `path` now works again (broken since 1.4.4) +- Using `rnd` command in option default expressions no longer has a knock-on effect on the sequence +- Options can now reference local constants in their default values +- Material brightness logic used in Viewer app is now part of the ShapeScript core +- Using `wrapwidth` or `linespacing` text commands inside an `svgpath` block now raises an error +- Fixed blank screen when scene contains empty `camera` node +- Removed `StatementType.block` case in favor of expression form +- Fixed some bugs in path generation relating to point colors +- The `OSColor` typealias is now private +- Added SVGPath dependency + ## [1.4.7](https://github.com/nicklockwood/ShapeScript/releases/tag/1.4.7) (2022-04-14) - Camera is no longer reset on every reload diff --git a/README.md b/README.md index 6c4fe310..374a4c74 100644 --- a/README.md +++ b/README.md @@ -30,19 +30,19 @@ ShapeScript is packaged as a dynamic framework, which itself depends on the [Euc To install the ShapeScript framework using CocoaPods, add the following to your Podfile: ```ruby -pod 'ShapeScript', '~> 1.4' +pod 'ShapeScript', '~> 1.5' ``` To install using Carthage, add this to your Cartfile: ```ogdl -github "nicklockwood/ShapeScript" ~> 1.4 +github "nicklockwood/ShapeScript" ~> 1.5 ``` To install using Swift Package Manager, add this to the `dependencies:` section in your Package.swift file: ```swift -.package(url: "https://github.com/nicklockwood/ShapeScript.git", .upToNextMinor(from: "1.4.0")), +.package(url: "https://github.com/nicklockwood/ShapeScript.git", .upToNextMinor(from: "1.5.0")), ``` The repository also includes the ShapeScript Viewer application, a cut-down version of the ShapeScript app available on the [Mac App Store](https://apps.apple.com/app/id1441135869). It is not currently possible to install or run this app using CocoaPods, Carthage or Swift Package Manager, however you can run it by opening the included Xcode project and selecting the `ShapeScript Viewer` scheme. diff --git a/ShapeScript.podspec.json b/ShapeScript.podspec.json index 87fbdcae..d3d9bff6 100644 --- a/ShapeScript.podspec.json +++ b/ShapeScript.podspec.json @@ -1,6 +1,6 @@ { "name": "ShapeScript", - "version": "1.4.7", + "version": "1.5.0", "license": { "type": "MIT", "file": "LICENSE.md" @@ -10,7 +10,7 @@ "authors": "Nick Lockwood", "source": { "git": "https://github.com/nicklockwood/ShapeScript.git", - "tag": "1.4.7" + "tag": "1.5.0" }, "source_files": ["ShapeScript", "LRUCache/Sources", "SVGPath/Sources"], "requires_arc": true, diff --git a/ShapeScript.xcodeproj/project.pbxproj b/ShapeScript.xcodeproj/project.pbxproj index 62fb56fb..c4ff8d56 100644 --- a/ShapeScript.xcodeproj/project.pbxproj +++ b/ShapeScript.xcodeproj/project.pbxproj @@ -838,7 +838,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.4.7; + MARKETING_VERSION = 1.5.0; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer; PRODUCT_MODULE_NAME = Viewer; PRODUCT_NAME = "ShapeScript Viewer"; @@ -865,7 +865,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.4.7; + MARKETING_VERSION = 1.5.0; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer; PRODUCT_MODULE_NAME = Viewer; PRODUCT_NAME = "ShapeScript Viewer"; @@ -1022,7 +1022,7 @@ "@executable_path/../Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.4.7; + MARKETING_VERSION = 1.5.0; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib; PRODUCT_NAME = ShapeScript; SKIP_INSTALL = YES; @@ -1052,7 +1052,7 @@ "@executable_path/../Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.4.7; + MARKETING_VERSION = 1.5.0; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib; PRODUCT_NAME = ShapeScript; SKIP_INSTALL = YES; diff --git a/ShapeScript/Interpreter.swift b/ShapeScript/Interpreter.swift index 8899c3e8..8f2ce248 100644 --- a/ShapeScript/Interpreter.swift +++ b/ShapeScript/Interpreter.swift @@ -11,7 +11,7 @@ import Foundation // MARK: Public interface -public let version = "1.4.7" +public let version = "1.5.0" public protocol EvaluationDelegate: AnyObject { func resolveURL(for path: String) -> URL