Read-DbaBackupHeader - Support for PS Core

At least it seems to work on my testing

Type of Change

[x] Bug fix (non-breaking change, fixes #5070 )
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
Details are in the related issue #5070

@StartAutomating just $p is the problem it has running on PS Core. Therefore it is not sufficient.

It will also be hard for $p to be null since we require the Path parameter to be provided.

"$p", not just $p.
If I read your fix correctly, the problem was that the path wasn't coerced to a string automagically by PowerShell (which is weird, since pathinfos should cast cleanly to strings (this may be PSH's bug)).
$p.ToString() will fix this.  "$p" will do the same, but will tend to run faster (because Powershell will have to interpret less).  It's a really minor drag either way (1.05x-1.5x faster over 10000 runs).

Use of "$p" takes it longer (981ms vs 1.4 sec)...but does seem to correct the warning.

I'm just getting used to the codebase, but if just .ToString() didn't do it, then you're almost certainly experiencing something I liked to call a "null burp".
Basically, this is when you pass in a list that unexpectedly contains a null, which can throw off lots of little things within PowerShell.
Taking a look at the function in question, a few things jump out at me:

[object[]] pipelining is generally not a great thing (anything can be an object, including a null)
It seems like the function is designed to take a File path (I'm not sure if you're yet accounting for if that was a PowerShell path or not)
If there aren't any other scenarios than piping in a file or a string that could be a file name, then there are cleaner ways to do this that should sidestep the bug
If this bug originated from something that calls this, then I'd like to find the source of the null burp.

To be brief, if this is primarily taking a bunch of files as input, it's not doing it the "right" way, and this will make the script more error prone.
This type of fix is a band-aid overall.  Please let me know if you'd like something more surgical to be done here.

Yeah, there is a good bit more to it than that...

I'm happy to help more directly if you can provide context and contact information (sorry, I'm new and while I believe we've met I don't believe I have your info).

[object[]] pipelining is generally not a great thing (anything can be an object, including a null)
This is required for TEPP so we can populate values where we have it configured. We simply standardized this for piping purposes. We are aware that things can be a null and in situations where we know 100% they are we account for it in the code.

It seems like the function is designed to take a File path (I'm not sure if you're yet accounting for if that was a PowerShell path or not)

I don't follow what you mean by PowerShell path...it is whatever path the backups are expected to be read from. The path directory is passed from a parent command call, this command wants the file path itself but we add a check to make sure it is a file path and not just a directory.

If there aren't any other scenarios than piping in a file or a string that could be a file name, then there are cleaner ways to do this that should sidestep the bug
There are many scenarios that use this command. The backup and restore commands are many pieces and are not modified lightly anymore these days because they are the most used commands we have.

If this bug originated from something that calls this, then I'd like to find the source of the null burp.
The bug only shows up when it is being called from the parent command Get-DbaBackupHistory because we iterate over every file we find in the directory/path passed into that parent command, and each file is passed into this one to read the header. The reading is done asynchronously to speed up that process, in the event someone passed in a directory that has 4 days worth of 15-minute log backup files.

@potatoqualitee test finally pass, the ones that fail are from some Google address being used... 🤷♂
Describe : Resolve-DbaNetworkName Unit Tests
Context  : Testing basic name resolution
Name     : It should test <IP_ADDRESS> with Turbo = False
Result   : Failed
Message  : Expected strings to be the same, but they were different.
           Expected length: 19
           Actual length:   3
           Strings differ at index 0.
           Expected: 'google-public-dns-a'
           But was:  'DNS'
           -----------^

This is required for TEPP so we can populate values where we have it configured. We simply standardized this for piping purposes. We are aware that things can be a null and in situations where we know 100% they are we account for it in the code.

TEPP?

It seems like the function is designed to take a File path (I'm not sure if you're yet accounting for if that was a PowerShell path or not)

I don't follow what you mean by PowerShell path...it is whatever path the backups are expected to be read from. The path directory is passed from a parent command call, this command wants the file path itself but we add a check to make sure it is a file path and not just a directory.

I meant to check two things:

that only files are meant to be piped in (seems like yes )
that said files could come from a relative path in PowerShell (..\foo\bar) vs an absolute path ( c:\foo\bar)

If there aren't any other scenarios than piping in a file or a string that could be a file name, then there are cleaner ways to do this that should sidestep the bug
There are many scenarios that use this command. The backup and restore commands are many pieces and are not modified lightly anymore these days because they are the most used commands we have.

Do those scenarios pipe anything other than files or paths to files?  I understand the imperative to tread lightly, and am mainly trying to grow in understanding now before potenially readdressing some of the performance problems I see here at a later date.

If this bug originated from something that calls this, then I'd like to find the source of the null burp.

The bug only shows up when it is being called from the parent command Get-DbaBackupHistory because we iterate over every file we find in the directory/path passed into that parent command, and each file is passed into this one to read the header. The reading is done asynchronously to speed up that process, in the event someone passed in a directory that has 4 days worth of 15-minute log backup files.

Ok, it took a while, but I believe I see how the problem is occurring.  Apologies, I don't know how to quote other files.
The HistoryObject.Fullname property is populated like so:  $group.Group.Path
This will only work in PowerShell v3+ (fine enough), but it can really, really bite you and isn't ideal.  What this actually says is "find me all of the items in this group's Path property".  If this property is null, most later versions of PowerShell are smart enough to skip it.  However, as I'm sure you've encountered,[Dbnull]::Value -ne $null.  Give me some more context and I can recommend how this changes.

We can discuss further in an issue if you would like to create one or in dbatools-dev channel of SQL Community Slack...there is no reason to go into detail on all this in this PR.

Thank you @wsmelton - i updated that test and merged. and thank you @StartAutomating for the feedback! We have the channel #dbatools-dev in the SQL community Slack at dbatools.io/slack if you'd like to join 👍


Integrate ExternalPtr<T> and #[extendr] for impl-blocks

[Help wanted]
Before this PR, ExternalPtr<T> and #[extendr]-impl were not connected at all.
In fact, it was doubly implemented. Also, runtime type-checks between passing R the
ExternalPtr<T>s was through strings. R recommends using symbols for the comparisons,
and while we did do that, the symbols are ownership-checked, and we were generating
them every time types were passed.
Progress

Added ExternalData<T> which adds a TypeId to what's covered by ExternalPtr<T>.
Thus, we have ExternalPtr<ExternalData<T>>. By virtue of repr(C), we may extract first
field (here TypeId) from an opaque pointer to an unknown ExternalPtr.

We use addr_of! because it could be bad to create an intermediate reference (for the pointer) of
a thing that isn't all that valid (ExternalData<()>). It is some dark-magic that someone suggested (named @wolvereness).

Deprecating / Removing check_external_ptr_type as it is not a recommended way of doing
reflection, see documentation on std::any::type_name for this.

From now on #[extendr]-impl types must be Debug.

Removed From<&T> for Robj as it doesn't make sense to create a ExternalPtr from a
reference; We need to have an owning pointer, to even finalize the object to begin with.

Added static methods on ExternalPtr, as the issue is we cannot return references to
local data, and thus instantiating an ExternalPtr<T> in say FromRobj is not feasible.

Hurdle
FromRobj is not playing nicely; Changing that will increase the foot-print of this PR,
and it is not obvious to me how to change it.

On the rust discord, message link, someone suggested
pub struct Robj;

pub trait FromRobj {
    fn from_robj(robj: &Robj) -> std::result::Result<&Self, &'static str>;
}

struct ExternalPtr<T>([T; 0]);

impl<T: FromRobj> ExternalPtr<T> {
    pub fn try_get_from_robj(robj: &Robj) -> std::result::Result<&T, String> {
        T::from_robj(robj).map_err(From::from)
    }
}

as a way where what I presented could compile.

Naive question: should the type be checked on Rust's side at all? Since extendr's R wrapper functions related to an extendr-class are bundled in an environment, there's no chance that an unexpected type of external pointer is passed to extendr's side as long as the user uses the R package as intended. Actually, it seems it's a common practice to use R_NilValue for tag.
cpp11: https://github.com/r-lib/cpp11/blob/500f642b4ea132ec8c168fc70a28e81e9510ece3/inst/include/cpp11/external_pointer.hpp#L59C20-L59C37
arrow: https://github.com/apache/arrow/blob/44811ba18477560711d512939535c8389dd7787b/r/src/arrow_cpp11.h#L97
xml2: https://github.com/r-lib/xml2/blob/ef2310ba246aab7842100b271a610ebfa353ee16/inst/include/xml2_types.h#L21

Tag doesn't do anything. In the first iteration, I removed it. @Ilia-Kosenkov pointed out that
.Internal(inspect(x)) would display the tag if it could, so that would yield better debugging experience.
Using type_name for type-checking is not intended. In fact, type_name documentation states that this should be avoided.
I'd like to support many things, especially the ability to use traits, and thus proper type checking will
be valuable with that. (I have an idea :P)
Casting and dereferencing a pointer is dangerous. If we are to gracefully panic, we need to check
for these things, instead of causing a segfault.

Tag doesn't do anything. In the first iteration, I removed it.

Oh, sorry, I didn't follow the discussion. I see.

Casting and dereferencing a pointer is dangerous.

I understand your fear. But, please look at the actual R wrappers. The external pointer itself is stored in the hidden variable self and the Rust function is always called against it. In order to abuse this function, the user need to corrupt the environment or define the function to .Call() directly by themselves, which I don't feel need to be cared.
https://github.com/extendr/extendr/blob/593be3da4a627c8efe8c2eccf99440a90fa00714/tests/extendrtests/R/extendr-wrappers.R#L138-L150
That said, since I don't understand the whole picture here, I'm not sure what I'm saying makes any sense. Let me think for a while. Thanks for answering.

Tag doesn't do anything. In the first iteration, I removed it.

Oh, sorry, I didn't follow the discussion. I see.

Casting and dereferencing a pointer is dangerous.

I understand your fear. But, please look at the actual R wrappers. The external pointer itself is stored in the hidden variable self and the Rust function is always called against it. In order to abuse this function, the user need to corrupt the environment or define the function to .Call() directly by themselves, which I don't feel need to be cared.
https://github.com/extendr/extendr/blob/593be3da4a627c8efe8c2eccf99440a90fa00714/tests/extendrtests/R/extendr-wrappers.R#L138-L150
That said, since I don't understand the whole picture here, I'm not sure what I'm saying makes any sense. Let me think for a while. Thanks for answering.

I now understand what this means. I've also figured out some stuff here, so I will close this PR and open a new one.


Use base64 encoding with padding also for get/visit

@bjorncs or @bratseth PR

Required for #26947

👍


More intuitive name

Thanks for the great package! I know coming up with a good name is hard, but the short cut "web" used here is a bit confusing and may cause conflictions with other packages such as web.py.

Yes it does!! I have web.py installed and can't for the life of me figure out how to import both. Does anybody know?

chaonan99:
Yes it does!! I have web.py installed and can't for the life of me figure out how to import both. Does anybody know?


oasys web test ami

oasys web test ami

@wullub Terraform plan evalaution detected changes to resources that require approval from a member of @ministryofjustice/modernisation-platform


Updates based on discussions with Dart team

Updates based on discussions with Dart team
See https://github.com/dart-lang/www.dartlang.org/issues/1496

Removed *.precompiled.js - not generated by dart2js any more
*.js_ → *.part.js

Also:

Added guidance comments

doc/ → doc/api as manually written documents may be in doc/

Added reference to appropriate Dart web site page

@ArgentiApparatus thanks for cross-referencing the discussion!

Thanks again
On Sat, Oct 24, 2015 at 12:12 PM, Brendan Forster<EMAIL_ADDRESS>wrote:

Merged #1714 https://github.com/github/gitignore/pull/1714.
—
Reply to this email directly or view it on GitHub
https://github.com/github/gitignore/pull/1714#event-444589745.


Stop linting long lines

When I'm trying to open any long minified js atom gets stuck. The reason is atom-jshint plugin because problem goes away if I disable jshint package.

Closing as this project is deprecated. 🌵


Fix swm341 ram size too large issue

Fix swm341 ram size too large issue

Thanks, I went ahead and removed the changelog as it's not needed. However, is there only a single SWM341 chip out there, or can you maybe provide a more specific model number?


Add support for OrdinationResults input for permdisp

Currently permdisp takes a DistanceMatrix object as input.
But it only uses it to convert it into a OrdinationResults object, by passing it to pcoa.
Since pcoa is used also elsewhere, would be advantageous to reuse that object as input to permdisp.

Was fixed in #1772


chore(deps): update dependency @babel/eslint-parser to v7.23.3

This PR contains the following updates:

Package
Change
Age
Adoption
Passing
Confidence

@babel/eslint-parser (source)
7.11.0 -> 7.23.3

Release Notes

babel/babel (@babel/eslint-parser)
v7.23.3
Compare Source
:bug: Bug Fix

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/16071/16071) Strip type-only TS namespaces (@colinaaa)

babel-generator

#1https://github.com/babel/babel/pull/16078/16078) Fix indentation when generating comments with concise: true (@liuxingbaoyu)

babel-compat-data, babel-plugin-bugfix-v8-static-class-fields-redefine-readonly, babel-preset-env

#1https://github.com/babel/babel/pull/14295/14295) Add a bugfix plugin for https://crbug.com/v8/12421 (@nicolo-ribaudo)

babel-plugin-transform-object-super

#1https://github.com/babel/babel/pull/15948/15948) fix: super.x in a loop (@liuxingbaoyu)

babel-helper-module-transforms, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd

#1https://github.com/babel/babel/pull/16015/16015) fix: handle __proto__ exports name in CJS/AMD/UMD (@magic-akari)

:memo: Documentation

#1https://github.com/babel/babel/pull/16044/16044) docs: Update links in @babel/eslint-parser README (@aryehb)

:house: Internal

babel-core, babel-preset-env

#1https://github.com/babel/babel/pull/15988/15988) Refactor handling of modules plugins in preset-env (@nicolo-ribaudo)

:running_woman: Performance

babel-generator

#1https://github.com/babel/babel/pull/16061/16061) perf: Improve @babel/generator performance (@liuxingbaoyu)

babel-traverse

#1https://github.com/babel/babel/pull/16060/16060) Avoid dynamic dispatch when calling wrapCheck (@yepitschunked)

:microscope: Output optimization

babel-plugin-transform-computed-properties

#https://github.com/babel/babel/pull/6652l/6652) Optimize computed properties output (byte-wise) (@Andarist)

v7.22.15
Compare Source
:bug: Bug Fix

babel-core

#1https://github.com/babel/babel/pull/15923/15923) Only perform config loading re-entrancy check for cjs (@nicolo-ribaudo)

:house: Internal

babel-cli, babel-core, babel-generator, babel-helper-builder-binary-assignment-operator-visitor, babel-helper-compilation-targets, babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin, babel-helper-member-expression-to-functions, babel-helper-module-imports, babel-helper-module-transforms, babel-helper-transform-fixture-test-runner, babel-helper-validator-identifier, babel-helper-validator-option, babel-helpers, babel-node, babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-decorators, babel-plugin-proposal-destructuring-private, babel-plugin-proposal-pipeline-operator, babel-plugin-transform-async-generator-functions, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-for-of, babel-plugin-transform-modules-commonjs, babel-plugin-transform-object-rest-spread, babel-plugin-transform-optional-chaining, babel-plugin-transform-parameters, babel-plugin-transform-property-mutators, babel-plugin-transform-react-jsx, babel-plugin-transform-runtime, babel-plugin-transform-typescript, babel-preset-env, babel-preset-flow, babel-preset-react, babel-preset-typescript, babel-register, babel-standalone, babel-template, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/15892/15892) Add explicit .ts/.js extension to all imports in src (@nicolo-ribaudo)

v7.22.11
Compare Source
:bug: Bug Fix

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/15882/15882) Fix: fully remove TS nested type-only exported namespaces (@yangguansen)

babel-types

#1https://github.com/babel/babel/pull/15867/15867) fix: definition of TS function type params (@danez)

babel-plugin-transform-async-generator-functions, babel-plugin-transform-class-static-block, babel-plugin-transform-dynamic-import, babel-plugin-transform-export-namespace-from, babel-plugin-transform-json-strings, babel-plugin-transform-logical-assignment-operators, babel-plugin-transform-nullish-coalescing-operator, babel-plugin-transform-numeric-separator, babel-plugin-transform-object-rest-spread, babel-plugin-transform-optional-catch-binding, babel-plugin-transform-optional-chaining, babel-plugin-transform-private-property-in-object

#1https://github.com/babel/babel/pull/15858/15858) fix(standalone): strip archived syntax plugins (@JLHwung)

babel-core

#1https://github.com/babel/babel/pull/15850/15850) Support configuring cache in ESM configs (@nicolo-ribaudo)

:house: Internal

babel-parser

#1https://github.com/babel/babel/pull/10940/10940) Do not record trailing comma pos when maybeAsyncArrow: false (@JLHwung)

babel-core, babel-helper-compilation-targets, babel-parser, babel-plugin-proposal-destructuring-private, babel-plugin-syntax-decorators, babel-preset-env, babel-preset-react, babel-register, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/15872/15872) enable jest/no-standalone-expect (@JLHwung)

babel-core, babel-helpers, babel-plugin-transform-async-generator-functions, babel-plugin-transform-modules-commonjs, babel-plugin-transform-regenerator, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

#1https://github.com/babel/babel/pull/15833/15833) bump json5, terser and webpack, further minimize babel helpers (@JLHwung)

Other

#1https://github.com/babel/babel/pull/15846/15846) Use Babel 8.0 alpha to build babel (@JLHwung)
#1https://github.com/babel/babel/pull/15856/15856) Exclude redundant files from publish process (@JLHwung)

:microscope: Output optimization

babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-transform-class-properties, babel-plugin-transform-classes, babel-plugin-transform-optional-chaining, babel-preset-env

#1https://github.com/babel/babel/pull/15871/15871) Simplify ?. output when chain result is ignored (@nicolo-ribaudo)

v7.22.10
Compare Source
:bug: Bug Fix

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/15799/15799) [ts] Strip type-only namespaces (@nicolo-ribaudo)
#1https://github.com/babel/babel/pull/15798/15798) [ts] Fix compiling extended exported nested namespace (@nicolo-ribaudo)

babel-helper-create-class-features-plugin, babel-plugin-proposal-decorators, babel-plugin-proposal-destructuring-private, babel-plugin-transform-class-properties, babel-plugin-transform-class-static-block, babel-plugin-transform-new-target, babel-plugin-transform-private-methods, babel-preset-env

#1https://github.com/babel/babel/pull/15701/15701) Memoize class binding when compiling private methods and static elements (@JLHwung)

:nail_care: Polish

babel-cli

#1https://github.com/babel/babel/pull/15824/15824) Add meta object to @babel/eslint-plugin (@JLHwung)

babel-traverse, babel-types

#1https://github.com/babel/babel/pull/15661/15661) Improve the type definition of path.isX (@liuxingbaoyu)

babel-generator, babel-types

#1https://github.com/babel/babel/pull/15776/15776) improve SourceLocation typing (@JLHwung)

:house: Internal

Other

#1https://github.com/babel/babel/pull/15818/15818) build: generate flow typings in prepublish job (@JLHwung)
#1https://github.com/babel/babel/pull/15777/15777) chore: bump dev dependencies and remove .eslintignore (@JLHwung)

babel-cli, babel-core, babel-generator, babel-helper-builder-react-jsx, babel-preset-env, babel-standalone

#1https://github.com/babel/babel/pull/15794/15794) Enable @typescript-eslint/no-redundant-type-constituents rule (@JLHwung)

babel-helper-compilation-targets

#1https://github.com/babel/babel/pull/15811/15811) Remove @babel/core peerDep from helper-compilation-targets (@nicolo-ribaudo)

babel-parser

#1https://github.com/babel/babel/pull/15793/15793) Use const enum in babel-parser (@JLHwung)

babel-plugin-transform-runtime, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/15716/15716) chore: Use typescript-eslint@v6 with reworked configs (@JoshuaKGoldberg)

:microscope: Output optimization

babel-plugin-transform-block-scoping, babel-plugin-transform-parameters, babel-plugin-transform-regenerator

#1https://github.com/babel/babel/pull/15746/15746) Reduce transform-block-scoping loops output size (@liuxingbaoyu)

v7.22.9
Compare Source
:bug: Bug Fix

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/15774/15774) fix: Infinity in enums (@liuxingbaoyu)

:nail_care: Polish

babel-generator

#1https://github.com/babel/babel/pull/15757/15757) recordAndTupleSyntaxType defaults to "hash" (@coderaiser)

:house: Internal

#1https://github.com/babel/babel/pull/15748/15748) Migrate to eslint.config.js (@JLHwung)
#1https://github.com/babel/babel/pull/15758/15758) Use Prettier 3 stable (@nicolo-ribaudo)

v7.22.7
Compare Source
:bug: Bug Fix

babel-generator

#1https://github.com/babel/babel/pull/15719/15719) fix: Avoid internally generating negative source maps columns (@liuxingbaoyu)

babel-core, babel-traverse

#1https://github.com/babel/babel/pull/15725/15725) Use NodePath#hub as part of the paths cache key (@nicolo-ribaudo)

Other

#1https://github.com/babel/babel/pull/15747/15747) fix: export meta from eslint-parser/experimental-worker (@JLHwung)

:house: Internal

babel-core, babel-traverse

#1https://github.com/babel/babel/pull/15702/15702) Refactor visitors merging (@nullableVoidPtr)

v7.22.6
Compare Source
:bug: Bug Fix

babel-compat-data, babel-helper-compilation-targets, babel-preset-env

#1https://github.com/babel/babel/pull/15727/15727) Add opera mobile compat data (@JLHwung)

babel-plugin-transform-optional-chaining

#1https://github.com/babel/babel/pull/15739/15739) Fix transform of delete a?.b in function params (@nicolo-ribaudo)

babel-helper-split-export-declaration, babel-plugin-transform-modules-commonjs

#1https://github.com/babel/babel/pull/15736/15736) fix: Default export for duplicate names (@liuxingbaoyu)

babel-compat-data, babel-preset-env

#1https://github.com/babel/babel/pull/15726/15726) update compat-data sources (@JLHwung)

babel-helpers, babel-plugin-proposal-explicit-resource-management, babel-runtime-corejs3, babel-runtime

#1https://github.com/babel/babel/pull/15705/15705) Fix handling of sync error in @@asyncDispose (@nicolo-ribaudo)

babel-standalone

#1https://github.com/babel/babel/pull/15707/15707) fix: Support transforming Explicit Resource Management in stage-2 (@liuxingbaoyu)

babel-core

#1https://github.com/babel/babel/pull/15626/15626) fix: Works correctly with --frozen-intrinsics (@liuxingbaoyu)

:house: Internal

babel-helper-create-class-features-plugin, babel-plugin-transform-classes

#1https://github.com/babel/babel/pull/15700/15700) Minor class transform cleanups (@JLHwung)

:microscope: Output optimization

babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-transform-class-properties, babel-plugin-transform-optional-chaining, babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/15740/15740) Compress output for optional chain with multiple ?. (@nicolo-ribaudo)

babel-plugin-proposal-destructuring-private, babel-plugin-proposal-do-expressions, babel-plugin-proposal-pipeline-operator, babel-plugin-transform-class-properties, babel-plugin-transform-nullish-coalescing-operator, babel-plugin-transform-optional-chaining, babel-plugin-transform-private-property-in-object, babel-traverse

#1https://github.com/babel/babel/pull/15741/15741) Inject tmp vars in the params list of IIFEs when possible (@nicolo-ribaudo)

v7.22.5
Compare Source
:bug: Bug Fix

babel-preset-env, babel-standalone

#1https://github.com/babel/babel/pull/15675/15675) Fix using syntax-unicode-sets-regex in standalone (@nicolo-ribaudo)

:nail_care: Polish

babel-core

#1https://github.com/babel/babel/pull/15683/15683) Suggest -transform- when resolving missing plugins (@nicolo-ribaudo)

v7.21.8
Compare Source
:eyeglasses: Spec Compliance

babel-parser

#1https://github.com/babel/babel/pull/15602/15602) Remove using await restriction in explicitResourceManagement (@JLHwung)

:bug: Bug Fix

babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin

#1https://github.com/babel/babel/pull/15605/15605) Fix backward compat for semver checks in class&regexp feat plugins (@nicolo-ribaudo)

v7.21.3
Compare Source
:eyeglasses: Spec Compliance

babel-parser

#1https://github.com/babel/babel/pull/15479/15479) disallow mixins/implements in flow interface (@JLHwung)

:bug: Bug Fix

babel-parser

#1https://github.com/babel/babel/pull/15423/15423) [ts] Allow keywords in tuple labels (@Harpica)

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/15489/15489) Register var decls generated by import ... = TS transform (@amoeller)
#1https://github.com/babel/babel/pull/15494/15494) fix: Consider export { type foo } as type-only usage (@magic-akari)

:nail_care: Polish

babel-traverse, babel-types

#1https://github.com/babel/babel/pull/15484/15484) Skip node deprecation warnings when used by an old @babel package (@nicolo-ribaudo)

babel-generator

#1https://github.com/babel/babel/pull/15480/15480) chore: Improve jsonCompatibleStrings deprecation (@liuxingbaoyu)

:house: Internal

#1https://github.com/babel/babel/pull/15465/15465) Add ESLint-readable package name (@nzakas)

:microscope: Output optimization

babel-plugin-transform-typescript, babel-preset-typescript

#1https://github.com/babel/babel/pull/15467/15467) Optimize TS enums output (@liuxingbaoyu)

v7.19.1
Compare Source
:bug: Bug Fix

babel-core

#1https://github.com/babel/babel/pull/14930/14930) Avoid fancy stack traces size computation (@nicolo-ribaudo)

babel-traverse

#1https://github.com/babel/babel/pull/14932/14932) fix: isForAwaitStatement is broken (@JLHwung)

Other

#1https://github.com/babel/babel/pull/14872/14872) Use the built-in class fields and private methods rules in ESLint 8 (@JLHwung)

babel-parser

#1https://github.com/babel/babel/pull/14920/14920) [estree] attach comments after directives at the end of file (@hegemonic)
#1https://github.com/babel/babel/pull/14900/14900) [ts] allow redeclaring a var/type with the same name as import (@liuxingbaoyu)

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/14913/14913) fix: do not remove type import used in TS import= (@JLHwung)

v7.18.9
Compare Source
:bug: Bug Fix

babel-plugin-transform-modules-systemjs, babel-types

#1https://github.com/babel/babel/pull/14763/14763) fix: allow exporting TSDeclareFunction as default (@zxbodya)

babel-generator

#1https://github.com/babel/babel/pull/14758/14758) fix: returnType with comments generates incorrect code (@liuxingbaoyu)

:nail_care: Polish

babel-cli

#1https://github.com/babel/babel/pull/14748/14748) Print a message when the watcher of babel-cli is ready. (@liuxingbaoyu)

:house: Internal

babel-core, babel-helper-remap-async-to-generator, babel-helpers, babel-parser, babel-plugin-transform-block-scoping, babel-preset-env

#1https://github.com/babel/babel/pull/13414/13414) Prepare for compiling Babel to native ESM (@nicolo-ribaudo)

babel-helper-create-class-features-plugin, babel-helper-member-expression-to-functions, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-wrap-function, babel-helpers, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-decorators, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-optional-chaining, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/14739/14739) Provide better parentPath typings (@JLHwung)

:running_woman: Performance

babel-generator

#1https://github.com/babel/babel/pull/14701/14701) perf: Improve generator perf (@liuxingbaoyu)

v7.18.2
Compare Source
:bug: Bug Fix

babel-plugin-transform-template-literals

#1https://github.com/babel/babel/pull/14582/14582) fix: skip template literal transform for TSLiteralType (@JLHwung)

babel-helpers

#1https://github.com/babel/babel/pull/14537/14537) Support frozen built-ins in @babel/runtime (@Jack-Works)

babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

#1https://github.com/babel/babel/pull/14581/14581) Define the global regeneratorRuntime in @babel/runtime/regenerator (@nicolo-ribaudo)

babel-helper-environment-visitor, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/14371/14371) environmentVisitor should skip decorator expressions (@JLHwung)

:memo: Documentation

babel-types

#1https://github.com/babel/babel/pull/14571/14571) add Accessor alias description (@JLHwung)

:house: Internal

#1https://github.com/babel/babel/pull/14541/14541) Fix synchronization between main thread and worker (@liuxingbaoyu)

v7.17.0
Compare Source
:rocket: New Feature

babel-cli, babel-core

#1https://github.com/babel/babel/pull/14065/14065) Allow plugins/presets to indicate external dependencies (@nicolo-ribaudo)

babel-core, babel-parser, babel-traverse

#1https://github.com/babel/babel/pull/14174/14174) Expose .index on Position to internally track nodes location (@tolmasky)

babel-generator, babel-parser, babel-plugin-proposal-pipeline-operator, babel-plugin-syntax-pipeline-operator

#1https://github.com/babel/babel/pull/13973/13973) proposal-pipe: Add support for ^^ and @@ topics (@js-choi)

babel-traverse

#1https://github.com/babel/babel/pull/13940/13940) Add new method to check if node is null or not (@danez)

babel-generator, babel-parser, babel-plugin-syntax-destructuring-private, babel-standalone

#1https://github.com/babel/babel/pull/13931/13931) Parse destructuring private fields (@JLHwung)

babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-proposal-decorators, babel-plugin-syntax-decorators, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-standalone, babel-types

#1https://github.com/babel/babel/pull/14004/14004) Add new decorators transform (@pzuraq)

babel-generator, babel-parser, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/13681/13681) Add the decoratorsAutoAccessors parser plugin (@pzuraq)

babel-core, babel-helper-create-regexp-features-plugin, babel-plugin-proposal-unicode-sets-regex, babel-plugin-syntax-unicode-sets-regex, babel-plugin-transform-dotall-regex

#1https://github.com/babel/babel/pull/14125/14125) Add transform support for the "regexp unicode sets" proposal (@nicolo-ribaudo)

babel-parser

#1https://github.com/babel/babel/pull/14086/14086) Add parser support for the "regexp unicode sets" proposal (@nicolo-ribaudo)

babel-register

#1https://github.com/babel/babel/pull/14087/14087) Expose @babel/register/experimental-worker (@nicolo-ribaudo)

:bug: Bug Fix

babel-parser

#1https://github.com/babel/babel/pull/14145/14145) Reinterpret << when parsing TS type arguments (@JLHwung)

babel-plugin-transform-runtime

#1https://github.com/babel/babel/pull/14187/14187) Normalize absolute paths on Windows (@atti187)

:memo: Documentation

#1https://github.com/babel/babel/pull/14223/14223) Remove Babel 6 from SECURITY.md (@nicolo-ribaudo)

:house: Internal

babel-helper-fixtures, babel-parser

#1https://github.com/babel/babel/pull/14201/14201) Fuzz test location-related parser options (@tolmasky)

babel-compat-data

#1https://github.com/babel/babel/pull/14208/14208) Update compat data (specifically for rhino 1.7.14) (@phulin)

Other

#1https://github.com/babel/babel/pull/14190/14190) chore: run tscheck on babel 8 breaking test (@JLHwung)

:running_woman: Performance

babel-cli, babel-core

#1https://github.com/babel/babel/pull/14209/14209) Switch to @ampproject/remapping to merge source maps (@jridgewell)

v7.16.5
Compare Source
:eyeglasses: Spec Compliance

babel-cli, babel-core, babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-jscript, babel-plugin-transform-parameters, babel-plugin-transform-runtime, babel-plugin-transform-spread, babel-plugin-transform-typescript, babel-preset-env

#1https://github.com/babel/babel/pull/12115/12115) Mark class prototype as read-only (@wentout)

:bug: Bug Fix

babel-plugin-transform-parameters

#1https://github.com/babel/babel/pull/14032/14032) Fix: default rest argument array elements as undefined (@The-x-Theorist)

babel-plugin-transform-arrow-functions, babel-traverse

#1https://github.com/babel/babel/pull/14036/14036) Don't resolve shadowed arguments variables from functions (@The-x-Theorist)

babel-parser

#1https://github.com/babel/babel/pull/14039/14039) maintain estree string literal shape when cloned (@JLHwung)

babel-traverse

#1https://github.com/babel/babel/pull/14016/14016) Fix duplicate declaration error on ambient class declarations (@The-x-Theorist)

babel-generator

#1https://github.com/babel/babel/pull/14014/14014) Support flow function type annotation with no parent (@krosenberg)

babel-plugin-transform-react-jsx

#1https://github.com/babel/babel/pull/14012/14012) Fix JSX pragma anywhere in comment (@The-x-Theorist)

babel-helper-create-class-features-plugin, babel-helper-environment-visitor, babel-helper-member-expression-to-functions, babel-helper-module-transforms, babel-helper-replace-supers, babel-plugin-transform-classes, babel-traverse

#1https://github.com/babel/babel/pull/14005/14005) Fix handling of this&co in computed keys in arrows transform (@nicolo-ribaudo)

:nail_care: Polish

babel-parser

#1https://github.com/babel/babel/pull/13968/13968) Recover from shorthand assign exprs (@JLHwung)
#1https://github.com/babel/babel/pull/13975/13975) fix: update UnexpectedPrivateField error message (@JLHwung)

:memo: Documentation

babel-compat-data, babel-helper-annotate-as-pure, babel-helper-builder-binary-assignment-operator-visitor, babel-helper-builder-react-jsx, babel-helper-compilation-targets, babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin, babel-helper-define-map, babel-helper-explode-assignable-expression, babel-helper-fixtures, babel-helper-function-name, babel-helper-get-function-arity, babel-helper-hoist-variables, babel-helper-member-expression-to-functions, babel-helper-module-imports, babel-helper-module-transforms, babel-helper-optimise-call-expression, babel-helper-plugin-test-runner, babel-helper-plugin-utils, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-simple-access, babel-helper-skip-transparent-expression-wrappers, babel-helper-split-export-declaration, babel-helper-transform-fixture-test-runner, babel-helper-validator-identifier, babel-helper-validator-option, babel-helper-wrap-function, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-async-do-expressions, babel-plugin-proposal-record-and-tuple, babel-plugin-syntax-async-do-expressions, babel-plugin-syntax-module-blocks, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-pure-annotations, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

#1https://github.com/babel/babel/pull/14006/14006) Regenerate monorepo READMEs (@nicolo-ribaudo)

:house: Internal

babel-cli, babel-code-frame, babel-core, babel-generator, babel-helper-annotate-as-pure, babel-helper-compilation-targets, babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin, babel-helper-fixtures, babel-helper-module-imports, babel-helper-optimise-call-expression, babel-helper-plugin-test-runner, babel-helper-transform-fixture-test-runner, babel-helper-validator-identifier, babel-helper-validator-option, babel-helpers, babel-highlight, babel-node, babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-external-helpers, babel-plugin-proposal-async-do-expressions, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-class-properties, babel-plugin-proposal-class-static-block, babel-plugin-proposal-decorators, babel-plugin-proposal-do-expressions, babel-plugin-proposal-dynamic-import, babel-plugin-proposal-export-default-from, babel-plugin-proposal-export-namespace-from, babel-plugin-proposal-function-bind, babel-plugin-proposal-function-sent, babel-plugin-proposal-json-strings, babel-plugin-proposal-logical-assignment-operators, babel-plugin-proposal-nullish-coalescing-operator, babel-plugin-proposal-numeric-separator, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-optional-catch-binding, babel-plugin-proposal-optional-chaining, babel-plugin-proposal-partial-application, babel-plugin-proposal-pipeline-operator, babel-plugin-proposal-private-methods, babel-plugin-proposal-private-property-in-object, babel-plugin-proposal-record-and-tuple, babel-plugin-proposal-throw-expressions, babel-plugin-proposal-unicode-property-regex, babel-plugin-syntax-decorators, babel-plugin-syntax-typescript, babel-plugin-transform-arrow-functions, babel-plugin-transform-async-to-generator, babel-plugin-transform-block-scoped-functions, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-computed-properties, babel-plugin-transform-destructuring, babel-plugin-transform-dotall-regex, babel-plugin-transform-duplicate-keys, babel-plugin-transform-exponentiation-operator, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-plugin-transform-for-of, babel-plugin-transform-function-name, babel-plugin-transform-instanceof, babel-plugin-transform-jscript, babel-plugin-transform-member-expression-literals, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-systemjs, babel-plugin-transform-modules-umd, babel-plugin-transform-named-capturing-groups-regex, babel-plugin-transform-new-target, babel-plugin-transform-object-super, babel-plugin-transform-parameters, babel-plugin-transform-property-literals, babel-plugin-transform-property-mutators, babel-plugin-transform-proto-to-assign, babel-plugin-transform-react-constant-elements, babel-plugin-transform-react-display-name, babel-plugin-transform-react-inline-elements, babel-plugin-transform-react-jsx-compat, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx-self, babel-plugin-transform-react-jsx-source, babel-plugin-transform-react-jsx, babel-plugin-transform-react-pure-annotations, babel-plugin-transform-regenerator, babel-plugin-transform-reserved-words, babel-plugin-transform-runtime, babel-plugin-transform-shorthand-properties, babel-plugin-transform-spread, babel-plugin-transform-sticky-regex, babel-plugin-transform-strict-mode, babel-plugin-transform-template-literals, babel-plugin-transform-typeof-symbol, babel-plugin-transform-typescript, babel-plugin-transform-unicode-escapes, babel-plugin-transform-unicode-regex, babel-preset-env, babel-preset-flow, babel-preset-react, babel-preset-typescript, babel-register, babel-standalone, babel-template, babel-traverse, babel-types

#1https://github.com/babel/babel/pull/13966/13966) Run tests in a native Node.js ESM environment (@nicolo-ribaudo)

babel-parser

#1https://github.com/babel/babel/pull/13982/13982) Extend hasPlugin to accept plugin-configuration array pairs (@js-choi)

babel-helpers

#1https://github.com/babel/babel/pull/13996/13996) Don't use ESM for required files in @babel/helpers tests (@nicolo-ribaudo)

babel-plugin-proposal-object-rest-spread, babel-traverse

#1https://github.com/babel/babel/pull/13948/13948) Convert proposal-object-rest-spread to TS (@JLHwung)

babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-optional-chaining, babel-preset-react, babel-preset-typescript

#1https://github.com/babel/babel/pull/13978/13978) Only bundle the release build, and don't import src in tests (@nicolo-ribaudo)

Other

#1https://github.com/babel/babel/pull/13976/13976) Fail CI when @babel/runtime ESM tests fail (@nicolo-ribaudo)

:running_woman: Performance

babel-parser

#1https://github.com/babel/babel/pull/13919/13919) Improve template tokenizing (@JLHwung)

:microscope: Output optimization

babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-runtime, babel-preset-env, babel-runtime-corejs2, babel-runtime

#1https://github.com/babel/babel/pull/13837/13837) minify helpers-generated.ts (@lightmare)

v7.16.3
Compare Source
:bug: Bug Fix

babel-helpers

#1https://github.com/babel/babel/pull/13862/13862) fix(helpers): match Reflect.get behaviour (@lightmare)

babel-plugin-transform-parameters, babel-traverse

#1https://github.com/babel/babel/pull/13941/13941) Support transforming params of arrow functions in class fields (@nicolo-ribaudo)

babel-parser

#1https://github.com/babel/babel/pull/13928/13928) fix: incorrect await rejection following arrow function in parameters (Closes #&#https://github.com/babel/babel/issues/13872issues/13872)) (@The-x-Theorist)

Other

#1https://github.com/babel/babel/pull/13918/13918) Fix parserOverride support in @babel/eslint-parser (@nicolo-ribaudo)

:house: Internal

babel-parser

#1https://github.com/babel/babel/pull/13891/13891) Simplify tracking of valid JSX positions (@JLHwung)
#1https://github.com/babel/babel/pull/13892/13892) extract tt.lt and tt.gt from tt.relation (@JLHwung)

babel-helper-compilation-targets, babel-preset-env

#1https://github.com/babel/babel/pull/13914/13914) Update browserslist (@nicolo-ribaudo)

v7.16.0
Compare Source
:eyeglasses: Spec Compliance

babel-helpers, babel-plugin-proposal-async-generator-functions, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

#1https://github.com/babel/babel/pull/13824/13824) Await promises from sync iterators with for-await (@nicolo-ribaudo)

:rocket: New Feature

babel-generator, babel-parser, babel-plugin-transform-typescript, babel-types

#1https://github.com/babel/babel/pull/13802/13802) Support TypeScript 4.5 type-only import/export specifiers (@sosukesuzuki)

babel-parser

#1https://github.com/babel/babel/pull/13887/13887) feat: support startColumn option (@JLHwung)

babel-helper-fixtures, babel-helper-transform-fixture-test-runner, babel-parser, babel-plugin-syntax-typescript, babel-preset-typescript

#1https://github.com/babel/babel/pull/13838/13838) Handle .mts and .cts files in @babel/preset-typescript (@nicolo-ribaudo)

Other

#1https://github.com/babel/babel/pull/13782/13782) Add ESLint 8 support to @babel/eslint-parser (@nicolo-ribaudo)

babel-generator, babel-parser, babel-plugin-proposal-pipeline-operator, babel-plugin-syntax-pipeline-operator

#1https://github.com/babel/babel/pull/13749/13749) Caret topic (pipe operator) (@js-choi)

babel-compat-data, babel-generator, babel-parser, babel-preset-env, babel-types

#1https://github.com/babel/babel/pull/13713/13713) Enable class static blocks by default (@sosukesuzuki)

babel-helper-skip-transparent-expression-wrappers, babel-plugin-proposal-optional-chaining

#1https://github.com/babel/babel/pull/13687/13687) add skipTransparentExprWrapperNodes helper (@lightmare)

babel-traverse, babel-types

#1https://github.com/babel/babel/pull/13666/13666) Add aliases for Standardized, TypeScript, and Flow (@jridgewell)

:bug: Bug Fix

babel-parser, babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/13876/13876) [ts] Support private methods overloads (@nicolo-ribaudo)

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/13865/13865) fix: allow enum member without initializer after non-literal member (@lightmare)

babel-core, babel-helper-create-class-features-plugin, babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/13854/13854) Don't transform declare class in plugin-proposal-class-properties (@forivall)

babel-compat-data, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-transform-react-constant-elements, babel-preset-env, babel-traverse

#1https://github.com/babel/babel/pull/13842/13842) Implement @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression (@JLHwung)

babel-plugin-proposal-async-generator-functions, babel-traverse

#1https://github.com/babel/babel/pull/13813/13813) Restore traversal context after enter / traverse (@JLHwung)

babel-traverse, babel-types

#1https://github.com/babel/babel/pull/13832/13832) Mark static block as FunctionParent (@JLHwung)

babel-generator

#1https://github.com/babel/babel/pull/13825/13825) Fix missing inner comments in function expressions (@overlookmotel)

:house: Internal

Every package

#1https://github.com/babel/babel/pull/13772/13772) Use workspace:^ to specify @babel/ dependencies (@nicolo-ribaudo)

Other

#1https://github.com/babel/babel/pull/13856/13856) Update to Yarn 3.1 (@nicolo-ribaudo)
#1https://github.com/babel/babel/pull/13867/13867) Test on Node.js 17 (@nicolo-ribaudo)

babel-helper-fixtures, babel-plugin-proposal-class-properties, babel-plugin-transform-runtime, babel-preset-react

#1https://github.com/babel/babel/pull/13858/13858) Force loading plugins/presets from the monorepo in tests (@nicolo-ribaudo)

babel-types

#1https://github.com/babel/babel/pull/13844/13844) [ts] precise return type on createTypeAnnotationBasedOnTypeof (babel-types) (@lightmare)

babel-helpers

#1https://github.com/babel/babel/pull/13841/13841) minor: remove ineffectual helper names filter (@lightmare)

babel-core, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx, babel-types

#1https://github.com/babel/babel/pull/13820/13820) Improve transform-react-jsx typings (@JLHwung)

:running_woman: Performance

babel-types

#1https://github.com/babel/babel/pull/13843/13843) Simplify (transpiled) babel-types builder wrappers (@lightmare)

v7.15.8
Compare Source
:eyeglasses: Spec Compliance

babel-helper-module-transforms, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd

#1https://github.com/babel/babel/pull/13788/13788) Sort module export names (@JLHwung)

babel-parser

#1https://github.com/babel/babel/pull/13769/13769) Tokenize keywords-like identifier as new tokens (@JLHwung)

:bug: Bug Fix

babel-generator

#1https://github.com/babel/babel/pull/13821/13821) Fix missing inner comments in class expressions (@overlookmotel)

babel-generator, babel-parser, babel-plugin-proposal-pipeline-operator

#1https://github.com/babel/babel/pull/13803/13803) Collect comments around parentheses in expressions (@nicolo-ribaudo)

babel-plugin-transform-typescript

#1https://github.com/babel/babel/pull/13800/13800) fix: remove imported types from export (@JLHwung)

:nail_care: Polish

babel-core

#1https://github.com/babel/babel/pull/13814/13814) Improve debug logging for IgnoreList (@paleite)

babel-node

#1https://github.com/babel/babel/pull/13784/13784) [@babel/node] Forward the signal SIGTERM as well (@julienw)

:house: Internal

#1https://github.com/babel/babel/pull/13808/13808) Update parser plugins for TypeScript tests (@sosukesuzuki)
#1https://github.com/babel/babel/pull/13795/13795) Fix Gulpfile path separator issue on Windows (@NotWearingPants)

:running_woman: Performance

babel-code-frame

#1https://github.com/babel/babel/pull/13812/13812) Optimization of string splitting (@shoonia)

v7.15.7
Compare Source
:bug: Bug Fix

babel-parser

#1https://github.com/babel/babel/pull/13771/13771) fix(babel-parser): Allow line break before assert return type (@JuniorTour)
#1https://github.com/babel/babel/pull/13755/13755) [estree] Fix conversion of PrivateName in MemberExpression (@nicolo-ribaudo)

babel-standalone

#1https://github.com/babel/babel/pull/13754/13754) Move pipeline operator to Stage 2 (@sdegutis)

Other

#1https://github.com/babel/babel/pull/13767/13767) Fix regexpu-core bundling in @babel/standalone (@nicolo-ribaudo)
#1[https://github.com/babel/babel/pull/13751](https://togithub.com/babel/babe

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 8am and before 4pm on tuesday" in timezone Etc/UTC.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Closing this as it's not compatible with the local swift-docc-render package. It causes a cascade of other inter-dependency updates. Ideally we need to get rid of that package and use the latest features of docc.

 You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


SIDE-931 - Add search UI services

https://crosschx.atlassian.net/browse/SIDE-931

I'm trying to add examples for the global and sidebar searches now...

I added some example loops for the global search and searchbar.
The global search one works for me, but I can't get the searchbar example loop to trigger. 🤔

Thanks for reviewing, @BillyMurrayOlive! I'll take a look at your feedback.

I added some example loops for the global search and searchbar in Go.
The global search one works for me, but I can't get the searchbar example loop to trigger. 🤔

For me now, the global and searchbar searches sporadically work (maybe 1/3 searches) when I use the samples here. I'm not sure why. 🤔

I added some example loops for the global search and searchbar in Go.
The global search one works for me, but I can't get the searchbar example loop to trigger. 🤔

For me now, the global and searchbar searches sporadically work (maybe 1/3 searches) when I use the samples here. I'm not sure why. 🤔

I added some example loops for the global search and searchbar in Go.
The global search one works for me, but I can't get the searchbar example loop to trigger. 🤔

For me now, the global and searchbar searches sporadically work (maybe 1/3 searches) when I use the samples here. I'm not sure why. 🤔

@dmorrison-olive Can you upload what you have so far for the loop example tests.

I added some example loops for the global search and searchbar in Go.
The global search one works for me, but I can't get the searchbar example loop to trigger. 🤔

For me now, the global and searchbar searches sporadically work (maybe 1/3 searches) when I use the samples here. I'm not sure why. 🤔

@dmorrison-olive Can you upload what you have so far for the loop example tests?

@BillyMurrayOlive, I have everything pushed.


Problems shared paths...

In debian jessie this version 1.9.0 don't working, 'file: ... force=true' don't working. Prev variant works is fine
debian jessie
ansible 2.1.0
deploy 1.9.0
failed: [<IP_ADDRESS>] (item=app/cache) => {"failed": true, "gid": 1001, "group": "eps_system", "item": "app/cache", "mode": "0755", "msg": "the directory /var/www/eps_system/releases/20160719142302Z/app/cache is not empty, refusing to convert it", "owner": "eps_system", "path": "/var/www/eps_system/releases/20160719142302Z/app/cache", "size": 4096, "state": "directory", "uid": 1001}

https://github.com/ansistrano/deploy/commit/e2b76e288d370bba2f834dd44bd407aba33b94bf

what was your last ansible version? We changed this around 1.7
Anyway, it looks like app/cache has content in your server and it should not as you are trying to symlink, right? Can you please check if there is something there?

Yes, .gitignore file

You should not have anything there, .gitignore should be at the repo level, not inside the cache folder
Maybe it worked before but if you symlink something external, that folder should be completely empty

I use for this code version 1.7.2 and have not this problems, because was "Ensure shared paths targets are absent". Now it is not

yeah, we changed that for a "force" but the reality is that you should not have anything there and this is why you are facing this issue
Let me think about it, I am afraid you will have to roll back to 1.7.2 meanwhile or add a temporary custom hook cleaning that folder before shared-folders gets executed

Ping @mblaschke
I think we have a conflict here, speed or not breaking people like @free6k
I think there should be nothing in the shared folders but often people add .gitkeep files so they would face this exact problem. Thoughts?

a lot of popular frameworks do it like that. for example: yii and etc

yeah you are right, I pinged @mblaschke as he contributed this because he was having speed issues but I think we will have to roll back (or maybe implement what was there with rm -rf instead of using ansible file which seems to be the bottleneck)
Meanwhile, either please revert to 1.7.2 or add a custom task in ansistrano_before_symlink_shared_tasks_file with the exact code that was before
# Ensure symlinks target paths is absent
- name: ANSISTRANO | Ensure shared paths targets are absent
  file:
    state: absent
    path: "{{ ansistrano_release_path.stdout }}/{{ item }}"
  with_items: "{{ ansistrano_shared_paths }}"

Thanks again for reporting and we will hopefully come up with a solution soon

Hey @free6k could you please test our branch https://github.com/ansistrano/deploy/tree/ensure_shared_absent before we merge it?

Hello @ricardclau, I will verify tomorrow at work

@ricardclau
In file_module doc, force = true effective in "the destination exists and is a file"
So, maybe ansistrano_shared_files can't absent before create symlink.

@ricardclau works is fine

Fixed in #148


Fix message handling

In relation to #127

Codecov Report

Merging #156 (28c53ce) into master (f167553) will decrease coverage by 2.20%.
The diff coverage is 35.93%.

@@             Coverage Diff              @@
##             master     #156      +/-   ##
============================================
- Coverage     59.14%   56.94%   -2.21%
- Complexity      454      487      +33
============================================
  Files           104      110       +6
  Lines          1711     1879     +168
  Branches        177      192      +15
============================================
+ Hits           1012     1070      +58
- Misses          631      738     +107
- Partials         68       71       +3

Impacted Files
Coverage Δ

src/main/java/bookface/commons/core/Messages.java
0.00% <ø> (ø)

...main/java/bookface/logic/commands/LoanCommand.java
0.00% <0.00%> (ø)

...in/java/bookface/logic/commands/ReturnCommand.java
0.00% <0.00%> (ø)

...va/bookface/logic/commands/add/AddBookCommand.java
0.00% <0.00%> (ø)

...kface/logic/commands/delete/DeleteBookCommand.java
0.00% <0.00%> (ø)

.../bookface/logic/commands/edit/EditBookCommand.java
0.00% <0.00%> (ø)

.../bookface/logic/commands/find/FindBookCommand.java
0.00% <0.00%> (ø)

...main/java/bookface/logic/parser/CommandParser.java
100.00% <ø> (ø)

.../java/bookface/logic/parser/LoanCommandParser.java
0.00% <0.00%> (ø)

...ava/bookface/logic/parser/ReturnCommandParser.java
0.00% <0.00%> (ø)

... and 44 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


It's missing rule when prop is marked as required and try to render without it

Hello,
I have the next component to show us my case
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class App extends Component {
  static propTypes = {
    message: PropTypes.string.isRequired
  }

  render () {
    return (
      <div className="App">
        {this.props.message} World
      </div>
    )
  }
}

export default App

// Render component without passing message prop
ReactDOM.render(<App />, document.getElementById('root'))

I get in my chrome developer console:

Warning: Failed prop type: The prop message is marked as required in App, but its value is undefined.

Thank you.

It’s a required prop. You didn’t provide it.
The linter lints against components; the render call shouldn’t even be in the same file as the component anyways.

Hi @ljharb  thank you for your response
This code is for demo propose, I have my code in two files as you say.
clearly I know, the prop is not in the render code.
I think that should be exists a rule that avoid this problem.
"It’s a required prop. You didn’t provide it."

That's not something that's possible for a linter to know - linters do static analysis; you're asking for runtime analysis - which is what React is already doing for you.


expose logic that resolves urls into asset ids in barback

 Issue by sigmundch
Originally opened as dart-lang/sdk#12610

Seems like the logic to resolve asset id from urls is in pub serve. We have similar logic in polymer to implement our transformers. We should consider putting this in barback instead.
Sample code:
/** Create an [AssetId] for a [url] seen in the [source] asset. */
AssetId resolve(AssetId source, String url, TransformLogger logger, Span span) {
  if (url == null || url == '') return null;
  var uri = Uri.parse(url);
  if (uri.host != '' || uri.scheme != '' || path.isAbsolute(url)) {
    logger.error('absolute paths not allowed: "$url"', span);
    return null;
  }
  var package;
  var targetPath;
  var segments = path.split(url);
  if (segments[0] == 'packages') {
    if (segments.length < 3) {
      logger.error("incomplete packages/ path. It should have at least 3 "
          "segments packages/name/path-from-name's-lib-dir", span);
      return null;
    }
    package = segments[1];
    targetPath = path.join('lib', path.joinAll(segments.sublist(2)));
  } else if (segments[0] == 'assets') {
    if (segments.length < 3) {
      logger.error("incomplete assets/ path. It should have at least 3 "
          "segments assets/name/path-from-name's-asset-dir", span);
    }
    package = segments[1];
    targetPath = path.join('asset', path.joinAll(segments.sublist(2)));
  } else {
    package = source.package;
    targetPath = path.normalize(path.join(path.dirname(source.path), url));
  }
  return new AssetId(package, targetPath);
}

 Comment by sigmundch

We should also have the inverse operation (id -> uri). For example:
/**
 * Generate a url for a file described by [id], so it can be referenced by a file
 * with [sourceId] (for example in an import directive).
 */
String assetUrlFor(AssetId id, AssetId sourceId, TransformLogger logger) {
  // use package: and asset: urls if possible
  if (id.path.startsWith('lib/')) {
    return 'package:${id.package}/${id.path.substring(4)}';
  }
  if (id.path.startsWith('asset/')) {
    return 'asset:${id.package}/${id.path.substring(6)}';
  }
  // Use relative urls only if it's possible.
  if (id.package != sourceId.package) {
    logger.error("don't know how to import $id from $sourceId");
    return null;
  }
  var builder = path.url;
  return builder.relative(builder.join('/', id.path),
      from: builder.join('/', builder.dirname(sourceId.path)));
}

 Comment by sigmundch

Note: it's not clear how to expose these APIs yet. For example, we might wat to return something different in assetUrlFor depending on the context where the url is intended to be used. 'package:' urls make sense if you want to import a file from dart, but maybe we need a different URL for assets used in html pages?

 Comment by anders-sandholm

Removed Library-Barback label.
Added Pkg-Barback label.

 Comment by sigmundch

Pete and I were talking about a package called 'code_transformers' which contain hooks to use the analyzer's resolver within transformers. I was thinking we can generalize that package to contain many common functionality, like this one.

 Comment by munificent

So far, we've tried to avoid baking any pub policy into barback itself. Barback, in theory at least, could be used as a library by system independently of pub. All it knows is that assets reside in "packages", which have names.
The policies for things like "lib" -> "packages" and "asset" -> "assets" are pub-specific. I agree it should be exposed somewhere, but I'm not sure if barback itself is the best place for it.

 Comment by sigmundch

We were talking about this in person, but just to make a note here.
Before implementing this, make sure to check the latest code under polymer/lib/src/build/common.dart. Currently we had to add a lot of extra logic to handle corner cases like:

how is an URL resolved in the context of an asset. For instance, polymer supports "package:" urls within Dart files, but not in HTML files.
how to treat relative urls within assets, for example:

  <link rel=import href="packages/foo/bar.html">
is valid in "baz|web/index.html", but invalid if it occurs on asset: "baz|lib/x.html".
Conversely,
  <link rel=import href="../../packages/foo/bar.html">
is valid in "baz|lib/x.html", but not in "baz|web/index.html".


Add sensors and service to switch 1-phase and 3-phase charging

Hi,
I'm trying to add some sensor to this custom components to be able to track the status of the charging station.
I would like to see the following sensor that I used to read from the charging station;

mainActiveLoadBalancingMaxCurrent
meter1_frequency
sysActiveLoadBalancingSafeCurrent

I can see the API ID's in the following code:
https://gitlab.com/LordGaav/alfen-eve/-/blob/develop/alfeneve/alfen.py
However the formatting is different than the ID's used in this custom component.
Any clues on how to determine what the right ID should be so I can try to add these sensor to the code of this component?
Is there any API documentation availble? Would be nice to be able to switch between 1-phase and 3-phase charging through this integration as well.

That would be absolutely great.

As long as 2185_0 (enable phase switching is enabled), this could work by setting 2189_0 (max allowed phases) to either 1 (single phase charging) or 3 (triple phase charging). Not sure if you need the 6.3.x firmware version for this, might work with older versions as well.

As long as 2185_0 (enable phase switching is enabled), this could work by setting 2189_0 (max allowed phases) to either 1 (single phase charging) or 3 (triple phase charging). Not sure if you need the 6.3.x firmware version for this, might work with older versions as well.

As long as 2185_0 (enable phase switching is enabled), this could work by setting 2189_0 (max allowed phases) to either 1 (single phase charging) or 3 (triple phase charging). Not sure if you need the 6.3.x firmware version for this, might work with older versions as well.

enable and disable phase switching is possible on the MR
also the following value is included

mainActiveLoadBalancingMaxCurrent
sysActiveLoadBalancingSafeCurrent

Have done some manual testing concerning the phase switching on a box with firmware 5.8.1-4123. Allthough 2185_0 (enable phase switching) is 0 (disabled), I was able to set 2189_0 (max allowed phases) to either 1 or 3. But this needs to be set before the charging process starts. Changing this value afterwards has no effect on a running charging process.

Have done some manual testing concerning the phase switching on a box with firmware 5.8.1-4123. Allthough 2185_0 (enable phase switching) is 0 (disabled), I was able to set 2189_0 (max allowed phases) to either 1 or 3. But this needs to be set before the charging process starts. Changing this value afterwards has no effect on a running charging process.

You're not using the latest firmware, but regardless of that I'm not sure if latest firmware already supports to change this during charging session. Version 6.5.0 will support this, though. Currently it's only via OCPP ChargingProfiles that phases can be switched during the session, I think.

@lohralfen: A bit off topic, but do you know of any possiblity to start a charging session over this API? Background: I have 2 different RFID cards, with which I start normally the charging session, after the cable was plugged. Both are billed differently. So is there a way to use to API to do that?

Check this fork https://github.com/leeyuentuen/alfen_wallbox


Libraries associated with languages

Ok - now we have a final workflow to figure out. We have lots of lessons that use lots of libraries. We need code to query the lessons and create a list like this of libraries. Now i understand this will be difficult because we don't have nested lists that differentiate between R and python.
Here is the YAML list now.
- lang: python
  libs:
    - rpy2
    - h5py
- lang: r
  libs:
    - raster
    - rhdf5
    - base
- lang: javascript
  libs:

I added javascript. But we need

to have each library listed in it's appropriate spot
to have each library have an associated .md file in the : https://github.com/earthlab/dev-earthlab-site/tree/master/org/lang-lib directory

So... what is our workflow? I'll get the code working (it's not currently) and will create a few seed pages. Maybe we just auto generate a library list using my rmd code? And there are only a few lessons that have two languages so actually it won't be too hard to look at language and then library and generate a list like the one above but that maybe also has a fourth category (R & python) ? thoughts @mbjoseph
Sorry i'm bombarding you with issues! just trying to knock this out so we can push the site live.

We can generalize this code which is now authors based, to make a list of any YAML element by turning this function
generate_author_df
into
generate_values_df
Then have the helper function take the file AND the yaml field we want to look at (ie authors, libs, etc)

The function is now generalized to accept field as a parameter with commit b66cdcb73af1716e192ebd59c110a17c39e04419

@mbjoseph  -i just realized that the YAML is slightly different for library posts. Please see example below. I didn't think through the differences. can we just add an if statement for "lib:" vs "authors"?
---
layout: post-by-category
category: tutorials
title: "h5py Package - Python Data Intensive Tutorials"
permalink: tutorials/software/python/h5py
comments: false
author_profile: false
language: python
library: h5py
langSide: true
---

The files should be stored in the following dir:
/org/lang-lib/libs/

Ok I think I've solved this with commits 5a2fa82453d994fc66c44d34a78541b32af6512b and https://github.com/earthlab/dev-earthlab-site/commit/93cad6b2c1303f15f412714abc1ca28a047d1dd3
Every step is automated except for writing the lang and lib in the frontmatter of posts. Just a note that all of this depends on each lib being specific to only one language, and each post being tagged with only one language (the post that uses R within Python is currently tagged as Python, and I think that's ok https://raw.githubusercontent.com/earthlab/dev-earthlab-site/master/_posts/python/2016-06-28-using-python-r-same-jupyter-notebook.md)


Initiate datapackage.json

In GitLab by @peterdesmet on Nov 4, 2020, 10:58
This repository contains the templates for the metadata (in camtrap-package-profile.json) and resources (the 3 table schemas), but doesn't provide a ready-to-adapt datapackage.json file. A lot of heavy-lifting is therefore to be done by users, data publisher or developers. I think it would be useful to create this (with a script) for each release or at least have this functionality in https://gitlab.com/oscf/camtrap-package. @kbubnicki?

Revisiting this. Now that we have automated scripts, this would be useful to do on a merge to main. @niconoe would you be up for this?

So the idea is that each time the standard is changed, a datapackage.json file is generated that an end user can simply copy/paste along a bunch of CSV files, and that would give a valid Camtrap DP package up to the current spec?
Sounds like a great idea, I'd be happy to help. About versioning: I guess the generated datapackage.json would have some version information that allows to pinpoint exactly which version of the standard (camtrap-package-profile.json + 3 table schemas) is actually in use in the Camtrap DP package?

Almost:

So the idea is that each time the standard is changed, a datapackage.json file is generated that an end user can simply copy/paste along a bunch of CSV files and adapt. Some terms would need to be populated by the user in order to make it a valid Camtrap DP package up to the current spec.

I'm not sure this autogenerated datapackage.json can be entirely created using the current files in the repository. I think more information (like a template) is needed, which we then also have to maintain. 😕


Would it possible to extent vcpkg nuget so it deploys library pdb to build output ?

Would it be possible to extend the vcpkg nuget in a way that it deploys a native dll along with its pdb to build output ? Currently it seems to deploy the necessary .dlls but the pdbs are not copied. This makes things more complicated if we want to package the complete build output.
I saw looking at https://github.com/microsoft/vcpkg/blob/master/scripts/buildsystems/msbuild/applocal.ps1.
My assumption is that extending the deployBinary function would do the trick ? Is there a reason why its not done already ?
thanks
Ivan

I would also like to get PDBs copied to the output, so that it can be automatically copied by VS into my .appx package

I would also like to get PDBs copied to the output, so that it can be automatically copied by VS into my .appx package

Generally speaking PDBs should not be deployed on end-user machines so they shouldn't be going into an appx.
We may still want to look at doing something like this someday but it's mostly applicable to folks who are shipping static libraries rather than applications.
To truly deliver an end to end experience here we might need to package the sources too.

The way .appx works is weird.
When building for local or remote testing, everything gets into a single .appx, PDB included.
But when packaging and uploading, VS uses an .appxbundle file, and this archive contains both an .appx and .appxsym file.
VS does some ✨ magic ✨ from the normal build output for that purpose, so vcpkg simply copying PDBs along with the DLLs should work.
.appxsym has symbols, and those will be used in telemetry data.
The .appx file is what consumers will end up downloading, and doesn't have symbols.
Without symbols, stack traces obtained from the Microsoft Store telemetry will lack any kind of function info:

I see, I didn't realize there was some postprocessing step done by the store to strip those out.
Can we assume that for a given DLL x.dll the PDB will be named x.pdb?

Yes


Focal loss is different from the paper.

Hi,
https://github.com/DingKe/pytorch_workplace/blob/822b6d2b18bba15cc5f273e901903b7c5bdd94e8/focalloss/loss.py#L33
Here seems should be (1 - exp(log_input)), not (1 - log_input)

Thanks for pointing out. Have corrected.


Re-run a transformer when a non-existent secondary input starts existing

Solving issue #13264 will make it easier for a transformer to try to gracefully handle secondary inputs not existing. However, if a transformer emits different output based on whether or not a given secondary input exists, we should re-run it if that input starts existing in the future.

This issue has been moved to dart-lang/barback#40.


Include defaultHeaders in exception logs

FetchService.managedFetchAsync can throw 3 Hoist-generated exceptions:

Exception.fetchTimeout
Exception.fetchAborted
Exception.serverUnavailable

To each, it passes opts: FetchOptions, which includes a headers property.  However, opts.headers is not the fully resolved collection of headers (i.e. it does not include FetchService.defaultHeaders).  We should include defaultHeaders here so that we log the entire collection of headers sent with the request, and not only those which are specified via opts.
(See https://github.com/xh/hoist-react/blob/f475e80dc70603c3b78d36f19a93807fc8e6c217/svc/FetchService.ts#L171)

I'll take a look -- good train ticket


How to place a multipart request, with Content-Types as multipart/related, the error message needs to be more descriptive ?

Hi Team,
I am writing a couchdb implementation in dart language called as "Recliner"!
I was able to start replication between it and Couchdb all fine, except for replicating the attachments.
I was sending the multipart-related request to couch db, but it just replies me with some stack trace of erl. Can this error message be more usefull so that, I can derive want went wrong during multipart -related request.
Here are the details of my requests:
PUT http://<IP_ADDRESS>:5984/test1/1578965820946-0?new_edits=false
--dart-http-boundary-H8RyGWfwBEjeTMBEpoNHBQokSP5Ua9sNTWSLkqVDHGlR-2BAtVI
Content-Type: application/json

{"name":"prod1","_id":"1578965820946-0","_attachments":{"1.json":{"content_type":"application/json","length":163}},"stub":true,"_rev":"2-bdfa5e310511cf0f0fbbe8bb4c759035"}
--dart-http-boundary-H8RyGWfwBEjeTMBEpoNHBQokSP5Ua9sNTWSLkqVDHGlR-2BAtVI
Content-Type: application/json
Content-Disposition: attachment; filename="1.json"
Content-Length: 163

{
  "_id": "_design/_db",
  "language" : "javascript",
  "views": {
    "_id": {
      "map": "function(doc){emit({_id: doc._id, _rev: doc._rev},{});}"
    }
  }
}
--dart-http-boundary-H8RyGWfwBEjeTMBEpoNHBQokSP5Ua9sNTWSLkqVDHGlR-2BAtVI--

It gives me this error :
{
  "error" : "error",
  "reason" : "{{nocatch,<<\"expected more data\">>},\n [{chttpd_db,receive_request_data,2,[{file,\"src/chttpd_db.erl\"},{line,1107}]},\n  {couch_httpd,read_until,3,[{file,\"src/couch_httpd.erl\"},{line,1070}]},\n  {couch_httpd,parse_part_header,1,[{file,\"src/couch_httpd.erl\"},{line,1098}]},\n  {couch_httpd,parse_multipart_request,3,\n               [{file,\"src/couch_httpd.erl\"},{line,1035}]},\n  {couch_httpd_multipart,'-decode_multipart_stream/3-fun-1-',4,\n                         [{file,\"src/couch_httpd_multipart.erl\"},{line,33}]}]}"
}

If you can just point me what is wrong in this request, it will be fine too!

I've seen this error message when the multipart boundaries, headers and bodies are separated only by LF instead of by CRLF.

uploading multiple attachments to couch is rather difficult. "multipart/related" is arcane.
I'm aborting this after spending several hours on it and will just ping-pong a new HTTP PUT for each file.
2023-06-19 15:53:26 [error] 2023-06-19T20:53:26.670055Z nonode@nohost emulator -------- Error in process <0.4577.3> with exit value:
2023-06-19 15:53:26 {{nocatch,<<"expected more data">>},[{chttpd_db,receive_request_data,2,[{file,"src/chttpd_db.erl"},{line,1415}]},{couch_httpd,read_until,3,[{file,"src/couch_httpd.erl"},{line,1263}]},{couch_httpd,parse_multipart_request,3,[{file,"src/couch_httpd.erl"},{line,1222}]},{couch_httpd_multipart,'-decode_multipart_stream/3-fun-1-',4,[{file,"src/couch_httpd_multipart.erl"},{line,33}]}]}


Kafka SaslOptions

Fixes #5

Does this work for you? @hgzimmerman

As far as SASL goes, it looks good.
My example had an additional bootstrap.servers option set, which I'm unsure if is needed for SASL authentication to work. (The bootstrap server(s) provides metadata used to route a client to a particular node(s) to connect to for a topic, among other things). I'm unsure how commonly used that option is or if it is worth making a special function for it.
I think if that proves to be necessary, its best followed up on separately with a set_bootstrap_server(&str) function.

Thanks. Actually the "bootstrap.servers" key is set for every connection with the values coming from StreamerUri. May be your bootstrap.servers string is not compatible with Url?
https://github.com/SeaQL/sea-streamer/blob/5f552b69aee74f5c4bc89d82161a919b6c1cbb97/sea-streamer-kafka/src/consumer.rs#L646

No, my connection profile was just copied nearly verbatim from  https://github.com/confluentinc/librdkafka/issues/4119#issuecomment-1361958501 and I wasn't aware that the config option was already set elsewhere in sea-streamer-kafka.
This is good news to me, in that I get to remove some redundant code and config values.

Cool! I am going to make a patch release this week end.

Released in https://github.com/SeaQL/sea-streamer/releases/tag/0.2.1


use us-west sanitized bucket to build SMSUsage dataset

Summary | Résumé
Bring in the us-west-2 data as well as the ca-central-1 data when creating the sms usage dataset.
Related Issues | Cartes liées

https://app.zenhub.com/workspaces/notify-planning-core-6411dfb7c95fb80014e0cab0/issues/gh/cds-snc/notification-planning-core/325

Test instructions | Instructions pour tester la modification
Ran in dev
Release Instructions | Instructions pour le déploiement
None.
Reviewer checklist | Liste de vérification du réviseur

[ ] This PR does not break existing functionality.
[ ] This PR does not violate GCNotify's privacy policies.
[ ] This PR does not raise new security concerns. Refer to our GC Notify Risk Register document on our Google drive.
[ ] This PR does not significantly alter performance.
[ ] Additional required documentation resulting of these changes is covered (such as the README, setup instructions, a related ADR or the technical documentation).

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.

I'm not sure why there's lambda api changes? 🤔


how i can cancel the [Contact detection]

how to cancle the contact detection in bodys.

You can use exclude tag in your model xml file like this:

good job！ ths.

You can use exclude tag in your model xml file like this:
<contact>
        <exclude name="exclude_2_body_0" body1="base" body2="left_front_upper_leg"/>

</contact>

I'd like to add a relevant clarifying note.
MuJoCo by default excludes collisions between parent and child bodies, this is the reason there is no collision in the elbow joint in your model above. However, this exclusion is not applied if the parent is a static body, i.e. the world body, or a dof-less descendant of the world. The reason is obvious: if those collisions were excluded, objects would fall through the floor etc. This collision filtering behaviour is documented here.
What this means is that if the root joint of a robot is removed, its top-level body becomes static and starts colliding with its children. This implies that there is possibly a different solution to your problem: add a free joint to your robot root.
There is no reason not to use <exclude>, and the solution by @lonelyfluency is good one, but I thought this might help to clarify a common "gotcha" where people remove their robot's root joint and suddenly new contacts appear that were not there before.

I'd like to add a relevant clarifying note.
MuJoCo by default excludes collisions between parent and child bodies, this is the reason there is no collision in the elbow joint in your model above. However, this exclusion is not applied if the parent is a static body, i.e. the world body, or a dof-less descendant of the world. The reason is obvious: if those collisions were excluded, objects would fall through the floor etc. This collision filtering behaviour is documented here.
What this means is that if the root joint of a robot is removed, its top-level body becomes static and starts colliding with its children. This implies that there is possibly a different solution to your problem: add a free joint to your robot root.
There is no reason not to use <exclude>, and the solution by @lonelyfluency is good one, but I thought this might help to clarify a common "gotcha" where people remove their robot's root joint and suddenly new contacts appear that were not there before.

got it, think you.

That was it, thank you.


[indexer] Add an option to index local symbols too, and a new index::indexDeclContext() entry point

Resolves rdar://problem/31433002.

@swift-ci please smoke test


Patch Clarifications

Shall solve the following, similar issues on AAS PATCH:

https://github.com/admin-shell-io/aas-specs-api/issues/160
https://github.com/admin-shell-io/aas-specs-api/issues/161
https://github.com/admin-shell-io/aas-specs-api/issues/236
https://github.com/admin-shell-io/aas-specs-api/issues/237

Is this available in rendered form?

No, with the current pipeline we have this is not possible. You can view it in a local IDE that has an OpenAPI plugin, though.

PATCH operations still have level parameter - that does not make sense?

I think you have a point here. We had already an issue on Patch and Level. Please help me to find all occurrences and adjust them.

PATCH with /$metadata takes type concrete types as input (e.g. Submodel, SubmodelElement). This means one has to send all mandatory fields, i.e., even the ones unchanged. How is that different from classical PUT behavior?

The difference is what we regard as the resource. As the normal representation is the original serialisation, and metadata or value are only projection of it, we decided to use PATCH here.

From my perspective, PATCH will also work with “/$value” (basically any modification) without compromising any guarantees related to correctness. Of course the validation is enforced in a different way. Given that you have a submodel descriptor referencing a submodel template (a semanticId defining the unique identifier of the model supported by the submodel e.g. urn:samm:io.catenax.battery.battery_pass:6.0.0#BatteryPass) which is for example based on SAMM, the backend has all necessary information to verify the request payload. This can be done using generated artifacts such as JSON Schema, OpenAPI specifications, DTOs with bean annotations related to JSR 380 and the once from Jackson or even generate the database schemas. This approach is also is very efficient for both the submodel (backend) and the API consumer, resulting in smaller request payloads.

@waltersve I get what you are saying but this only works under two assumptions

SubmodelTemplates are used
Submodels that are instances of SubmodelTemplates are not allowed to have additional elements not defined in the SMT

The first assumption definitely does not hold in general as it is optional to use SMTs. In fact, SMTs are only a special case and the API must be based on the generic metamodel without any knowledge of any SMTs.
About the section assumption I am not sure if this holds or not. At least I am not aware of any constraint defined in the AAS specification that submodels that use a SubmodelTemplate are not allowed to have properties besides the ones defined in the SubmodelTemplate. If there is such a constraint, please provide a citation. My personal understanding is that SMT specific a set of elements a submodel can/must have but an instance of that SMT is free to contain additional elements.
To summarize, I do not see how PATCH on /$value can work safely besides the very narrow special case you mentioned that might not even be 100% compliant with the specification, i.e., the problem remains unsolved.

I have also the opinion that the whole behaviour must work even though the server has no knowledge of the used SubmodelTemplates (at the moment it receives the message).


Scene produces spam of Non-human-readable errors

Godot version:
3.2.3.stable.official
OS/device including version:
Windows 10
Issue description:
Opening this scene will create an error spam of:
ERROR: build: Condition "!F" is true. Continuing.
   At: core/math/quick_hull.cpp:399
ERROR: build: Condition "O == __null" is true. Continuing.
   At: core/math/quick_hull.cpp:402

The meshes for this scene were created programmatically using "create_trimesh_collision()"
Everything appears to work correctly besides the constant error messages which cause slowdown on larger scenes
The error codes are non-human-readable making it hard to know what is going on or how to fix it
Steps to reproduce:
Open the provided scene
Minimal reproduction project:
testProject.zip

Present in 3.3.2.stable.
Fixed in 3.4.beta3 (most likely by #48533).

Closing per @kleonc's comment.


Try and make tests more reliable by clicking on navigation links twice and checking for page title

We'll see if the tests seem to pass more reliably this way

Commit 73: "Try Again" 🤣


Add telemetry-checkbox in user profile page

:nut_and_bolt: Description: What code changed, and why?
Move telemetry checkbox from About popup to User details page.

:chains: Related Resources
#4902
:+1: Definition of Done
Added telemetry checkbox in User details page.
:athletic_shoe: How to Build and Test the Change
You can see the Profile Icon at top right corner in header. Click the Profile Icon -> you can see the menu list -> click the profile menu -> you can see the user details page -> you can see the telemetry checkbox there.
:white_check_mark: Checklist
All PRs must tick these:

[x] I have read the CONTRIBUTING document.
[x] All commits signed-off for the Developer Certification of Origin.

With occasional exceptions, all PRs from Progress employees must tick these:

[x] Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
[x] Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
[x] Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
[x] Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
[x] Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

[ ] Tests added/updated? (all new code needs new tests)
[ ] Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.
:camera: Screenshots, if applicable

Hi @Venkatesh-rengasamy,
Please check the below video, when I unchecked the checkbox then the save button enabled this is fine but when I checked it i.e. I reverted it to the preview step then save button is still enabled.  It should be disabled.
https://user-images.githubusercontent.com/71449322/131858342-a97f8347-c317-494c-85eb-ab2bc23ede79.mp4

Hi @Venkatesh-rengasamy
Dropdown value changes when we reload the page or on the switching tab.
https://user-images.githubusercontent.com/71449322/131986872-7736803e-b38b-41ba-876b-ff48e326da25.mp4

Sometimes dropdown load with no value.

Hi @Venkatesh-rengasamy,
Please check the below video, when I unchecked the checkbox then the save button enabled this is fine but when I checked it i.e. I reverted it to the preview step then save button is still enabled. It should be disabled.
telemetry-checkb.mp4

This is fixed.

Sometimes dropdown load with no value.

This is fixed.

Dropdown border is missing.

Can we change scroll to customize one?

Can we change scroll to customize one?

This is fixed

Dropdown border is missing.

This is fixed.


Strange events behavior.

Hi. I wrote my own wrapper(not extend) for core-ajax — my-ajax, where I handling all needed things and dispatching custom events. Also I didn't make any proxying things for events from core-ajax. Recently I made mistake and tried to handle core-response event on my-ajax. And... It works!
<my-ajax
    id="ajax_save"
    method="PUT"
    url="http://localhost/something"
    body="param={{$.param.selected}}"
    on-core-response="{{onResponse}}"
>
</my-ajax>

As srcElement i got my-ajax.
I dont think, that it's expected behavior, isn't it?

Closing this issue due to age and the release of version 1 of Polymer - please feel free to re-open if this is incorrect.


PluginCompiler - Access to Sentry

Please allow us to play with Sentry (sentry.io), which is already embedded into the game. I think it is better to find ways of using Sentry instead of writing our own instrumentation & performance monitor.
At this moment, if I write using Sentry;, it will not compile.

I don't think that giving access to whole sentry is a good idea. It allows to manipulate the memory directly, adds web requests etc.
Also it exposes some sensible data (GPU id etc.), so it is better, to keep it excluded.

But it is already here... Actually all I ask is the ability to write this:
            var itx = Sentry.SentrySdk.StartTransaction("tx", "op");
            itx.Finish();

Instead of this:
            var type = HarmonyLib.AccessTools.TypeByName("Sentry.SentrySdk");
            object itx = new HarmonyLib.Traverse(type).Method("StartTransaction", "tx", "op").GetValue();
            HarmonyLib.Traverse.Create(itx).Method("Finish").GetValue();

Hope you ain't going to blacklist Harmony now, are you? :-))))))))


Avoid going out of bound in advanceLine() and refine comments.

This fixes a heap-buffer-overflow problem reported by clang asan.

+2


Uglifyjs raise an error when js lib not having sourcemap

Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:

uglifyjs raise an error when js lib not having sourcemap
Chart.js and another js lib are involved. Since lots of ppl are using Chart.js, they will report this bug sooner or later, in here or somewhere else. So please don't ignore this bug.
I never had problem on this problem before upgrading to 1.3.1

What behavior are you expecting?
At least compiling without error. May be skip uglifying the js lib without sourcemap.
Steps to reproduce:

Installing<EMAIL_ADDRESS>and<EMAIL_ADDRESS>thru npm
Copying node_modules/chart.js/dist/Chart.js to www/build as doc requested
Including Chart.js in the index.html as doc requested
running ionic build android --prod --release

I tried Chart.js and Chart.min.js, the results are the same
insert any relevant code between the above and below backticks

Which @ionic/app-scripts version are you using?
1.3.1
1.2.5 won't raise this error, but it will fail by another error(BuildError.Error (native)) See #853
1.1.4 won't raise this error, but it will fail because of javascript HEAP MEMORY. See #808
So now we got no working version of ionic-app-scripts : (
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
[23:32:37]  transpile bundle started ...
[23:33:23]  transpile bundle finished in 46.08 s
[23:33:23]  uglifyjs started ...
[23:33:24]  ionic-app-script task: "build"
[23:33:24]  Error: ENOENT: no such file or directory, open 'PROJECT_PATH/www/build/Chart.js.map' in
undefined at line undefined, col undefined, pos undefined
Error: ENOENT: no such file or directory, open 'PROJECT_PATH/www/build/Chart.js.map' in undefined at line undefined, col undefined, pos undefined
at BuildError.Error (native)
at new BuildError (PROJECT_PATH/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at taskReject (PROJECT_PATH/node_modules/@ionic/app-scripts/dist/worker-process.js:36:22)
at PROJECT_PATH/node_modules/@ionic/app-scripts/dist/worker-process.js:14:13
at process._tickCallback (internal/process/next_tick.js:103:7)

I get the same error with any plain js files I include in the build.

Working on this now.
Thanks,
Dan

I did a grotesque hack of uglifyjs.js to work around the issue for myself, will appreciate a legit fix  ;)
if (path_1.extname(file) === '.js'
        && file.indexOf('polyfills') === -1
        && file.indexOf('sw-toolbox') === -1
        && file.indexOf('.map') === -1
        && file.indexOf('appSettings') === -1
        && file.indexOf('local.env.client') === -1
        && file.indexOf('atatus.min') === -1
        && file.indexOf('aws-sdk.min') === -1
        && file.indexOf('web-animations-next.min') === -1
        && file.indexOf('pubnub.min') === -1) {

This is fixed in 1.3.2.
Thanks,
Dan

I just want to confirm 1.3.2 fixed this bug. And thanks ionic team.

What was done to fix the problem?


rename disableStats property

Coverage increased (+0.03%) to 79.914% when pulling 03998e4f06d36f55e48333c23a1df30df0629cf9 on thiagobustamante:master into 4b7c2fe4aa4bb8f4afe099072c5df2a0a9e1471b on Leanty:master.


[BUG] CRC 1.6 fail to start with "Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)"

General information

OS: Linux / macOS / Windows

RHEL 7.6

Hypervisor: KVM / Hyper-V / hyperkit

libvirt

Did you run crc setup before starting it (Yes/No)?

yes
CRC version
$ crc version
crc version: 1.6.0+8ef676f
OpenShift version: 4.3.0 (embedded in binary)

CRC status
$ crc status
Machine 'crc' does not exist. Use 'crc start' to create it.

CRC config
There is no output of "crc config view"

Host Operating System
 cat /etc/os-release
NAME="Red Hat Enterprise Linux Workstation"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Workstation"
VARIANT_ID="workstation"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Workstation 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:workstation"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

Steps to reproduce
Run crc setup and then start and I get the error.
Expected
CRC to start.
Actual
ERRO Error creating host: Error creating the VM: Error creating machine: Error in driver during machine creation: unexpected EOF
Logs
https://gist.github.com/jmazzitelli/c6591e74a8d4085b34da2fb2c0dc0e3a

Same happened to me on Fedora 31 with the latest updates as of yesterday.

This error does not happen on 1.5.0. So this is a problem that was introduced in 1.6.0.

I got 1.6.0 to start up. I think the missing piece was I think I had an older VM still in existence that CRC was trying to reuse.
If you have this problem, go in virt-manager and make sure you destroy any older CRC VMs.
I also deleted all content under $HOME/.crc (but I did that before and still got the error - I think its the old VM was the problem).


Some dependency errors on Docker image

I pulled the docker image and downloaded flat-dataset, changed the base path on launch file on yaml file
docker pull ghcr.io/ethz-asl/panoptic_mapping:main
docker run -it ghcr.io/ethz-asl/panoptic_mapping:main bash
source ../devel/setup.bash
roslaunch panoptic_mapping_ros run.launch

But got erros
Traceback (most recent call last):
  File "/catkin_ws/src/panoptic_mapping/panoptic_mapping_utils/src/flat_dataset/flat_data_player.py", line 12, in <module>
    from PIL import Image as PilImage
ModuleNotFoundError: No module named 'PIL'

You can install it using pip install pillow. Hope that helps!


Make rafy::Error usable with error-chain

I think error-chain needs the Error to impl std::marker::Send, Not sure though.
Here is a compiler compain trying to add rafy::Error to error-chain:
error[E0277]: the trait bound `std::error::Error + 'static: std::marker::Send` is not satisfied
  --> src/lib.rs:25:5
   |
25 | /     error_chain! {
26 | |         foreign_links {
27 | |             RafError(rafy::Error);
28 | |             ReqError(reqwest::Error);
...  |
31 | |         }
32 | |     }
   | |_____^ `std::error::Error + 'static` cannot be sent between threads safely
   |
   = help: the trait `std::marker::Send` is not implemented for `std::error::Error + 'static`
   = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<std::error::Error + 'static>`
   = note: required because it appears within the type `std::boxed::Box<std::error::Error + 'static>`
   = note: required because it appears within the type `rafy::Error`
   = note: required because it appears within the type `errors::ErrorKind`
   = note: required because it appears within the type `errors::Error`
   = note: this error originates in a macro outside of the current crate

Turns out compiler is complaining about ? cause it couldnt find the Error type at the Erro-chain thing.
And ? can be used with rafy!