From 5a5c0d3f87690e9c3ed2508d8e7bcc71207f0a17 Mon Sep 17 00:00:00 2001 From: distalx Date: Sun, 24 Jul 2022 09:29:09 +0530 Subject: [PATCH 1/2] docs (Overview) add instructions on how to install `jQuery`. --- site/source/index.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/site/source/index.md b/site/source/index.md index 0a959f8e9..10f7046aa 100644 --- a/site/source/index.md +++ b/site/source/index.md @@ -11,6 +11,39 @@ Blaze is a Meteor-only package for now. Soon we will have Blaze on npm so you ca Each new Meteor project you create has Blaze included (the `blaze-html-templates` package). +## Prerequisite + +Earlier, `jQuery` was bundled with Blaze. In later versions Blaze does not have `jQuery` as a direct dependency. With some legacy Blaze packages you might encounter the following error. + +```js +Uncaught Error: jQuery not found +``` + +To mitigate this error it is advised to install `jQuery` either as an `npm` or as a `atmospherejs` package. + + +#### install jquery with npm + +Into project root. +```sh +meteor npm install jquery@latest --save +``` +Import `jQuery` in `client/main.js`. +```js +import $ from 'jquery'; +``` + +#### install jquery with atmospherejs + +Into project root. +```sh +meteor add jquery@3.0.0 +``` +Import `jQuery` in `client/main.js`. +```js +import {$} from 'meteor/jquery'; +``` + ## Details Blaze has two major parts: From b8f69856625f737095953b95c941682351e65305 Mon Sep 17 00:00:00 2001 From: jankapunkt Date: Fri, 26 Aug 2022 08:48:27 +0200 Subject: [PATCH 2/2] fix: deprecate UI package --- packages/ui/package.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/package.js b/packages/ui/package.js index f7c7a0f11..da0f91008 100644 --- a/packages/ui/package.js +++ b/packages/ui/package.js @@ -2,7 +2,8 @@ Package.describe({ name: 'ui', summary: "Deprecated: Use the 'blaze' package", version: '1.0.13', - git: 'https://github.com/meteor/blaze.git' + git: 'https://github.com/meteor/blaze.git', + deprecated: true, }); Package.onUse(function (api) {