Skip to content

Commit

Permalink
v3.0.0-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
copleykj committed Sep 28, 2024
1 parent 8d19471 commit a9728fb
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 66 deletions.
87 changes: 34 additions & 53 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,53 +1,34 @@
allow-deny@1.1.1
babel-compiler@7.10.5
babel-runtime@1.5.1
base64@1.0.12
binary-heap@1.0.11
boilerplate-generator@1.7.2
callback-hook@1.5.1
check@1.4.1
communitypackages:inject-data@2.3.3
communitypackages:picker@1.1.1
ddp@1.4.1
ddp-client@2.6.2
ddp-common@1.4.1
ddp-server@2.7.1
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
geojson-utils@1.0.11
http@1.4.0
id-map@1.1.1
inter-process-messaging@0.1.1
local-test:communitypackages:inject-data@2.3.3
logging@1.3.4
meteor@1.11.5
minimongo@1.9.4
modern-browsers@0.1.10
modules@0.20.0
modules-runtime@0.13.1
mongo@1.16.10
mongo-decimal@0.1.3
mongo-dev-server@1.1.0
mongo-id@1.0.8
npm-mongo@4.17.2
ordered-dict@1.1.0
promise@0.12.2
random@1.2.1
react-fast-refresh@0.2.8
reload@1.3.1
retry@1.1.0
routepolicy@1.1.1
socket-stream-client@0.5.2
tinytest@1.2.3
tracker@1.3.3
typescript@4.9.5
underscore@1.6.1
url@1.3.2
webapp@1.13.8
webapp-hashing@1.1.1
babel-compiler@7.11.0
babel-runtime@1.5.2
base64@1.0.13
boilerplate-generator@2.0.0
callback-hook@1.6.0
communitypackages:inject-data@3.0.0-beta.0
communitypackages:picker@2.0.0-beta.0
core-runtime@1.0.0
dynamic-import@0.7.4
ecmascript@0.16.9
ecmascript-runtime@0.8.2
ecmascript-runtime-client@0.12.2
ecmascript-runtime-server@0.11.1
ejson@1.1.4
fetch@0.1.5
inter-process-messaging@0.1.2
local-test:communitypackages:inject-data@3.0.0-beta.0
logging@1.3.5
meteor@2.0.1
meteortesting:browser-tests@1.7.0
meteortesting:mocha@3.2.0
meteortesting:mocha-core@8.2.0
modern-browsers@0.1.11
modules@0.20.1
modules-runtime@0.13.2
promise@1.0.0
random@1.2.2
react-fast-refresh@0.2.9
routepolicy@1.1.2
typescript@5.4.3
underscore@1.6.4
url@1.3.3
webapp@2.0.2
webapp-hashing@1.1.2
2 changes: 1 addition & 1 deletion lib/client.ts → lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meteor } from 'meteor/meteor';
import { InjectData } from './namespace';

// Automatically parse the inject-data payload on Meteor startup
// Load it into memory so it can be fetched by InjectData.getData
// Load it into memory so it can sfbe fetched by InjectData.getData
Meteor.startup(function () {
const dom = document.querySelectorAll('script[type="text/inject-data"]');
const injectedDataString = dom && dom.length > 0 ? dom[0].innerHTML : '';
Expand Down
7 changes: 2 additions & 5 deletions lib/namespace.ts → lib/namespace.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
export let InjectData: {
getData: (key: string, callback: (data: any) => any) => void;
};
/* global Package */

InjectData = {};
export const InjectData = {};
// Replace meteorhacks:inject-data with our new API, this is for compatibility
// with third party packages that still depend upon the meteorhacks version.
if (Package['meteorhacks:inject-data']) {
Package['meteorhacks:inject-data'].InjectData = InjectData;
}

Meteor.User;
8 changes: 3 additions & 5 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ Package.onUse(function (api) {
api.versionsFrom('METEOR@3.0.1');
api.use('webapp', 'server');
api.use(['ejson', 'ecmascript', 'typescript'], ['server', 'client']);
api.use('zodern:types@1.0.13');
api.mainModule('lib/namespace.ts', ['server', 'client']);
api.mainModule('lib/namespace.js', ['server', 'client']);
api.addFiles('lib/utils.js', ['server', 'client']);
api.addFiles('lib/server.js', 'server');
api.addFiles('lib/client.ts', 'client');
api.addFiles('lib/client.js', 'client');
api.export('InjectData', ['client', 'server']);
});

Expand All @@ -23,8 +22,7 @@ Package.onTest(function (api) {
api.use('webapp', 'server');
api.use(['meteortesting:browser-tests@1.7.0', 'meteortesting:mocha@3.2.0']);
api.use(['ecmascript', 'typescript', 'underscore'], ['client', 'server']);
api.use('zodern:types@1.0.13');
api.use(['http', 'random'], 'server');
api.use(['fetch', 'random'], 'server');
api.use('communitypackages:picker@2.0.0-beta.0', 'server');
api.mainModule('tests/server/index.js', 'server');
api.mainModule('tests/client/index.js', 'client');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"@types/node": "^18.6.5",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"chai": "9.11.1",
"eslint": "^8.21.0",
"eslint-config-standard": "^17.0.0",
"eslint-import-resolver-meteor": "^0.4.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.1",
"typescript": "^4.7.4"
"eslint-plugin-react": "^7.30.1"
}
}

0 comments on commit a9728fb

Please sign in to comment.