From 03e2a7e1d165c3215b5818aa6b798a6effe4368e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 10 Jan 2024 21:10:40 +0000 Subject: [PATCH 1/3] Version Packages --- .changeset/curvy-peaches-matter.md | 5 -- .changeset/eleven-papayas-prove.md | 6 -- .changeset/funny-spiders-clean.md | 5 -- .changeset/hot-boats-fail.md | 6 -- .changeset/lazy-lies-eat.md | 6 -- .changeset/new-ways-clap.md | 5 -- .changeset/next-release.md | 6 -- .changeset/proud-lamps-hope.md | 5 -- .changeset/silver-dolphins-brush.md | 5 -- .changeset/smooth-fireants-flash.md | 5 -- .changeset/swift-forks-tickle.md | 7 -- packages/components/CHANGELOG.md | 58 ++++++++------ packages/components/package.json | 2 +- packages/prettier-plugin/CHANGELOG.md | 4 + packages/prettier-plugin/package.json | 2 +- packages/squiggle-lang/CHANGELOG.md | 76 +++++++++++-------- packages/squiggle-lang/package.json | 2 +- packages/squiggle-lang/src/library/version.ts | 2 +- packages/textmate-grammar/CHANGELOG.md | 3 + packages/textmate-grammar/package.json | 2 +- packages/ui/CHANGELOG.md | 38 +++++----- packages/ui/package.json | 2 +- packages/versioned-components/CHANGELOG.md | 3 + packages/versioned-components/package.json | 2 +- packages/vscode-ext/CHANGELOG.md | 8 +- packages/vscode-ext/package.json | 2 +- .../src/pages/docs/Changelog/_meta.json | 2 +- .../src/pages/docs/Changelog/v0.9.1.mdx | 44 +++++++++++ 28 files changed, 171 insertions(+), 142 deletions(-) delete mode 100644 .changeset/curvy-peaches-matter.md delete mode 100644 .changeset/eleven-papayas-prove.md delete mode 100644 .changeset/funny-spiders-clean.md delete mode 100644 .changeset/hot-boats-fail.md delete mode 100644 .changeset/lazy-lies-eat.md delete mode 100644 .changeset/new-ways-clap.md delete mode 100644 .changeset/next-release.md delete mode 100644 .changeset/proud-lamps-hope.md delete mode 100644 .changeset/silver-dolphins-brush.md delete mode 100644 .changeset/smooth-fireants-flash.md delete mode 100644 .changeset/swift-forks-tickle.md create mode 100644 packages/textmate-grammar/CHANGELOG.md create mode 100644 packages/versioned-components/CHANGELOG.md create mode 100644 packages/website/src/pages/docs/Changelog/v0.9.1.mdx diff --git a/.changeset/curvy-peaches-matter.md b/.changeset/curvy-peaches-matter.md deleted file mode 100644 index 32b7c53778..0000000000 --- a/.changeset/curvy-peaches-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-lang": patch ---- - -Breaking: Deprecates Plot titles, changes Tag.all -> Tag.getAll diff --git a/.changeset/eleven-papayas-prove.md b/.changeset/eleven-papayas-prove.md deleted file mode 100644 index 2b40dc3323..0000000000 --- a/.changeset/eleven-papayas-prove.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch ---- - -Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. diff --git a/.changeset/funny-spiders-clean.md b/.changeset/funny-spiders-clean.md deleted file mode 100644 index bbf1f53d41..0000000000 --- a/.changeset/funny-spiders-clean.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/prettier-plugin-squiggle": patch ---- - -"Fixes Prettier bug where trailing comma after single-element dict key would be removed" diff --git a/.changeset/hot-boats-fail.md b/.changeset/hot-boats-fail.md deleted file mode 100644 index e640d6169f..0000000000 --- a/.changeset/hot-boats-fail.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch ---- - -Breaking: Changed Tag.description to Tag.doc diff --git a/.changeset/lazy-lies-eat.md b/.changeset/lazy-lies-eat.md deleted file mode 100644 index b1e915bcc1..0000000000 --- a/.changeset/lazy-lies-eat.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch ---- - -Fixed RelativeValues plot display diff --git a/.changeset/new-ways-clap.md b/.changeset/new-ways-clap.md deleted file mode 100644 index 9afa8c980d..0000000000 --- a/.changeset/new-ways-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-lang": patch ---- - -Fix isEqual for Squiggle Lists diff --git a/.changeset/next-release.md b/.changeset/next-release.md deleted file mode 100644 index 6e6ae724ab..0000000000 --- a/.changeset/next-release.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch -"@quri/prettier-plugin-squiggle": patch -"vscode-squiggle": patch ---- diff --git a/.changeset/proud-lamps-hope.md b/.changeset/proud-lamps-hope.md deleted file mode 100644 index 363734ecac..0000000000 --- a/.changeset/proud-lamps-hope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-components": patch ---- - -Fix dist chart legend positioning and how it affects the chart height diff --git a/.changeset/silver-dolphins-brush.md b/.changeset/silver-dolphins-brush.md deleted file mode 100644 index 18c9512388..0000000000 --- a/.changeset/silver-dolphins-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-components": patch ---- - -"Fixed documention css quirks in editor" diff --git a/.changeset/smooth-fireants-flash.md b/.changeset/smooth-fireants-flash.md deleted file mode 100644 index 9ab09d089b..0000000000 --- a/.changeset/smooth-fireants-flash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-lang": patch ---- - -Added Common.throw diff --git a/.changeset/swift-forks-tickle.md b/.changeset/swift-forks-tickle.md deleted file mode 100644 index e119efd972..0000000000 --- a/.changeset/swift-forks-tickle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch -"@quri/ui": patch ---- - -Adds Tag.notebook view for Lists diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index e8e99b6088..5d12dfeb19 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,52 +1,66 @@ # @quri/squiggle-components +## 0.9.1 + +* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) + +* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) + +* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) + +* Fix dist chart legend positioning and how it affects the chart height ([#2911](https://github.com/quantified-uncertainty/squiggle/pull/2911)) + +* "Fixed documention css quirks in editor" ([#2913](https://github.com/quantified-uncertainty/squiggle/pull/2913)) + +* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) + ## 0.9.0 -- Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) +* Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) You can now type `Date(2023)` to represent Jan 1 2023. Added date domains (`f(x: [Date(1980), Date(2050)])`) that's used in function plots for the x axis. Minor changes to the Date library. -- Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) +* Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) -- Hide calculator top when empty, auto-close widgets with strings of <25 chars, expose errors when items are focused. ([#2547](https://github.com/quantified-uncertainty/squiggle/pull/2547)) +* Hide calculator top when empty, auto-close widgets with strings of <25 chars, expose errors when items are focused. ([#2547](https://github.com/quantified-uncertainty/squiggle/pull/2547)) -- `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) +* `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) -- Tooltips and inline documentation for stdlib functions in editor ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) +* Tooltips and inline documentation for stdlib functions in editor ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) -- Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) +* Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) -- Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) +* Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) -- New dropdown menu on each value in viewer ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) +* New dropdown menu on each value in viewer ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) -- Show vertical lines when distribution summary table cells are hovered ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) +* Show vertical lines when distribution summary table cells are hovered ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) -- Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) +* Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) ## 0.8.6 -- Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) +* Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) -- Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) +* Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) -- Highlight multiline strings correctly ([#2302](https://github.com/quantified-uncertainty/squiggle/pull/2302)) +* Highlight multiline strings correctly ([#2302](https://github.com/quantified-uncertainty/squiggle/pull/2302)) ## 0.8.5 -- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -- Autocompletion improvements: ([#2233](https://github.com/quantified-uncertainty/squiggle/pull/2233)) +* Autocompletion improvements: ([#2233](https://github.com/quantified-uncertainty/squiggle/pull/2233)) - - suggest local function names - - suggest parameter names - - don't suggest unreachable vars (declared below or in unreachable local scopes) - - different icon for local functions + * suggest local function names + * suggest parameter names + * don't suggest unreachable vars (declared below or in unreachable local scopes) + * different icon for local functions Editor grammar improvements: - - functions with 0 parameters don't break the parser - - trailing expressions are now really optional (they weren't, but Lezer recovered from it so it didn't matter) + * functions with 0 parameters don't break the parser + * trailing expressions are now really optional (they weren't, but Lezer recovered from it so it didn't matter) -- Improved symlog scale ticks ([#2245](https://github.com/quantified-uncertainty/squiggle/pull/2245)) +* Improved symlog scale ticks ([#2245](https://github.com/quantified-uncertainty/squiggle/pull/2245)) \ No newline at end of file diff --git a/packages/components/package.json b/packages/components/package.json index 8c71edbecf..edb2eb81eb 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@quri/squiggle-components", - "version": "0.9.1-0", + "version": "0.9.1", "license": "MIT", "repository": { "type": "git", diff --git a/packages/prettier-plugin/CHANGELOG.md b/packages/prettier-plugin/CHANGELOG.md index 012ec4b9a5..0a1343f950 100644 --- a/packages/prettier-plugin/CHANGELOG.md +++ b/packages/prettier-plugin/CHANGELOG.md @@ -1,5 +1,9 @@ # @quri/prettier-plugin-squiggle +## 0.9.1 + +* "Fixes Prettier bug where trailing comma after single-element dict key would be removed" ([#2946](https://github.com/quantified-uncertainty/squiggle/pull/2946)) + ## 0.9.0 * Improved formatting for pipe statements and newlines ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) diff --git a/packages/prettier-plugin/package.json b/packages/prettier-plugin/package.json index 4de17b9fe8..0db5330a2c 100644 --- a/packages/prettier-plugin/package.json +++ b/packages/prettier-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@quri/prettier-plugin-squiggle", - "version": "0.9.1-0", + "version": "0.9.1", "license": "MIT", "homepage": "https://squiggle-language.com", "author": "Quantified Uncertainty Research Institute", diff --git a/packages/squiggle-lang/CHANGELOG.md b/packages/squiggle-lang/CHANGELOG.md index faa296ba08..1d07109258 100644 --- a/packages/squiggle-lang/CHANGELOG.md +++ b/packages/squiggle-lang/CHANGELOG.md @@ -1,73 +1,89 @@ # @quri/squiggle-lang +## 0.9.1 + +* Breaking: Deprecates Plot titles, changes Tag.all -> Tag.getAll ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) + +* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) + +* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) + +* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) + +* Fix isEqual for Squiggle Lists ([#2920](https://github.com/quantified-uncertainty/squiggle/pull/2920)) + +* Added Common.throw ([#2941](https://github.com/quantified-uncertainty/squiggle/pull/2941)) + +* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) + ## 0.9.0 -- Support for tags (`Tag.*` functions) and decorators (`@decoratorName`) that can be used to affect how the value is displayed. ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) +* Support for tags (`Tag.*` functions) and decorators (`@decoratorName`) that can be used to affect how the value is displayed. ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) Tags can be attached to any value, and decorators can be attached to any variable or function definition. Decorators are proxied to Tag functions, e.g. `@name("X var") x = 5` is the same as `x = 5 -> Tag.name("X var")`. Builtin tags: `@name`, `@description`, `@format`, `@showAs`, `@hide`. -* Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) +- Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) You can now type `Date(2023)` to represent Jan 1 2023. Added date domains (`f(x: [Date(1980), Date(2050)])`) that's used in function plots for the x axis. Minor changes to the Date library. -* Added `Calculator.make(fn)` shorthand ([#2660](https://github.com/quantified-uncertainty/squiggle/pull/2660)) +- Added `Calculator.make(fn)` shorthand ([#2660](https://github.com/quantified-uncertainty/squiggle/pull/2660)) -* Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) +- Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) -* Tag percentage values with percentage format, so that they're rendered as percentages in viewer ([#2759](https://github.com/quantified-uncertainty/squiggle/pull/2759)) +- Tag percentage values with percentage format, so that they're rendered as percentages in viewer ([#2759](https://github.com/quantified-uncertainty/squiggle/pull/2759)) -* Added `List.sortBy`, `List.maxBy`, `List.minBy`, `Dict.has`, `Dict.size`, `Dict.delete`, and added definitions to `Number.min` and `Number.max` that support two number params ([#2551](https://github.com/quantified-uncertainty/squiggle/pull/2551)) +- Added `List.sortBy`, `List.maxBy`, `List.minBy`, `Dict.has`, `Dict.size`, `Dict.delete`, and added definitions to `Number.min` and `Number.max` that support two number params ([#2551](https://github.com/quantified-uncertainty/squiggle/pull/2551)) -* Removed `title` attribute from `Table.make()`; you can use `@name` and `@description` tags instead ([#2718](https://github.com/quantified-uncertainty/squiggle/pull/2718)) +- Removed `title` attribute from `Table.make()`; you can use `@name` and `@description` tags instead ([#2718](https://github.com/quantified-uncertainty/squiggle/pull/2718)) -* `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) +- `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) -* Expose `getFunctionDocumentation` function to render documentatiton in the playground ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) +- Expose `getFunctionDocumentation` function to render documentatiton in the playground ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) -* Breaking: Change `Number.rangeDomain({min, max})` to be `rangeDomain(min, max)` ([#2692](https://github.com/quantified-uncertainty/squiggle/pull/2692)) +- Breaking: Change `Number.rangeDomain({min, max})` to be `rangeDomain(min, max)` ([#2692](https://github.com/quantified-uncertainty/squiggle/pull/2692)) -* Alias `Module.make()` methods to `Module()` ([#2681](https://github.com/quantified-uncertainty/squiggle/pull/2681)) +- Alias `Module.make()` methods to `Module()` ([#2681](https://github.com/quantified-uncertainty/squiggle/pull/2681)) -* Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) +- Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) -* Added `Dist.median`, `Number.quantile`, `Number.median` ([#2577](https://github.com/quantified-uncertainty/squiggle/pull/2577)) +- Added `Dist.median`, `Number.quantile`, `Number.median` ([#2577](https://github.com/quantified-uncertainty/squiggle/pull/2577)) -* Added data-first definitions for `Plot.dist`, `Plot.dists`, `Plot.numericFn`, `Plot.distFn`, `Table.make`, `Calculator.make`. Deprecate old versions. ([#2676](https://github.com/quantified-uncertainty/squiggle/pull/2676)) +- Added data-first definitions for `Plot.dist`, `Plot.dists`, `Plot.numericFn`, `Plot.distFn`, `Table.make`, `Calculator.make`. Deprecate old versions. ([#2676](https://github.com/quantified-uncertainty/squiggle/pull/2676)) -* Breaking: `Plot.scatter` now only accepts sampleset distributions. ([#2655](https://github.com/quantified-uncertainty/squiggle/pull/2655)) +- Breaking: `Plot.scatter` now only accepts sampleset distributions. ([#2655](https://github.com/quantified-uncertainty/squiggle/pull/2655)) -* Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) +- Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) -* Fix `!` operator: `!0` now evaluates to `true`, and `!1` to `false` ([#2658](https://github.com/quantified-uncertainty/squiggle/pull/2658)) +- Fix `!` operator: `!0` now evaluates to `true`, and `!1` to `false` ([#2658](https://github.com/quantified-uncertainty/squiggle/pull/2658)) -* Fix pointwise combination precision issues on discrete PointSet dists. This was affecting `mixture` and pointwise operators. ([#2514](https://github.com/quantified-uncertainty/squiggle/pull/2514)) +- Fix pointwise combination precision issues on discrete PointSet dists. This was affecting `mixture` and pointwise operators. ([#2514](https://github.com/quantified-uncertainty/squiggle/pull/2514)) ## 0.8.6 -- Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) +* Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) -- Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) +* Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) -- Improved [mixture()](https://www.squiggle-language.com/docs/Api/Dist#mixture) typing, but limited to 5 parameters maximum ([#2334](https://github.com/quantified-uncertainty/squiggle/pull/2334)) +* Improved [mixture()](https://www.squiggle-language.com/docs/Api/Dist#mixture) typing, but limited to 5 parameters maximum ([#2334](https://github.com/quantified-uncertainty/squiggle/pull/2334)) -- Added [Dict.pick](https://www.squiggle-language.com/docs/Api/Dictionary#pick), [Dict.omit](https://www.squiggle-language.com/docs/Api/Dictionary#omit) ([#2376](https://github.com/quantified-uncertainty/squiggle/pull/2376)) +* Added [Dict.pick](https://www.squiggle-language.com/docs/Api/Dictionary#pick), [Dict.omit](https://www.squiggle-language.com/docs/Api/Dictionary#omit) ([#2376](https://github.com/quantified-uncertainty/squiggle/pull/2376)) -- [sum](https://www.squiggle-language.com/docs/Api/Number#sum), [product](https://www.squiggle-language.com/docs/Api/Number#product), [sort](https://www.squiggle-language.com/docs/Api/Number#sort), [cumsum](https://www.squiggle-language.com/docs/Api/Number#cumulative-sum), [cumprod](https://www.squiggle-language.com/docs/Api/Number#cumulative-product) all accept lists with 0 elements ([#2351](https://github.com/quantified-uncertainty/squiggle/pull/2351)) +* [sum](https://www.squiggle-language.com/docs/Api/Number#sum), [product](https://www.squiggle-language.com/docs/Api/Number#product), [sort](https://www.squiggle-language.com/docs/Api/Number#sort), [cumsum](https://www.squiggle-language.com/docs/Api/Number#cumulative-sum), [cumprod](https://www.squiggle-language.com/docs/Api/Number#cumulative-product) all accept lists with 0 elements ([#2351](https://github.com/quantified-uncertainty/squiggle/pull/2351)) -- Added [Dist.sum](https://www.squiggle-language.com/docs/Api/Dist#sum), [Dist.product](https://www.squiggle-language.com/docs/Api/Dist#product), [Dist.cumsum](https://www.squiggle-language.com/docs/Api/Dist#cumulative-sum), [Dist.cumprod](https://www.squiggle-language.com/docs/Api/Dist#cumulative-product), [Dist.diff](https://www.squiggle-language.com/docs/Api/Dist#diff) ([#2356](https://github.com/quantified-uncertainty/squiggle/pull/2356)) +* Added [Dist.sum](https://www.squiggle-language.com/docs/Api/Dist#sum), [Dist.product](https://www.squiggle-language.com/docs/Api/Dist#product), [Dist.cumsum](https://www.squiggle-language.com/docs/Api/Dist#cumulative-sum), [Dist.cumprod](https://www.squiggle-language.com/docs/Api/Dist#cumulative-product), [Dist.diff](https://www.squiggle-language.com/docs/Api/Dist#diff) ([#2356](https://github.com/quantified-uncertainty/squiggle/pull/2356)) -- Added [List.slice](https://www.squiggle-language.com/docs/Api/List#slice), [Danger.combinations](https://www.squiggle-language.com/docs/Api/Danger#combinations), [Danger.allCombinations](https://www.squiggle-language.com/docs/Api/Danger#allcombinations) ([#2347](https://github.com/quantified-uncertainty/squiggle/pull/2347)) +* Added [List.slice](https://www.squiggle-language.com/docs/Api/List#slice), [Danger.combinations](https://www.squiggle-language.com/docs/Api/Danger#combinations), [Danger.allCombinations](https://www.squiggle-language.com/docs/Api/Danger#allcombinations) ([#2347](https://github.com/quantified-uncertainty/squiggle/pull/2347)) -- Added more standard library functions: [typeOf](https://www.squiggle-language.com/docs/Api/Builtin#typeof), [List.every](https://www.squiggle-language.com/docs/Api/List#every), [List.some](https://www.squiggle-language.com/docs/Api/List#some), [List.find](https://www.squiggle-language.com/docs/Api/List#find), [List.findIndex](https://www.squiggle-language.com/docs/Api/List#findindex), [List.zip](https://www.squiggle-language.com/docs/Api/List#zip), [List.unzip](https://www.squiggle-language.com/docs/Api/List#unzip), [List.shuffle](https://www.squiggle-language.com/docs/Api/List#shuffle), [List.uniq](https://www.squiggle-language.com/docs/Api/List#uniq) (works with more types now), [List.uniqBy](https://www.squiggle-language.com/docs/Api/List#uniqby), [Dist.make](https://www.squiggle-language.com/docs/Api/Dist#make), [PointSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistPointSet#fromnumber), [PointSet.make](https://www.squiggle-language.com/docs/Api/DistPointSet#make), [SampleSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistSampleSet#fromnumber), [SampleSet.make](https://www.squiggle-language.com/docs/Api/DistSampleSet#make), [String.make](https://www.squiggle-language.com/docs/Api/String#make), [String.split](https://www.squiggle-language.com/docs/Api/String#split) ([#2290](https://github.com/quantified-uncertainty/squiggle/pull/2290)) +* Added more standard library functions: [typeOf](https://www.squiggle-language.com/docs/Api/Builtin#typeof), [List.every](https://www.squiggle-language.com/docs/Api/List#every), [List.some](https://www.squiggle-language.com/docs/Api/List#some), [List.find](https://www.squiggle-language.com/docs/Api/List#find), [List.findIndex](https://www.squiggle-language.com/docs/Api/List#findindex), [List.zip](https://www.squiggle-language.com/docs/Api/List#zip), [List.unzip](https://www.squiggle-language.com/docs/Api/List#unzip), [List.shuffle](https://www.squiggle-language.com/docs/Api/List#shuffle), [List.uniq](https://www.squiggle-language.com/docs/Api/List#uniq) (works with more types now), [List.uniqBy](https://www.squiggle-language.com/docs/Api/List#uniqby), [Dist.make](https://www.squiggle-language.com/docs/Api/Dist#make), [PointSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistPointSet#fromnumber), [PointSet.make](https://www.squiggle-language.com/docs/Api/DistPointSet#make), [SampleSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistSampleSet#fromnumber), [SampleSet.make](https://www.squiggle-language.com/docs/Api/DistSampleSet#make), [String.make](https://www.squiggle-language.com/docs/Api/String#make), [String.split](https://www.squiggle-language.com/docs/Api/String#split) ([#2290](https://github.com/quantified-uncertainty/squiggle/pull/2290)) -- Expanded equality comparisons to include all distributions, dates, time durations, scales, domains, arrays, and dictionaries. +* Expanded equality comparisons to include all distributions, dates, time durations, scales, domains, arrays, and dictionaries. ## 0.8.5 -- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -- Added support for `%` as a number suffix ([#2239](https://github.com/quantified-uncertainty/squiggle/pull/2239)) +* Added support for `%` as a number suffix ([#2239](https://github.com/quantified-uncertainty/squiggle/pull/2239)) -- Support `pow(dist, integer)` on distributions with negative samples ([#2235](https://github.com/quantified-uncertainty/squiggle/pull/2235)) +* Support `pow(dist, integer)` on distributions with negative samples ([#2235](https://github.com/quantified-uncertainty/squiggle/pull/2235)) \ No newline at end of file diff --git a/packages/squiggle-lang/package.json b/packages/squiggle-lang/package.json index 1e6a633e3b..d87e8eb2bc 100644 --- a/packages/squiggle-lang/package.json +++ b/packages/squiggle-lang/package.json @@ -1,6 +1,6 @@ { "name": "@quri/squiggle-lang", - "version": "0.9.1-0", + "version": "0.9.1", "license": "MIT", "homepage": "https://squiggle-language.com", "author": "Quantified Uncertainty Research Institute", diff --git a/packages/squiggle-lang/src/library/version.ts b/packages/squiggle-lang/src/library/version.ts index a1c9d9dd5d..ad70760e22 100644 --- a/packages/squiggle-lang/src/library/version.ts +++ b/packages/squiggle-lang/src/library/version.ts @@ -2,7 +2,7 @@ import { ImmutableMap } from "../utility/immutableMap.js"; import { Value, vString } from "../value/index.js"; // automatically updated on release by ops/ patch-js utils -const VERSION = "0.9.1-0"; +const VERSION = "0.9.1"; export function makeVersionConstant(): ImmutableMap { return ImmutableMap([["System.version", vString(VERSION)]]); } diff --git a/packages/textmate-grammar/CHANGELOG.md b/packages/textmate-grammar/CHANGELOG.md new file mode 100644 index 0000000000..4bff6ef00b --- /dev/null +++ b/packages/textmate-grammar/CHANGELOG.md @@ -0,0 +1,3 @@ +# @quri/squiggle-textmate-grammar + +## 0.9.1 \ No newline at end of file diff --git a/packages/textmate-grammar/package.json b/packages/textmate-grammar/package.json index 7add904aef..b15dae3af9 100644 --- a/packages/textmate-grammar/package.json +++ b/packages/textmate-grammar/package.json @@ -1,6 +1,6 @@ { "name": "@quri/squiggle-textmate-grammar", - "version": "0.9.1-0", + "version": "0.9.1", "scripts": { "build": "mkdir -p dist && js-yaml src/squiggle.tmLanguage.yaml >dist/squiggle.tmLanguage.json && js-yaml src/squiggle.js.yaml >dist/squiggle.js.json", "lint": "prettier --check .", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index c5a6cd462f..2391b5e059 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,41 +1,45 @@ # @quri/ui +## 0.2.1 + +* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) + ## 0.2.0 -- Support `placement` prop in `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) +* Support `placement` prop in `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) -- Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) +* Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) -- Rename `ArrowUturnLeftIcon` to `ResetIcon` ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) +* Rename `ArrowUturnLeftIcon` to `ResetIcon` ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) -- `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) +* `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) -- Rename `ChatBubbleLeftIcon` to `CommentIcon`, remove other unused chat icons ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) +* Rename `ChatBubbleLeftIcon` to `CommentIcon`, remove other unused chat icons ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) -- `` component children now can access `close` function through `useCloseDropdown` hook ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) +* `` component children now can access `close` function through `useCloseDropdown` hook ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) -- `generateProvider` helper ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) +* `generateProvider` helper ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) ## 0.1.5 -- `WrenchIcon` ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) +* `WrenchIcon` ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) -- `DropdownMenuLinkItem` for `` links +* `DropdownMenuLinkItem` for `` links -- Expose `` component ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) +* Expose `` component ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) -- `` and ``` components accept `standaloneLabel\` prop ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) +* `` and ``` components accept `standaloneLabel\` prop ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) -- Improved `` styles ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) +* Improved `` styles ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) -- `PlusIcon` ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) +* `PlusIcon` ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) ## 0.1.4 -- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -- `SelectFormField` and `SelectStringFormField` components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) +* `SelectFormField` and `SelectStringFormField` components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) -- "use client" directive in non-server-compatible components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) +* "use client" directive in non-server-compatible components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) -- New icons: `GroupIcon`, `RightArrowIcon` and `EmptyIcon` ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) +* New icons: `GroupIcon`, `RightArrowIcon` and `EmptyIcon` ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) \ No newline at end of file diff --git a/packages/ui/package.json b/packages/ui/package.json index fbc978c499..01bf74352f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@quri/ui", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "repository": { "type": "git", diff --git a/packages/versioned-components/CHANGELOG.md b/packages/versioned-components/CHANGELOG.md new file mode 100644 index 0000000000..b174a7f769 --- /dev/null +++ b/packages/versioned-components/CHANGELOG.md @@ -0,0 +1,3 @@ +# @quri/versioned-squiggle-components + +## 0.9.1 \ No newline at end of file diff --git a/packages/versioned-components/package.json b/packages/versioned-components/package.json index e05b7069b0..1be25ae342 100644 --- a/packages/versioned-components/package.json +++ b/packages/versioned-components/package.json @@ -1,6 +1,6 @@ { "name": "@quri/versioned-squiggle-components", - "version": "0.9.1-0", + "version": "0.9.1", "private": true, "scripts": { "build:ts": "tsc -b", diff --git a/packages/vscode-ext/CHANGELOG.md b/packages/vscode-ext/CHANGELOG.md index 9c6230096d..23d71052e5 100644 --- a/packages/vscode-ext/CHANGELOG.md +++ b/packages/vscode-ext/CHANGELOG.md @@ -1,13 +1,15 @@ # vscode-squiggle +## 0.9.1 + ## 0.9.0 -- Use 0.9.0 Squiggle +* Use 0.9.0 Squiggle -- Convert webview implementation to TypeScript +* Convert webview implementation to TypeScript ## 0.8.6 Use 0.8.6 Squiggle. No extension-specific changes. -## 0.8.5 +## 0.8.5 \ No newline at end of file diff --git a/packages/vscode-ext/package.json b/packages/vscode-ext/package.json index 40526d3099..dd0308b053 100644 --- a/packages/vscode-ext/package.json +++ b/packages/vscode-ext/package.json @@ -3,7 +3,7 @@ "displayName": "Squiggle", "description": "Squiggle language support", "license": "MIT", - "version": "0.9.1-0", + "version": "0.9.1", "private": true, "publisher": "QURI", "repository": { diff --git a/packages/website/src/pages/docs/Changelog/_meta.json b/packages/website/src/pages/docs/Changelog/_meta.json index c170a6510f..8df44e92e7 100644 --- a/packages/website/src/pages/docs/Changelog/_meta.json +++ b/packages/website/src/pages/docs/Changelog/_meta.json @@ -1 +1 @@ -{"v0.9.0":"v0.9.0","v0.8.6":"v0.8.6","v0.8.5":"v0.8.5","v0.8.4":"v0.8.4","v0.8.0":"v0.8.0","v0.7.0":"v0.7.0","v0.6.0":"v0.6.0","v0.5.1":"v0.5.1","v0.5.0":"v0.5.0"} \ No newline at end of file +{"v0.9.1":"v0.9.1","v0.9.0":"v0.9.0","v0.8.6":"v0.8.6","v0.8.5":"v0.8.5","v0.8.4":"v0.8.4","v0.8.0":"v0.8.0","v0.7.0":"v0.7.0","v0.6.0":"v0.6.0","v0.5.1":"v0.5.1","v0.5.0":"v0.5.0"} \ No newline at end of file diff --git a/packages/website/src/pages/docs/Changelog/v0.9.1.mdx b/packages/website/src/pages/docs/Changelog/v0.9.1.mdx new file mode 100644 index 0000000000..2813815faa --- /dev/null +++ b/packages/website/src/pages/docs/Changelog/v0.9.1.mdx @@ -0,0 +1,44 @@ +## 0.9.1 + +### [@quri/squiggle-lang](https://www.npmjs.com/package/@quri/squiggle-lang) + +* Breaking: Deprecates Plot titles, changes Tag.all -> Tag.getAll ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) + +* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) + +* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) + +* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) + +* Fix isEqual for Squiggle Lists ([#2920](https://github.com/quantified-uncertainty/squiggle/pull/2920)) + +* Added Common.throw ([#2941](https://github.com/quantified-uncertainty/squiggle/pull/2941)) + +* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) + +### [@quri/squiggle-components](https://www.npmjs.com/package/@quri/squiggle-components) + +* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) + +* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) + +* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) + +* Fix dist chart legend positioning and how it affects the chart height ([#2911](https://github.com/quantified-uncertainty/squiggle/pull/2911)) + +* "Fixed documention css quirks in editor" ([#2913](https://github.com/quantified-uncertainty/squiggle/pull/2913)) + +* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) + +### [@quri/prettier-plugin-squiggle](https://www.npmjs.com/package/@quri/prettier-plugin-squiggle) + +* "Fixes Prettier bug where trailing comma after single-element dict key would be removed" ([#2946](https://github.com/quantified-uncertainty/squiggle/pull/2946)) + +### [@quri/squiggle-textmate-grammar](https://www.npmjs.com/package/@quri/squiggle-textmate-grammar) + +_No changes._ + +### [vscode-squiggle](https://marketplace.visualstudio.com/items?itemName=QURI.vscode-squiggle) + +_No changes._ + From 0e492027218fbba985700996c26a20e614570f32 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Thu, 11 Jan 2024 16:54:08 -0600 Subject: [PATCH 2/3] manually update changelogs --- packages/components/CHANGELOG.md | 56 ++++++++-------- packages/prettier-plugin/CHANGELOG.md | 12 ++-- packages/squiggle-lang/CHANGELOG.md | 74 +++++++++++----------- packages/textmate-grammar/CHANGELOG.md | 4 +- packages/ui/CHANGELOG.md | 38 +++++------ packages/versioned-components/CHANGELOG.md | 3 - packages/vscode-ext/CHANGELOG.md | 8 ++- 7 files changed, 98 insertions(+), 97 deletions(-) delete mode 100644 packages/versioned-components/CHANGELOG.md diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 5d12dfeb19..0c5d488415 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -2,65 +2,65 @@ ## 0.9.1 -* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) +- Top level navigation in viewer (Result/Variables) is represented as a dropdown ([#2909](https://github.com/quantified-uncertainty/squiggle/pull/2909)) -* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) +- `` component takes a single `SqValue` instead of `resultVariables` and `resultItem` ([#2909](https://github.com/quantified-uncertainty/squiggle/pull/2909)) -* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) +- Fixed `RelativeValues.gridPlot` display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) -* Fix dist chart legend positioning and how it affects the chart height ([#2911](https://github.com/quantified-uncertainty/squiggle/pull/2911)) +- Fixed dist chart legend positioning and how it affects the chart height ([#2911](https://github.com/quantified-uncertainty/squiggle/pull/2911)) -* "Fixed documention css quirks in editor" ([#2913](https://github.com/quantified-uncertainty/squiggle/pull/2913)) +- Fixed documention css quirks in editor ([#2913](https://github.com/quantified-uncertainty/squiggle/pull/2913)) -* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) +- Added `Tag.notebook` view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) ## 0.9.0 -* Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) +- Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) You can now type `Date(2023)` to represent Jan 1 2023. Added date domains (`f(x: [Date(1980), Date(2050)])`) that's used in function plots for the x axis. Minor changes to the Date library. -* Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) +- Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) -* Hide calculator top when empty, auto-close widgets with strings of <25 chars, expose errors when items are focused. ([#2547](https://github.com/quantified-uncertainty/squiggle/pull/2547)) +- Hide calculator top when empty, auto-close widgets with strings of <25 chars, expose errors when items are focused. ([#2547](https://github.com/quantified-uncertainty/squiggle/pull/2547)) -* `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) +- `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) -* Tooltips and inline documentation for stdlib functions in editor ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) +- Tooltips and inline documentation for stdlib functions in editor ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) -* Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) +- Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) -* Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) +- Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) -* New dropdown menu on each value in viewer ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) +- New dropdown menu on each value in viewer ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) -* Show vertical lines when distribution summary table cells are hovered ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) +- Show vertical lines when distribution summary table cells are hovered ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) -* Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) +- Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) ## 0.8.6 -* Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) +- Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) -* Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) +- Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) -* Highlight multiline strings correctly ([#2302](https://github.com/quantified-uncertainty/squiggle/pull/2302)) +- Highlight multiline strings correctly ([#2302](https://github.com/quantified-uncertainty/squiggle/pull/2302)) ## 0.8.5 -* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -* Autocompletion improvements: ([#2233](https://github.com/quantified-uncertainty/squiggle/pull/2233)) +- Autocompletion improvements: ([#2233](https://github.com/quantified-uncertainty/squiggle/pull/2233)) - * suggest local function names - * suggest parameter names - * don't suggest unreachable vars (declared below or in unreachable local scopes) - * different icon for local functions + - suggest local function names + - suggest parameter names + - don't suggest unreachable vars (declared below or in unreachable local scopes) + - different icon for local functions Editor grammar improvements: - * functions with 0 parameters don't break the parser - * trailing expressions are now really optional (they weren't, but Lezer recovered from it so it didn't matter) + - functions with 0 parameters don't break the parser + - trailing expressions are now really optional (they weren't, but Lezer recovered from it so it didn't matter) -* Improved symlog scale ticks ([#2245](https://github.com/quantified-uncertainty/squiggle/pull/2245)) \ No newline at end of file +- Improved symlog scale ticks ([#2245](https://github.com/quantified-uncertainty/squiggle/pull/2245)) diff --git a/packages/prettier-plugin/CHANGELOG.md b/packages/prettier-plugin/CHANGELOG.md index 0a1343f950..b8e6a2c917 100644 --- a/packages/prettier-plugin/CHANGELOG.md +++ b/packages/prettier-plugin/CHANGELOG.md @@ -2,20 +2,20 @@ ## 0.9.1 -* "Fixes Prettier bug where trailing comma after single-element dict key would be removed" ([#2946](https://github.com/quantified-uncertainty/squiggle/pull/2946)) +- Fixed Prettier bug where trailing comma after single-element dict key would be removed ([#2946](https://github.com/quantified-uncertainty/squiggle/pull/2946)) ## 0.9.0 -* Improved formatting for pipe statements and newlines ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) +- Improved formatting for pipe statements and newlines ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) ## 0.8.6 -* Improve package.json exports ([#2329](https://github.com/quantified-uncertainty/squiggle/pull/2329)) +- Improve package.json exports ([#2329](https://github.com/quantified-uncertainty/squiggle/pull/2329)) -* Don't quote new lines in strings ([#2293](https://github.com/quantified-uncertainty/squiggle/pull/2293)) +- Don't quote new lines in strings ([#2293](https://github.com/quantified-uncertainty/squiggle/pull/2293)) ## 0.8.5 -* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -* Fixed exports field order in package.json ([#2276](https://github.com/quantified-uncertainty/squiggle/pull/2276)) \ No newline at end of file +- Fixed exports field order in package.json ([#2276](https://github.com/quantified-uncertainty/squiggle/pull/2276)) diff --git a/packages/squiggle-lang/CHANGELOG.md b/packages/squiggle-lang/CHANGELOG.md index 1d07109258..ee38e8a68b 100644 --- a/packages/squiggle-lang/CHANGELOG.md +++ b/packages/squiggle-lang/CHANGELOG.md @@ -2,88 +2,86 @@ ## 0.9.1 -* Breaking: Deprecates Plot titles, changes Tag.all -> Tag.getAll ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) +- Breaking: Deprecated `Plot` titles ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) -* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) +- Breaking: Renamed `Tag.all` -> `Tag.getAll` ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) -* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) +- Breaking: Renamed `Tag.description` to `Tag.doc` ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) -* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) +- Fix `isEqual` and `==` for Squiggle Lists ([#2920](https://github.com/quantified-uncertainty/squiggle/pull/2920)) -* Fix isEqual for Squiggle Lists ([#2920](https://github.com/quantified-uncertainty/squiggle/pull/2920)) +- Added `throw` function ([#2941](https://github.com/quantified-uncertainty/squiggle/pull/2941)) -* Added Common.throw ([#2941](https://github.com/quantified-uncertainty/squiggle/pull/2941)) - -* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) +- Adds `Tag.notebook` view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) ## 0.9.0 -* Support for tags (`Tag.*` functions) and decorators (`@decoratorName`) that can be used to affect how the value is displayed. ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) +- Support for tags (`Tag.*` functions) and decorators (`@decoratorName`) that can be used to affect how the value is displayed. ([`b5d1394`](https://github.com/quantified-uncertainty/squiggle/commit/b5d139465c72a742b0ac319068d4acc1d7ab0e4d)) Tags can be attached to any value, and decorators can be attached to any variable or function definition. Decorators are proxied to Tag functions, e.g. `@name("X var") x = 5` is the same as `x = 5 -> Tag.name("X var")`. Builtin tags: `@name`, `@description`, `@format`, `@showAs`, `@hide`. -- Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) +* Dates and Durations improvements ([#2572](https://github.com/quantified-uncertainty/squiggle/pull/2572)) You can now type `Date(2023)` to represent Jan 1 2023. Added date domains (`f(x: [Date(1980), Date(2050)])`) that's used in function plots for the x axis. Minor changes to the Date library. -- Added `Calculator.make(fn)` shorthand ([#2660](https://github.com/quantified-uncertainty/squiggle/pull/2660)) +* Added `Calculator.make(fn)` shorthand ([#2660](https://github.com/quantified-uncertainty/squiggle/pull/2660)) -- Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) +* Updated distribution charts to be prettier and better support different sizes ([#2782](https://github.com/quantified-uncertainty/squiggle/pull/2782)) -- Tag percentage values with percentage format, so that they're rendered as percentages in viewer ([#2759](https://github.com/quantified-uncertainty/squiggle/pull/2759)) +* Tag percentage values with percentage format, so that they're rendered as percentages in viewer ([#2759](https://github.com/quantified-uncertainty/squiggle/pull/2759)) -- Added `List.sortBy`, `List.maxBy`, `List.minBy`, `Dict.has`, `Dict.size`, `Dict.delete`, and added definitions to `Number.min` and `Number.max` that support two number params ([#2551](https://github.com/quantified-uncertainty/squiggle/pull/2551)) +* Added `List.sortBy`, `List.maxBy`, `List.minBy`, `Dict.has`, `Dict.size`, `Dict.delete`, and added definitions to `Number.min` and `Number.max` that support two number params ([#2551](https://github.com/quantified-uncertainty/squiggle/pull/2551)) -- Removed `title` attribute from `Table.make()`; you can use `@name` and `@description` tags instead ([#2718](https://github.com/quantified-uncertainty/squiggle/pull/2718)) +* Removed `title` attribute from `Table.make()`; you can use `@name` and `@description` tags instead ([#2718](https://github.com/quantified-uncertainty/squiggle/pull/2718)) -- `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) +* `Calculator.make(fn)` works for functions with n>0 params ([#2694](https://github.com/quantified-uncertainty/squiggle/pull/2694)) -- Expose `getFunctionDocumentation` function to render documentatiton in the playground ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) +* Expose `getFunctionDocumentation` function to render documentatiton in the playground ([#2583](https://github.com/quantified-uncertainty/squiggle/pull/2583)) -- Breaking: Change `Number.rangeDomain({min, max})` to be `rangeDomain(min, max)` ([#2692](https://github.com/quantified-uncertainty/squiggle/pull/2692)) +* Breaking: Change `Number.rangeDomain({min, max})` to be `rangeDomain(min, max)` ([#2692](https://github.com/quantified-uncertainty/squiggle/pull/2692)) -- Alias `Module.make()` methods to `Module()` ([#2681](https://github.com/quantified-uncertainty/squiggle/pull/2681)) +* Alias `Module.make()` methods to `Module()` ([#2681](https://github.com/quantified-uncertainty/squiggle/pull/2681)) -- Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) +* Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. ([#2768](https://github.com/quantified-uncertainty/squiggle/pull/2768)) -- Added `Dist.median`, `Number.quantile`, `Number.median` ([#2577](https://github.com/quantified-uncertainty/squiggle/pull/2577)) +* Added `Dist.median`, `Number.quantile`, `Number.median` ([#2577](https://github.com/quantified-uncertainty/squiggle/pull/2577)) -- Added data-first definitions for `Plot.dist`, `Plot.dists`, `Plot.numericFn`, `Plot.distFn`, `Table.make`, `Calculator.make`. Deprecate old versions. ([#2676](https://github.com/quantified-uncertainty/squiggle/pull/2676)) +* Added data-first definitions for `Plot.dist`, `Plot.dists`, `Plot.numericFn`, `Plot.distFn`, `Table.make`, `Calculator.make`. Deprecate old versions. ([#2676](https://github.com/quantified-uncertainty/squiggle/pull/2676)) -- Breaking: `Plot.scatter` now only accepts sampleset distributions. ([#2655](https://github.com/quantified-uncertainty/squiggle/pull/2655)) +* Breaking: `Plot.scatter` now only accepts sampleset distributions. ([#2655](https://github.com/quantified-uncertainty/squiggle/pull/2655)) -- Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) +* Calculator result functions no longer re-run on input changes. Calculator inputs can be empty, if the function doesn't take any arguments ([#2525](https://github.com/quantified-uncertainty/squiggle/pull/2525)) -- Fix `!` operator: `!0` now evaluates to `true`, and `!1` to `false` ([#2658](https://github.com/quantified-uncertainty/squiggle/pull/2658)) +* Fix `!` operator: `!0` now evaluates to `true`, and `!1` to `false` ([#2658](https://github.com/quantified-uncertainty/squiggle/pull/2658)) -- Fix pointwise combination precision issues on discrete PointSet dists. This was affecting `mixture` and pointwise operators. ([#2514](https://github.com/quantified-uncertainty/squiggle/pull/2514)) +* Fix pointwise combination precision issues on discrete PointSet dists. This was affecting `mixture` and pointwise operators. ([#2514](https://github.com/quantified-uncertainty/squiggle/pull/2514)) ## 0.8.6 -* Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) +- Added [Calculators](https://www.squiggle-language.com/docs/Api/Calculator), useful for presenting functions to end-users ([#2265](https://github.com/quantified-uncertainty/squiggle/pull/2265), [#2343](https://github.com/quantified-uncertainty/squiggle/pull/2343)) -* Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) +- Added `title` to all [plots](https://www.squiggle-language.com/docs/Api/Plot), and to scales for labeling x and y axes. Added validation for `tickFormat`. ([#2337](https://github.com/quantified-uncertainty/squiggle/pull/2337)) -* Improved [mixture()](https://www.squiggle-language.com/docs/Api/Dist#mixture) typing, but limited to 5 parameters maximum ([#2334](https://github.com/quantified-uncertainty/squiggle/pull/2334)) +- Improved [mixture()](https://www.squiggle-language.com/docs/Api/Dist#mixture) typing, but limited to 5 parameters maximum ([#2334](https://github.com/quantified-uncertainty/squiggle/pull/2334)) -* Added [Dict.pick](https://www.squiggle-language.com/docs/Api/Dictionary#pick), [Dict.omit](https://www.squiggle-language.com/docs/Api/Dictionary#omit) ([#2376](https://github.com/quantified-uncertainty/squiggle/pull/2376)) +- Added [Dict.pick](https://www.squiggle-language.com/docs/Api/Dictionary#pick), [Dict.omit](https://www.squiggle-language.com/docs/Api/Dictionary#omit) ([#2376](https://github.com/quantified-uncertainty/squiggle/pull/2376)) -* [sum](https://www.squiggle-language.com/docs/Api/Number#sum), [product](https://www.squiggle-language.com/docs/Api/Number#product), [sort](https://www.squiggle-language.com/docs/Api/Number#sort), [cumsum](https://www.squiggle-language.com/docs/Api/Number#cumulative-sum), [cumprod](https://www.squiggle-language.com/docs/Api/Number#cumulative-product) all accept lists with 0 elements ([#2351](https://github.com/quantified-uncertainty/squiggle/pull/2351)) +- [sum](https://www.squiggle-language.com/docs/Api/Number#sum), [product](https://www.squiggle-language.com/docs/Api/Number#product), [sort](https://www.squiggle-language.com/docs/Api/Number#sort), [cumsum](https://www.squiggle-language.com/docs/Api/Number#cumulative-sum), [cumprod](https://www.squiggle-language.com/docs/Api/Number#cumulative-product) all accept lists with 0 elements ([#2351](https://github.com/quantified-uncertainty/squiggle/pull/2351)) -* Added [Dist.sum](https://www.squiggle-language.com/docs/Api/Dist#sum), [Dist.product](https://www.squiggle-language.com/docs/Api/Dist#product), [Dist.cumsum](https://www.squiggle-language.com/docs/Api/Dist#cumulative-sum), [Dist.cumprod](https://www.squiggle-language.com/docs/Api/Dist#cumulative-product), [Dist.diff](https://www.squiggle-language.com/docs/Api/Dist#diff) ([#2356](https://github.com/quantified-uncertainty/squiggle/pull/2356)) +- Added [Dist.sum](https://www.squiggle-language.com/docs/Api/Dist#sum), [Dist.product](https://www.squiggle-language.com/docs/Api/Dist#product), [Dist.cumsum](https://www.squiggle-language.com/docs/Api/Dist#cumulative-sum), [Dist.cumprod](https://www.squiggle-language.com/docs/Api/Dist#cumulative-product), [Dist.diff](https://www.squiggle-language.com/docs/Api/Dist#diff) ([#2356](https://github.com/quantified-uncertainty/squiggle/pull/2356)) -* Added [List.slice](https://www.squiggle-language.com/docs/Api/List#slice), [Danger.combinations](https://www.squiggle-language.com/docs/Api/Danger#combinations), [Danger.allCombinations](https://www.squiggle-language.com/docs/Api/Danger#allcombinations) ([#2347](https://github.com/quantified-uncertainty/squiggle/pull/2347)) +- Added [List.slice](https://www.squiggle-language.com/docs/Api/List#slice), [Danger.combinations](https://www.squiggle-language.com/docs/Api/Danger#combinations), [Danger.allCombinations](https://www.squiggle-language.com/docs/Api/Danger#allcombinations) ([#2347](https://github.com/quantified-uncertainty/squiggle/pull/2347)) -* Added more standard library functions: [typeOf](https://www.squiggle-language.com/docs/Api/Builtin#typeof), [List.every](https://www.squiggle-language.com/docs/Api/List#every), [List.some](https://www.squiggle-language.com/docs/Api/List#some), [List.find](https://www.squiggle-language.com/docs/Api/List#find), [List.findIndex](https://www.squiggle-language.com/docs/Api/List#findindex), [List.zip](https://www.squiggle-language.com/docs/Api/List#zip), [List.unzip](https://www.squiggle-language.com/docs/Api/List#unzip), [List.shuffle](https://www.squiggle-language.com/docs/Api/List#shuffle), [List.uniq](https://www.squiggle-language.com/docs/Api/List#uniq) (works with more types now), [List.uniqBy](https://www.squiggle-language.com/docs/Api/List#uniqby), [Dist.make](https://www.squiggle-language.com/docs/Api/Dist#make), [PointSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistPointSet#fromnumber), [PointSet.make](https://www.squiggle-language.com/docs/Api/DistPointSet#make), [SampleSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistSampleSet#fromnumber), [SampleSet.make](https://www.squiggle-language.com/docs/Api/DistSampleSet#make), [String.make](https://www.squiggle-language.com/docs/Api/String#make), [String.split](https://www.squiggle-language.com/docs/Api/String#split) ([#2290](https://github.com/quantified-uncertainty/squiggle/pull/2290)) +- Added more standard library functions: [typeOf](https://www.squiggle-language.com/docs/Api/Builtin#typeof), [List.every](https://www.squiggle-language.com/docs/Api/List#every), [List.some](https://www.squiggle-language.com/docs/Api/List#some), [List.find](https://www.squiggle-language.com/docs/Api/List#find), [List.findIndex](https://www.squiggle-language.com/docs/Api/List#findindex), [List.zip](https://www.squiggle-language.com/docs/Api/List#zip), [List.unzip](https://www.squiggle-language.com/docs/Api/List#unzip), [List.shuffle](https://www.squiggle-language.com/docs/Api/List#shuffle), [List.uniq](https://www.squiggle-language.com/docs/Api/List#uniq) (works with more types now), [List.uniqBy](https://www.squiggle-language.com/docs/Api/List#uniqby), [Dist.make](https://www.squiggle-language.com/docs/Api/Dist#make), [PointSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistPointSet#fromnumber), [PointSet.make](https://www.squiggle-language.com/docs/Api/DistPointSet#make), [SampleSet.fromNumber](https://www.squiggle-language.com/docs/Api/DistSampleSet#fromnumber), [SampleSet.make](https://www.squiggle-language.com/docs/Api/DistSampleSet#make), [String.make](https://www.squiggle-language.com/docs/Api/String#make), [String.split](https://www.squiggle-language.com/docs/Api/String#split) ([#2290](https://github.com/quantified-uncertainty/squiggle/pull/2290)) -* Expanded equality comparisons to include all distributions, dates, time durations, scales, domains, arrays, and dictionaries. +- Expanded equality comparisons to include all distributions, dates, time durations, scales, domains, arrays, and dictionaries. ## 0.8.5 -* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -* Added support for `%` as a number suffix ([#2239](https://github.com/quantified-uncertainty/squiggle/pull/2239)) +- Added support for `%` as a number suffix ([#2239](https://github.com/quantified-uncertainty/squiggle/pull/2239)) -* Support `pow(dist, integer)` on distributions with negative samples ([#2235](https://github.com/quantified-uncertainty/squiggle/pull/2235)) \ No newline at end of file +- Support `pow(dist, integer)` on distributions with negative samples ([#2235](https://github.com/quantified-uncertainty/squiggle/pull/2235)) diff --git a/packages/textmate-grammar/CHANGELOG.md b/packages/textmate-grammar/CHANGELOG.md index 4bff6ef00b..606194b547 100644 --- a/packages/textmate-grammar/CHANGELOG.md +++ b/packages/textmate-grammar/CHANGELOG.md @@ -1,3 +1,5 @@ # @quri/squiggle-textmate-grammar -## 0.9.1 \ No newline at end of file +## 0.9.1 + +Initial public release. diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 2391b5e059..3209fa68b4 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -2,44 +2,46 @@ ## 0.2.1 -* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) +- Support JSX titles in dropdown items + +- Update `DocumentTextIcon` icon ## 0.2.0 -* Support `placement` prop in `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) +- Support `placement` prop in `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) -* Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) +- Added `window.squiggleOutput` output for debugging ([#2564](https://github.com/quantified-uncertainty/squiggle/pull/2564)) -* Rename `ArrowUturnLeftIcon` to `ResetIcon` ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) +- Rename `ArrowUturnLeftIcon` to `ResetIcon` ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) -* `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) +- `` component ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) -* Rename `ChatBubbleLeftIcon` to `CommentIcon`, remove other unused chat icons ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) +- Rename `ChatBubbleLeftIcon` to `CommentIcon`, remove other unused chat icons ([#2498](https://github.com/quantified-uncertainty/squiggle/pull/2498)) -* `` component children now can access `close` function through `useCloseDropdown` hook ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) +- `` component children now can access `close` function through `useCloseDropdown` hook ([#2549](https://github.com/quantified-uncertainty/squiggle/pull/2549)) -* `generateProvider` helper ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) +- `generateProvider` helper ([#2585](https://github.com/quantified-uncertainty/squiggle/pull/2585)) ## 0.1.5 -* `WrenchIcon` ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) +- `WrenchIcon` ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) -* `DropdownMenuLinkItem` for `` links +- `DropdownMenuLinkItem` for `` links -* Expose `` component ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) +- Expose `` component ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) -* `` and ``` components accept `standaloneLabel\` prop ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) +- `` and ``` components accept `standaloneLabel\` prop ([#2237](https://github.com/quantified-uncertainty/squiggle/pull/2237)) -* Improved `` styles ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) +- Improved `` styles ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) -* `PlusIcon` ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) +- `PlusIcon` ([#2296](https://github.com/quantified-uncertainty/squiggle/pull/2296)) ## 0.1.4 -* Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) +- Downgrade Typescript target to ES2021. This should help with loading Squiggle components on Observable through unpkg.com. ([#2269](https://github.com/quantified-uncertainty/squiggle/pull/2269)) -* `SelectFormField` and `SelectStringFormField` components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) +- `SelectFormField` and `SelectStringFormField` components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) -* "use client" directive in non-server-compatible components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) +- "use client" directive in non-server-compatible components ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) -* New icons: `GroupIcon`, `RightArrowIcon` and `EmptyIcon` ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) \ No newline at end of file +- New icons: `GroupIcon`, `RightArrowIcon` and `EmptyIcon` ([#2260](https://github.com/quantified-uncertainty/squiggle/pull/2260)) diff --git a/packages/versioned-components/CHANGELOG.md b/packages/versioned-components/CHANGELOG.md deleted file mode 100644 index b174a7f769..0000000000 --- a/packages/versioned-components/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -# @quri/versioned-squiggle-components - -## 0.9.1 \ No newline at end of file diff --git a/packages/vscode-ext/CHANGELOG.md b/packages/vscode-ext/CHANGELOG.md index 23d71052e5..dc36776c6c 100644 --- a/packages/vscode-ext/CHANGELOG.md +++ b/packages/vscode-ext/CHANGELOG.md @@ -2,14 +2,16 @@ ## 0.9.1 +Use 0.9.1 Squiggle. No extension-specific changes. + ## 0.9.0 -* Use 0.9.0 Squiggle +- Use 0.9.0 Squiggle -* Convert webview implementation to TypeScript +- Convert webview implementation to TypeScript ## 0.8.6 Use 0.8.6 Squiggle. No extension-specific changes. -## 0.8.5 \ No newline at end of file +## 0.8.5 From 282f6bb9d746c2c5be0c6218c9e0771d3e684bb7 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Thu, 11 Jan 2024 17:28:38 -0600 Subject: [PATCH 3/3] update website changelog, new generate-website-changelog script --- packages/ops/src/changelog.cts | 4 +-- packages/ops/src/scripts/changeset-version.ts | 3 +- .../src/scripts/generate-website-changelog.ts | 14 ++++++++ packages/ops/src/website.ts | 10 ++---- .../src/pages/docs/Changelog/v0.9.1.mdx | 32 +++++++++---------- 5 files changed, 35 insertions(+), 28 deletions(-) create mode 100644 packages/ops/src/scripts/generate-website-changelog.ts diff --git a/packages/ops/src/changelog.cts b/packages/ops/src/changelog.cts index 63e65c2d00..c55d2c9e3a 100644 --- a/packages/ops/src/changelog.cts +++ b/packages/ops/src/changelog.cts @@ -11,11 +11,11 @@ import type { ChangelogFunctions } from "@changesets/types"; import { REPO } from "./constants.cjs"; const changelogFunctions: ChangelogFunctions = { - getDependencyReleaseLine: async (changesets, dependenciesUpdated) => { + getDependencyReleaseLine: async () => { // Listing dependency updates adds too much noise. return ""; }, - getReleaseLine: async (changeset, type) => { + getReleaseLine: async (changeset) => { let prFromSummary: number | undefined; let commitFromSummary: string | undefined; diff --git a/packages/ops/src/scripts/changeset-version.ts b/packages/ops/src/scripts/changeset-version.ts index aea8e2b334..2848ab03f9 100644 --- a/packages/ops/src/scripts/changeset-version.ts +++ b/packages/ops/src/scripts/changeset-version.ts @@ -1,5 +1,6 @@ import { cleanupGeneratedChangelogs } from "../changelog-cleanup.js"; import { exec } from "../lib.js"; +import { getChangedPackages } from "../package-utils.js"; import { updateSquiggleLangVersion } from "../patch-js.js"; import { generateWebsiteChangelog } from "../website.js"; @@ -18,7 +19,7 @@ async function main() { await updateSquiggleLangVersion(); // Generate MDX page for the upcoming release. - await generateWebsiteChangelog(); + await generateWebsiteChangelog(await getChangedPackages()); } main(); diff --git a/packages/ops/src/scripts/generate-website-changelog.ts b/packages/ops/src/scripts/generate-website-changelog.ts new file mode 100644 index 0000000000..17d79fd2bb --- /dev/null +++ b/packages/ops/src/scripts/generate-website-changelog.ts @@ -0,0 +1,14 @@ +import { PRIMARY_SQUIGGLE_PACKAGE_DIRS } from "../constants.cjs"; +import { generateWebsiteChangelog } from "../website.js"; + +// This script is useful on "New release" PR branches if you want to regenerate MDX changelog after editing changesets-generated CHANGELOG.md files manually. + +async function main() { + // Repo root. + process.chdir("../.."); + + // Generate MDX page for the upcoming release. + await generateWebsiteChangelog(PRIMARY_SQUIGGLE_PACKAGE_DIRS); +} + +main(); diff --git a/packages/ops/src/website.ts b/packages/ops/src/website.ts index 72f4157973..4507512490 100644 --- a/packages/ops/src/website.ts +++ b/packages/ops/src/website.ts @@ -7,11 +7,7 @@ import { VSCODE_PACKAGE_NAME, WEBSITE_CHANGELOG_ROOT, } from "./constants.cjs"; -import { - getChangedPackages, - getPackageInfo, - PackageInfo, -} from "./package-utils.js"; +import { getPackageInfo, PackageInfo } from "./package-utils.js"; export type PackageChangelog = { packageDir: string; @@ -72,9 +68,7 @@ async function updateChangelogMeta(version: string) { }) ); } -export async function generateWebsiteChangelog() { - const packageDirs = await getChangedPackages(); - +export async function generateWebsiteChangelog(packageDirs: string[]) { const allChangelogs: PackageChangelog[] = []; for (const packageDir of packageDirs) { diff --git a/packages/website/src/pages/docs/Changelog/v0.9.1.mdx b/packages/website/src/pages/docs/Changelog/v0.9.1.mdx index 2813815faa..83db040135 100644 --- a/packages/website/src/pages/docs/Changelog/v0.9.1.mdx +++ b/packages/website/src/pages/docs/Changelog/v0.9.1.mdx @@ -2,43 +2,41 @@ ### [@quri/squiggle-lang](https://www.npmjs.com/package/@quri/squiggle-lang) -* Breaking: Deprecates Plot titles, changes Tag.all -> Tag.getAll ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) +* Breaking: Deprecated `Plot` titles ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) -* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) +* Breaking: Renamed `Tag.all` -> `Tag.getAll` ([#2925](https://github.com/quantified-uncertainty/squiggle/pull/2925)) -* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) +* Breaking: Renamed `Tag.description` to `Tag.doc` ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) -* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) +* Fix `isEqual` and `==` for Squiggle Lists ([#2920](https://github.com/quantified-uncertainty/squiggle/pull/2920)) -* Fix isEqual for Squiggle Lists ([#2920](https://github.com/quantified-uncertainty/squiggle/pull/2920)) +* Added `throw` function ([#2941](https://github.com/quantified-uncertainty/squiggle/pull/2941)) -* Added Common.throw ([#2941](https://github.com/quantified-uncertainty/squiggle/pull/2941)) - -* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) +* Adds `Tag.notebook` view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) ### [@quri/squiggle-components](https://www.npmjs.com/package/@quri/squiggle-components) -* Refactored Squiggle-Lang to use Scale methods. Now, there is just SqScale, without subtypes. ([#2829](https://github.com/quantified-uncertainty/squiggle/pull/2829)) +* Top level navigation in viewer (Result/Variables) is represented as a dropdown ([#2909](https://github.com/quantified-uncertainty/squiggle/pull/2909)) -* Breaking: Changed Tag.description to Tag.doc ([#2827](https://github.com/quantified-uncertainty/squiggle/pull/2827)) +* `` component takes a single `SqValue` instead of `resultVariables` and `resultItem` ([#2909](https://github.com/quantified-uncertainty/squiggle/pull/2909)) -* Fixed RelativeValues plot display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) +* Fixed `RelativeValues.gridPlot` display ([#2927](https://github.com/quantified-uncertainty/squiggle/pull/2927)) -* Fix dist chart legend positioning and how it affects the chart height ([#2911](https://github.com/quantified-uncertainty/squiggle/pull/2911)) +* Fixed dist chart legend positioning and how it affects the chart height ([#2911](https://github.com/quantified-uncertainty/squiggle/pull/2911)) -* "Fixed documention css quirks in editor" ([#2913](https://github.com/quantified-uncertainty/squiggle/pull/2913)) +* Fixed documention css quirks in editor ([#2913](https://github.com/quantified-uncertainty/squiggle/pull/2913)) -* Adds Tag.notebook view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) +* Added `Tag.notebook` view for Lists ([#2929](https://github.com/quantified-uncertainty/squiggle/pull/2929)) ### [@quri/prettier-plugin-squiggle](https://www.npmjs.com/package/@quri/prettier-plugin-squiggle) -* "Fixes Prettier bug where trailing comma after single-element dict key would be removed" ([#2946](https://github.com/quantified-uncertainty/squiggle/pull/2946)) +* Fixed Prettier bug where trailing comma after single-element dict key would be removed ([#2946](https://github.com/quantified-uncertainty/squiggle/pull/2946)) ### [@quri/squiggle-textmate-grammar](https://www.npmjs.com/package/@quri/squiggle-textmate-grammar) -_No changes._ +Initial public release. This package is used for highlighting Squiggle code in VS Code extension and in documentation. ### [vscode-squiggle](https://marketplace.visualstudio.com/items?itemName=QURI.vscode-squiggle) -_No changes._ +Use 0.9.1 Squiggle. No extension-specific changes.