Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~1.26.0
->~1.27.0
^0.88.1
->^0.93.0
1.91.8
->1.95.2
^5.0.0
->^6.0.0
^5.2.1
->^6.0.0
^0.90.0
->^0.93.0
^5.0.0
->^7.0.0
2.8.8
->3.3.3
7.11.0
->7.11.2
^0.14.2
->^2.0.0
Release Notes
solana-labs/solana-web3.js (@solana/web3.js)
v1.95.2
Compare Source
Bug Fixes
getSetComputeUnitLimitInstruction
helper (#2992) (a61a732)v1.95.1
Compare Source
Bug Fixes
memcmp
encoding (base58
) when not supplied (#2945) (8ea5794)v1.95.0
Compare Source
Features
iconUrl
toValidatorInfo
type (#2919) (3c67d8a)v1.94.0
Compare Source
Features
v1.93.4
Compare Source
Bug Fixes
getConfirmedSignatureForAddress2
and update other deprecation notices' validator versions (#2871) (1df9acb), closes #2859getStakeActivation
RPC method (#2864) (8bd58de)v1.93.3
Compare Source
Bug Fixes
onProgramAccountChange()
andonAccountChange()
now accept an encoding (#2861) (f9b0d6d), closes #2725v1.93.2
Compare Source
Bug Fixes
v1.93.1
Compare Source
Bug Fixes
rpc-websockets
dependency (91732c8)v1.93.0
Compare Source
Features
rpc-websockets
v9 (#2800) (b20731d)v1.92.3
Compare Source
Bug Fixes
v1.92.2
Compare Source
Bug Fixes
v1.92.1
Compare Source
Bug Fixes
v1.92.0
Compare Source
Features
v1.91.9
Compare Source
Bug Fixes
cryptocoinjs/bs58 (bs58)
v6.0.0
Compare Source
75lb/command-line-args (command-line-args)
v6.0.0
Compare Source
This is a non-functional release intended to refresh the codebase and dependency tree. There are no changes to the library's API or behaviour.
Breaking changes since 5.2.1
Misc other improvements
Upgrade Notes
ReactiveX/IxJS (ix)
v7.0.0
Compare Source
Bug Fixes
chore
build: fix gulp async task completion (c68e97c)
Fix exports (#371) (d461eae), closes #371
v6.0.0
Compare Source
Bug Fixes
Build System
chore
Documentation
docs/asynciterable/converting.md: Fix fromEventPattern import (#350) (f07b7ef)
Fix ESM imports and tree-shaking (#363) (d31d2c5), closes #363
Add
docs
action (#360) (d6591ee), closes #360prettier/prettier (prettier2)
v3.3.3
Compare Source
diff
Add parentheses for nullish coalescing in ternary (#16391 by @cdignam-segment)
This change adds clarity to operator precedence.
Add parentheses for decorator expressions (#16458 by @y-schneider)
Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.
Support
@let
declaration syntax (#16474 by @sosukesuzuki)Adds support for Angular v18
@let
declaration syntax.Please see the following code example. The
@let
declaration allows you to define local variables within the template:For more details, please refer to the excellent blog post by the Angular Team: Introducing @let in Angular.
We also appreciate the Angular Team for kindly answering our questions to implement this feature.
v3.3.2
Compare Source
diff
Fix handlebars path expressions starts with
@
(#16358 by @Princeyadav05)v3.3.1
Compare Source
diff
Preserve empty lines in front matter (#16347 by @fisker)
Preserve explicit language in front matter (#16348 by @fisker)
Avoid line breaks in import attributes (#16349 by @fisker)
v3.3.0
Compare Source
diff
🔗 Release Notes
v3.2.5
Compare Source
diff
Support Angular inline styles as single template literal (#15968 by @sosukesuzuki)
Angular v17 supports single string inline styles.
Unexpected embedded formatting for Angular template (#15969 by @JounQin)
Computed template should not be considered as Angular component template
Use
"json"
parser fortsconfig.json
by default (#16012 by @sosukesuzuki)In v2.3.0, we introduced
"jsonc"
parser which adds trialing comma by default.When adding a new parser we also define how it will be used based on the
linguist-languages
data.tsconfig.json
is a special file used by TypeScript, it uses.json
file extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing.json
file extension.We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the
"jsonc"
parser for yourtsconfig.json
files, add the following to your.pretterrc
filev3.2.4
Compare Source
diff
Fix incorrect parser inference (#15947 by @fisker)
Files like
.eslintrc.json
were incorrectly formatted as JSONC files.v3.2.3
Compare Source
diff
Throw errors for invalid code (#15881 by @fisker, @Josh-Cena, @auvred)
Fix parser inference (#15927 by @fisker)
v3.2.2
Compare Source
diff
Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#15896 by @eelco)
For example this code would crash before:
Fix formatting error on optional call expression and member chain (#15920 by @sosukesuzuki)
v3.2.1
Compare Source
diff
Fix formatting error on member chain (#15915 by @sosukesuzuki)
v3.2.0
Compare Source
diff
🔗 Release Notes
v3.1.1
Compare Source
diff
Fix config file search (#15363 by @fisker)
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
Skip explicitly passed symbolic links with
--no-error-on-unmatched-pattern
(#15533 by @sanmai-NL)Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can use
--no-error-on-unmatched-pattern
to simply skip symbolic links.Consistently use tabs in ternaries when
useTabs
istrue
(#15662 by @auvred)Improve config file search (#15663 by @fisker)
The Prettier config file search performance has been improved by more effective cache strategy.
Fix unstable and ugly formatting for comments in destructuring patterns (#15708 by @sosukesuzuki)
Support "Import Attributes" (#15718 by @fisker)
TypeScript 5.3 supports the latest updates to the import attributes proposal.
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#15750 by @ExplodingCabbage)
The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @ds300. However, Prettier's documentation (including the CLI
--help
text) continued to claim otherwise, falsely. The documentation is now fixed.Keep curly braces and
from
keyword in emptyimport
statements (#15756 by @fisker)Keep empty import attributes and assertions (#15757 by @fisker)
v3.1.0
Compare Source
diff
🔗 Release Notes
v3.0.3
Compare Source
diff
Add
preferUnplugged: true
topackage.json
(#15169 by @fisker and @so1ve)Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add
preferUnplugged: true
topackage.json
, so Yarn will install Prettier as unplug by default.Support shared config that forbids
require()
(#15233 by @fisker)If an external shared config package is used, and the package
exports
don't haverequire
ordefault
export.In Prettier 3.0.2 Prettier fails when attempt to
require()
the package, and throws an error.Allow argument of
require()
to break (#15256 by @fisker)Do not print trailing commas in arrow function type parameter lists in
ts
code blocks (#15286 by @sosukesuzuki)Support TypeScript 5.2
using
/await using
declaration (#15321 by @sosukesuzuki)Support for the upcoming Explicit Resource Management feature in ECMAScript.
using
/await using
declarationv3.0.2
Compare Source
diff
Break after
=
of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#15204 by @seiyab)Do not add trailing comma for grouped scss comments (#15217 by @auvred)
Print
declare
andexport
keywords for nested namespace (#15249 by @sosukesuzuki)v3.0.1
Compare Source
diff
Fix cursor positioning for a special case (#14812 by @fisker)
Fix plugins/estree.d.ts to make it a module (#15018 by @kingyue737)
Add
export {}
inplugins/estree.d.ts
to fix the "File is not a module" errorAdd parenthesis around leading multiline comment in return statement (#15037 by @auvred)
Add support for Vue "Generic Components" (#15066 by @auvred)
https://blog.vuejs.org/posts/vue-3-3#generic-components
Fix comments print in
IfStatement
(#15076 by @fisker)Add missing type definition for
printer.preprocess
(#15123 by @so1ve)Add missing
getVisitorKeys
method type definition forPrinter
(#15125 by @auvred)Add typing to support
readonly
array properties of AST Node (#15127 by @auvred)Add space before unary minus followed by a function call (#15129 by @pamelalozano)
v3.0.0
Compare Source
diff
🔗 Release Notes
elpheria/rpc-websockets (rpc-websockets)
v7.11.2
Compare Source
v7.11.1
Compare Source
ianstormtaylor/superstruct (superstruct_solana)
v2.0.2
Compare Source
be4bc95
v2.0.1
Compare Source
5d18222
05254f0
5a884ac
v2.0.0
Compare Source
Some changes in Superstruct v2.0 are potentially breaking if you were using the library in unusual and/or undocumented ways. Since it has been almost 2 years since the last significant release, we want to make sure that we don't ruin someone's day by surprising them with a fix that changes buggy behavior they were relying on. For this reason, some changes that would ordinarily be considered a fix are marked as breaking.
🚀 For the absolute majority of users, this should be a smooth upgrade that will not require any changes.
Breaking
object()
,type()
, andrecord()
structs.object()
(viamask()
,create()
orvalidate()
with thecoerce: true
option), arrays will no longer be automatically converted to objects with indexes as keys. See this PR comment.New
Fixed
mask()
withunion()
now correctly masks union members instead of incorrectly failing validation.Deprecations
New Maintainers & Next Steps
Project maintenance has moved to a new volunteer team: @arturmuller and @yeoffrey. Hello there! 👋 We are currently going through the existing issues and PRs, trying to resolve or close the backlog. This might take a little while so please bear with us.
If you are interested in contributing — or helping us process the backlog — we would love your help. Don't hesitate to help us triage, open an issue, or submit a PR. You can also join our Superstruct maintainers Discord: https://discord.gg/pdHrQBjQ96.
If you have questions, suggestions, or are just not sure about something related to Superstruct, head over to GitHub Discussions! We have recently enabled this feature to help us differentiate between actual issues/bugs and everything else. We hope this will be a great new place where Superstruct users can get quick help from us — the maintainers — but also from the community as a whole.
See you at the next release! ✌️
v1.0.4
Compare Source
Fixes
4511928
Documentation
c88b111
a4c2ebd
772cc7f
03d65bd
v1.0.3
Compare Source
v1.0.2
Compare Source
v1.0.1
Compare Source
v1.0.0
Compare Source
NEW
Added an optional
message
argument to override error messages. You can now pass in amessage
argument to all of the error checking functions which will override any error message with your own message. If you do, Superstruct's original descriptive message will still be accessible viaerror.cause
.v0.16.7
Compare Source
v0.16.6
Compare Source
v0.16.5
Compare Source
v0.16.4
Compare Source
v0.16.3
Compare Source
v0.16.2
Compare Source
v0.16.1
Compare Source
v0.16.0
Compare Source
BREAKING
Refinement functions are now called with valid, but potentially unrefined values. Previously the functions passed in to
refine
would always be called with sub-elements (eg. when using objects or arrays) that were completely valid and refined. However, this prevented collecting all the refinement errors from subelements in a validation in one go, which is common when validating forms. Note: this should not have any affect on almost all use cases, so you're safe to upgrade.v0.15.5
Compare Source
v0.15.4
Compare Source
v0.15.3
Compare Source
v0.15.2
Compare Source
v0.15.1
Compare Source
v0.15.0
Compare Source
FIXED
Unions can now be coerced. Previously unions created a barrier in coercion such that structs nested inside unions would not have their coercion logic triggered, but this has been fixed.
Assigning preserves
type
structs. Previously using theassign
helper would implicitly converttype
structs intoobject
structs which wasn't expected and confusing, but this has been fixed.Configuration
📅 Schedule: Branch creation - "after 9pm on sunday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.