Skip to content

Commit 52221c0

Browse files
authored
Fix canonicalize paths containing .. (#2561)
1 parent f6fea3a commit 52221c0

File tree

7 files changed

+18
-5
lines changed

7 files changed

+18
-5
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.86.3
2+
3+
* Fix a bug introduced in 1.86.1 where Sass fails to resolve paths starting with
4+
a `..` segment.
5+
16
## 1.86.2
27

38
* No user-visible changes.

lib/src/io.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bool get _couldBeCaseInsensitive => isWindows || isMacOS;
2525

2626
/// Returns the canonical form of `path` on disk.
2727
String canonicalize(String path) => _couldBeCaseInsensitive
28-
? _realCasePath(p.absolute(p.normalize(path)))
28+
? _realCasePath(p.normalize(p.absolute(path)))
2929
: p.canonicalize(path);
3030

3131
/// Returns `path` with the case updated to match the path's case on disk.

pkg/sass-parser/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.19
2+
3+
* No user-visible changes.
4+
15
## 0.4.18
26

37
* No user-visible changes.

pkg/sass-parser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-parser",
3-
"version": "0.4.18",
3+
"version": "0.4.19",
44
"description": "A PostCSS-compatible wrapper of the official Sass parser",
55
"repository": "sass/sass",
66
"author": "Google Inc.",

pkg/sass_api/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 15.3.3
2+
3+
* No user-visible changes.
4+
15
## 15.3.2
26

37
* No user-visible changes.

pkg/sass_api/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: sass_api
22
# Note: Every time we add a new Sass AST node, we need to bump the *major*
33
# version because it's a breaking change for anyone who's implementing the
44
# visitor interface(s).
5-
version: 15.3.2
5+
version: 15.3.3
66
description: Additional APIs for Dart Sass.
77
homepage: https://github.com/sass/dart-sass
88

99
environment:
1010
sdk: ">=3.6.0 <4.0.0"
1111

1212
dependencies:
13-
sass: 1.86.2
13+
sass: 1.86.3
1414

1515
dev_dependencies:
1616
dartdoc: ^8.0.14

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.86.2
2+
version: 1.86.3
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)