Skip to content

Commit

Permalink
Merge pull request #446 from meteor/release-2.8
Browse files Browse the repository at this point in the history
Release 2.8
  • Loading branch information
StorytellerCZ authored Dec 30, 2023
2 parents 0512b6f + 547fe85 commit d5a2937
Show file tree
Hide file tree
Showing 40 changed files with 2,057 additions and 1,721 deletions.
14 changes: 12 additions & 2 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v2.8.0 2023-Dec-28

* [#431](https://github.com/meteor/blaze/pull/431) Depracate Ui package.
* [#431](https://github.com/meteor/blaze/pull/432) Bump blaze hot dependencies.
* [#428](https://github.com/meteor/blaze/pull/428) Implemented async attributes and content.
* [#426](https://github.com/meteor/blaze/pull/426) Fix observe-squence has-implementation, close to underscore.
* [#434](https://github.com/meteor/blaze/pull/434) Update templating deps.
* [#435](https://github.com/meteor/blaze/pull/435) Updating dependencies for templating-compiler package.
* [#433](https://github.com/meteor/blaze/pull/433) Update caching-html-compiler.

## v2.7.1, 2023-May-26

* [#413](https://github.com/meteor/blaze/pull/418) Fix reactivity for non-primitives.
Expand Down Expand Up @@ -63,14 +73,14 @@
* [#321](https://github.com/meteor/blaze/pull/321) Just source code modernisation, making it easier to read. Shouldn't change any API's; except may need explicit import if other packages are using directly.

* [#324](https://github.com/meteor/blaze/pull/324) Add a whitespace="strip" option to templates, which removes any whitespace that crosses newlines.

* [#276](https://github.com/meteor/blaze/pull/276) [HTML.isArray](https://github.com/brucejo75/blaze/blob/release-2.4/packages/htmljs/README.md#htmlisarrayx) works across iFrames. This supports running blaze in sandboxed iFrames.

## v2.3.4, 2019-Dec-13

* jquery 3 support
[#299](https://github.com/meteor/blaze/pull/299)

## v2.3.2, 2017-Mar-21

* Made beautification of compiled spacebars code happen only on the server.
Expand Down
66 changes: 33 additions & 33 deletions packages/blaze-hot/.versions
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
babel-compiler@7.6.1
[email protected].0
babel-compiler@7.10.5
[email protected].1
[email protected]
blaze@2.5.0
[email protected].0
[email protected].0
blaze@2.8.0
[email protected].2
[email protected].4
[email protected]
[email protected].0
[email protected].1
[email protected].1
ecmascript@0.15.1
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
ecmascript-runtime-server@0.10.0
[email protected]
fetch@0.1.1
html-tools@1.1.0
htmljs@1.1.0
id-map@1.1.0
[email protected].2
[email protected].2
[email protected].2
dynamic-import@0.7.3
ecmascript@0.16.8
ecmascript-runtime@0.8.1
ecmascript-runtime-client@0.12.1
[email protected]
ejson@1.1.3
fetch@0.1.4
html-tools@1.1.4
htmljs@1.2.0
[email protected]
meteor@1.9.3
[email protected].5
modules@0.16.0
modules-runtime@0.12.0
[email protected].7
[email protected].16
meteor@1.11.4
[email protected].10
modules@0.20.0
modules-runtime@0.13.1
[email protected].8
[email protected].21
[email protected]
promise@0.11.2
[email protected].0
[email protected]
spacebars@1.1.0
spacebars-compiler@1.2.0
templating-compiler@1.4.0
templating-runtime@1.4.0
templating-tools@1.2.0
tracker@1.2.0
underscore@1.0.10
promise@0.12.2
[email protected].1
[email protected]
reactive-var@1.0.12
spacebars@1.3.0
spacebars-compiler@1.3.2
templating-compiler@1.4.2
templating-runtime@1.6.4
templating-tools@1.2.3
tracker@1.3.3
26 changes: 13 additions & 13 deletions packages/blaze-hot/hot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function patchTemplate(Template) {
Template.registerHelper = function (name, func) {
func[SourceModule] = currentModule.id;
oldRegisterHelper(name, func);
}
};

const oldOnCreated = Template.prototype.onCreated;
Template.prototype.onCreated = function (cb) {
Expand All @@ -20,7 +20,7 @@ function patchTemplate(Template) {
}

return oldOnCreated.call(this, cb);
}
};

const oldOnRendered = Template.prototype.onRendered;
Template.prototype.onRendered = function (cb) {
Expand All @@ -29,7 +29,7 @@ function patchTemplate(Template) {
}

return oldOnRendered.call(this, cb);
}
};

const oldOnDestroyed = Template.prototype.onDestroyed;
Template.prototype.onDestroyed = function (cb) {
Expand All @@ -38,31 +38,31 @@ function patchTemplate(Template) {
}

return oldOnDestroyed.call(this, cb);
}
};

const oldHelpers = Template.prototype.helpers;
Template.prototype.helpers = function (dict) {
if (typeof dict === 'object') {
for (var k in dict) {
for (let k in dict) {
if (dict[k]) {
dict[k][SourceModule] = currentModule.id;
}
}
}

return oldHelpers.call(this, dict);
}
};

const oldEvents = Template.prototype.events;
Template.prototype.events = function (eventMap) {
const result = oldEvents.call(this, eventMap);
this.__eventMaps[this.__eventMaps.length - 1][SourceModule] = currentModule.id;
return result;
}
};
}

function cleanTemplate(template, moduleId) {
let usedModule = false
let usedModule = false;
if (!template || !Blaze.isTemplate(template)) {
return usedModule;
}
Expand All @@ -71,7 +71,7 @@ function cleanTemplate(template, moduleId) {
for (let i = array.length - 1; i >= 0; i--) {
let item = array[i];
if (item && item[SourceModule] === moduleId) {
usedModule = true
usedModule = true;
array.splice(i, 1);
}
}
Expand All @@ -84,12 +84,12 @@ function cleanTemplate(template, moduleId) {

Object.keys(template.__helpers).forEach(key => {
if (template.__helpers[key] && template.__helpers[key][SourceModule] === moduleId) {
usedModule = true
usedModule = true;
delete template.__helpers[key];
}
});

return usedModule
return usedModule;
}

function shouldAccept(module) {
Expand Down Expand Up @@ -120,7 +120,7 @@ if (module.hot) {
module.hot.accept();
module.hot.dispose(() => {
Object.keys(Templates).forEach(templateName => {
let template = Templates[templateName]
let template = Templates[templateName];
let usedByModule = cleanTemplate(template, module.id);
if (usedByModule) {
Template._applyHmrChanges(templateName);
Expand All @@ -134,7 +134,7 @@ if (module.hot) {
});
});
}
currentModule = previousModule
currentModule = previousModule;
}
});
}
13 changes: 6 additions & 7 deletions packages/blaze-hot/package.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
Package.describe({
name: 'blaze-hot',
summary: "Update files using Blaze's API with HMR",
version: '1.1.1',
version: '1.1.2',
git: 'https://github.com/meteor/blaze.git',
documentation: null,
debugOnly: true
});

Package.onUse(function (api) {
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]', { weak: true });

api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]', { weak: true });
api.addFiles('hot.js', 'client');
api.addFiles('update-templates.js', 'client');
});
8 changes: 4 additions & 4 deletions packages/blaze-hot/update-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Template.prototype.constructView = function () {
}

return view;
}
};

let updateRootViews = Template._applyHmrChanges;

Expand All @@ -59,8 +59,8 @@ Template._applyHmrChanges = function (templateName = UpdateAll) {
}

timeout = setTimeout(() => {
for (var i = 0; i < Template.__pendingReplacement.length; i++) {
delete Template[Template.__pendingReplacement[i]]
for (let i = 0; i < Template.__pendingReplacement.length; i++) {
delete Template[Template.__pendingReplacement[i]];
}

Template.__pendingReplacement = [];
Expand Down Expand Up @@ -161,4 +161,4 @@ Template._applyHmrChanges = function (templateName = UpdateAll) {
}
});
});
}
};
69 changes: 34 additions & 35 deletions packages/blaze-html-templates/.versions
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
babel-compiler@7.6.1
[email protected].0
babel-compiler@7.10.5
[email protected].1
[email protected]
blaze@2.5.0
blaze-html-templates@1.2.1
[email protected].0
blaze@2.8.0
blaze-html-templates@2.0.1
[email protected].4
[email protected]
[email protected].0
[email protected].1
[email protected].1
ecmascript@0.15.1
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
ecmascript-runtime-server@0.10.0
[email protected]
fetch@0.1.1
html-tools@1.1.0
htmljs@1.1.0
id-map@1.1.0
[email protected].2
[email protected].2
[email protected].2
dynamic-import@0.7.3
ecmascript@0.16.8
ecmascript-runtime@0.8.1
ecmascript-runtime-client@0.12.1
[email protected]
ejson@1.1.3
fetch@0.1.4
html-tools@1.1.4
htmljs@1.2.0
[email protected]
meteor@1.9.3
[email protected].5
modules@0.16.0
modules-runtime@0.12.0
[email protected].7
[email protected].16
meteor@1.11.4
[email protected].10
modules@0.20.0
modules-runtime@0.13.1
[email protected].8
[email protected].21
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
6 changes: 3 additions & 3 deletions packages/blaze-html-templates/package.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Package.describe({
name: 'blaze-html-templates',
summary: "Compile HTML templates into reactive UI with Meteor Blaze",
version: '2.0.0',
version: '2.0.1',
git: 'https://github.com/meteor/blaze.git'
});

Package.onUse(function(api) {
api.imply([
// A library for reactive user interfaces
'blaze@2.7.1',
'blaze@2.8.0',

// Compile .html files into Blaze reactive views
'[email protected].1'
'[email protected].3'
]);
});
Loading

0 comments on commit d5a2937

Please sign in to comment.