Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.8 #446

Merged
merged 28 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
38a8758
fix(observer-squence): use has-implementation, close to underscore
jankapunkt Aug 5, 2023
12b4387
Merge branch 'master' into fix-observe-sequence-dotvalues
jankapunkt Oct 4, 2023
2cbd1be
Merge branch 'master' into fix-observe-sequence-dotvalues
StorytellerCZ Nov 27, 2023
f2683e9
Deprecate UI package
StorytellerCZ Nov 27, 2023
4b612bc
Update dependencies in blaze-hot
StorytellerCZ Nov 27, 2023
bd65f2c
Merge branch 'master' into fix-observe-sequence-dotvalues
jankapunkt Dec 4, 2023
ed24e5a
tests: added testing _ids with dotvalues
jankapunkt Dec 4, 2023
024771f
bumped a few packages
Grubba27 Dec 22, 2023
25424cf
Merge pull request #431 from meteor/feature/deprecate-ui-package
Grubba27 Dec 22, 2023
6e32d99
Merge branch 'release-2.8' into feature/blaze-hot-deps-updates
Grubba27 Dec 22, 2023
41e6d09
Merge pull request #432 from meteor/feature/blaze-hot-deps-updates
Grubba27 Dec 22, 2023
a8e633d
Update to Hexo 4 for docs
StorytellerCZ Nov 28, 2023
9e1dcba
Update to Hexo 5
StorytellerCZ Nov 28, 2023
53e3383
Hexo to v6.3
StorytellerCZ Nov 28, 2023
2bb353d
Merge branch 'release-2.8' of https://github.com/meteor/blaze into re…
Grubba27 Dec 22, 2023
781f5af
Update meteor
Grubba27 Dec 22, 2023
a9b685b
bumped remaining packages
Grubba27 Dec 22, 2023
fdf9296
Updated history.md
Grubba27 Dec 28, 2023
dac3adf
Merge pull request #426 from meteor/fix-observe-sequence-dotvalues
Grubba27 Dec 29, 2023
ba25696
Merge branch 'release-2.8' into feature/templating-deps
Grubba27 Dec 29, 2023
314e3fc
Merge pull request #454 from meteor/feature/templating-deps
Grubba27 Dec 29, 2023
9f64b29
Merge branch 'release-2.8' into feature/templating-compiler-deps
Grubba27 Dec 29, 2023
4db017f
Merge pull request #453 from meteor/feature/templating-compiler-deps
Grubba27 Dec 29, 2023
c3492f8
Merge branch 'release-2.8' into feature/update-caching-html-compiler
Grubba27 Dec 29, 2023
7d40671
Merge pull request #452 from meteor/feature/update-caching-html-compiler
Grubba27 Dec 29, 2023
ea0a171
Merge branch 'master' into release-2.8
Grubba27 Dec 29, 2023
8612ee0
Updated history.md
Grubba27 Dec 29, 2023
547fe85
Blaze to 2.8
Grubba27 Dec 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
babel-runtime@1.5.0
babel-compiler@7.10.5
babel-runtime@1.5.1
base64@1.0.12
blaze@2.5.0
blaze-hot@1.1.0
blaze-tools@1.1.0
blaze@2.8.0
blaze-hot@1.1.2
blaze-tools@1.1.4
caching-compiler@1.2.2
caching-html-compiler@1.2.0
check@1.3.1
diff-sequence@1.1.1
ecmascript@0.15.1
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
ecmascript-runtime-server@0.10.0
ejson@1.1.1
fetch@0.1.1
html-tools@1.1.0
htmljs@1.1.0
id-map@1.1.0
caching-html-compiler@1.2.2
check@1.3.2
diff-sequence@1.1.2
dynamic-import@0.7.3
ecmascript@0.16.8
ecmascript-runtime@0.8.1
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.3
fetch@0.1.4
html-tools@1.1.4
htmljs@1.2.0
inter-process-messaging@0.1.1
meteor@1.9.3
modern-browsers@0.1.5
modules@0.16.0
modules-runtime@0.12.0
mongo-id@1.0.7
observe-sequence@1.0.16
meteor@1.11.4
modern-browsers@0.1.10
modules@0.20.0
modules-runtime@0.13.1
mongo-id@1.0.8
observe-sequence@1.0.21
ordered-dict@1.1.0
promise@0.11.2
random@1.2.0
reactive-var@1.0.11
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
random@1.2.1
react-fast-refresh@0.2.8
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('modules@0.16.0');
api.use('ecmascript@0.15.1');
api.use('blaze@2.7.1');
api.use('templating-runtime@1.6.0');
api.use('hot-module-replacement@0.2.0', { weak: true });

api.use('modules@0.19.0');
api.use('ecmascript@0.16.7');
api.use('blaze@2.8.0');
api.use('templating-runtime@1.6.4');
api.use('hot-module-replacement@0.5.3', { 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
babel-runtime@1.5.0
babel-compiler@7.10.5
babel-runtime@1.5.1
base64@1.0.12
blaze@2.5.0
blaze-html-templates@1.2.1
blaze-tools@1.1.0
blaze@2.8.0
blaze-html-templates@2.0.1
blaze-tools@1.1.4
caching-compiler@1.2.2
caching-html-compiler@1.2.0
check@1.3.1
diff-sequence@1.1.1
ecmascript@0.15.1
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
ecmascript-runtime-server@0.10.0
ejson@1.1.1
fetch@0.1.1
html-tools@1.1.0
htmljs@1.1.0
id-map@1.1.0
caching-html-compiler@1.2.2
check@1.3.2
diff-sequence@1.1.2
dynamic-import@0.7.3
ecmascript@0.16.8
ecmascript-runtime@0.8.1
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.3
fetch@0.1.4
html-tools@1.1.4
htmljs@1.2.0
inter-process-messaging@0.1.1
meteor@1.9.3
modern-browsers@0.1.5
modules@0.16.0
modules-runtime@0.12.0
mongo-id@1.0.7
observe-sequence@1.0.16
meteor@1.11.4
modern-browsers@0.1.10
modules@0.20.0
modules-runtime@0.13.1
mongo-id@1.0.8
observe-sequence@1.0.21
ordered-dict@1.1.0
promise@0.11.2
random@1.2.0
reactive-var@1.0.11
spacebars@1.2.0
spacebars-compiler@1.2.0
templating@1.4.1
templating-compiler@1.4.1
templating-runtime@1.5.0
templating-tools@1.2.0
tracker@1.2.0
ui@1.0.13
underscore@1.0.10
promise@0.12.2
random@1.2.1
react-fast-refresh@0.2.8
reactive-var@1.0.12
spacebars@1.3.0
spacebars-compiler@1.3.2
templating@1.4.3
templating-compiler@1.4.2
templating-runtime@1.6.4
templating-tools@1.2.3
tracker@1.3.3
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
'templating@1.4.1'
'templating@1.4.3'
]);
});
Loading