update initialize version and use path.url always
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63dc3c3..a112224 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+#### 0.10.4+1
+ * Update `initialize` lower bound to get bug fixes.
+ * Make sure to always use `path.url` in transformers.
+
#### 0.10.4
* Added `CustomElement` annotation. This can be added to any class to register
it with a tag in the main document.
diff --git a/lib/build/import_inliner.dart b/lib/build/import_inliner.dart
index de8beb0..9101419 100644
--- a/lib/build/import_inliner.dart
+++ b/lib/build/import_inliner.dart
@@ -177,7 +177,7 @@
_UrlNormalizer(AssetId primaryInput, this.sourceId, this.logger)
: primaryInput = primaryInput,
- topLevelPath = '../' * (primaryInput.path.split('/').length - 2);
+ topLevelPath = '../' * (path.url.split(primaryInput.path).length - 2);
bool visit(Node node) {
super.visit(node);
@@ -291,7 +291,7 @@
}
var builder = path.url;
- return path.normalize(builder.relative(builder.join('/', newPath),
+ return builder.normalize(builder.relative(builder.join('/', newPath),
from: builder.join('/', builder.dirname(primaryId.path))));
}
}
diff --git a/pubspec.yaml b/pubspec.yaml
index b77a5e5..fd86dc1 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: web_components
-version: 0.10.4
+version: 0.10.4+1
author: Polymer.dart Authors <web-ui-dev@dartlang.org>
homepage: https://www.dartlang.org/polymer-dart/
description: >
@@ -14,7 +14,7 @@
barback: '>=0.14.2 <0.16.0'
code_transformers: '^0.2.4'
html5lib: '^0.12.0'
- initialize: '^0.5.0'
+ initialize: '^0.5.0+1'
path: '^1.3.0'
dev_dependencies:
unittest: '^0.11.0'