{"_id":"@agjjquery/agjversionless","_rev":"2-4de2c86d73c35e0b36181d6b8ba778af","name":"@agjjquery/agjversionless","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@agjjquery/agjversionless","version":"1.0.0","keywords":["javascript","jquery","agjversionless","agjjquery","jquery-plugin","ecosystem:jquery"],"author":{"name":"Andrew G. Johnson","email":"andrew@andrewgjohnson.com"},"license":"MIT","_id":"@agjjquery/agjversionless@1.0.0","maintainers":[{"name":"andrewgjohnsonjs","email":"andrew@andrewgjohnson.com"},{"name":"agjjqueryuser","email":"agjjQuery.org@gmail.com"}],"homepage":"https://agjVersionless.agjjQuery.org/","bugs":{"url":"https://github.com/andrewgjohnson/agjVersionless/issues"},"dist":{"shasum":"d49e13af771c569823badbcb3fc3e0e60ba339ae","tarball":"https://registry.npmjs.org/@agjjquery/agjversionless/-/agjversionless-1.0.0.tgz","fileCount":6,"integrity":"sha512-POta7/zQeuUGmlWT8CnWHEoFUtNDhfihkhU3+jv80Z8WEUb69krf67/5TpHED/wSq2SVyMK2bgRaJZuLllxRdQ==","signatures":[{"sig":"MEUCIHQ/QH/h0auLbQSTmuODdeQXE1rYnBmnhEpif/hqdlNEAiEAhEjwZLTa9bgx4DbukMM2esGxDjQVSH60QitMACYbPao=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14914},"main":"distribution/jquery.agjVersionless.min.js","gitHead":"ec96747154fc97b515f0ada4dbe2c9eaf1e286f0","scripts":{"lint":"eslint source/jquery.agjVersionless.ts eslint.config.mjs gulpfile.js nyc.config.js tests/*.js","test":"npm run lint && npm run qunit","build":"npm run compile && npx gulp","qunit":"qunit tests/cli.js","compile":"tsc","coverage":"nyc --reporter=text --reporter=lcovonly qunit tests/cli.js","lint:fix":"eslint source/jquery.agjVersionless.ts eslint.config.mjs gulpfile.js nyc.config.js tests/*.js --fix"},"_npmUser":{"name":"andrewgjohnsonjs","email":"andrew@andrewgjohnson.com"},"prettier":"@agjjquery/coding-style/prettier","repository":{"url":"git+https://github.com/andrewgjohnson/agjVersionless.git","type":"git"},"_npmVersion":"10.9.8","description":"agjVersionless is a plugin for the jQuery JavaScript library to handle differences between jQuery versions","directories":{},"_nodeVersion":"22.23.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^18.0.0","gulp":"^5.0.0","jsdom":"^24.1.0","qunit":"^2.26.0","eslint":"^9.3.0","jquery":"^4.0.0","prettier":"^3.8.4","through2":"^4.0.2","gulp-babel":"^8.0.0","typescript":"^5.0.0","@babel/core":"^7.0.0","gulp-concat":"^2.6.1","gulp-uglify":"^3.0.2","@types/jquery":"^3.5.34","@babel/preset-env":"^7.0.0","@agjjquery/coding-style":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agjversionless_1.0.0_1782967989482_0.7003286853043713","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@agjjquery/agjversionless","author":{"name":"Andrew G. Johnson","email":"andrew@andrewgjohnson.com"},"homepage":"https://agjVersionless.agjjQuery.org/","description":"agjVersionless is a plugin for the jQuery JavaScript library to handle functionality regardless of jQuery version. Works with jQuery 1, 2, 3 and 4.","license":"MIT","version":"1.1.0","repository":{"type":"git","url":"git+https://github.com/andrewgjohnson/agjVersionless.git"},"bugs":{"url":"https://github.com/andrewgjohnson/agjVersionless/issues"},"main":"distribution/jquery.agjVersionless.min.js","types":"distribution/jquery.agjVersionless.d.ts","publishConfig":{"access":"public"},"prettier":"@agjjquery/coding-style/prettier","peerDependencies":{"jquery":">=1.0.0","@types/jquery":">=3.3.23"},"peerDependenciesMeta":{"@types/jquery":{"optional":true}},"devDependencies":{"@agjjquery/coding-style":"^1.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@types/jquery":"^3.5.34","cross-env":"^7.0.3","eslint":"^9.3.0","gulp":"^5.0.0","gulp-babel":"^8.0.0","gulp-concat":"^2.6.1","gulp-uglify":"^3.0.2","jquery":"^4.0.0","jquery1":"npm:jquery@^1.12.4","jquery2":"npm:jquery@^2.2.4","jquery3":"npm:jquery@^3.7.1","jsdom":"^24.1.0","nyc":"^18.0.0","prettier":"^3.8.4","qunit":"^2.26.0","typescript":"^5.0.0"},"keywords":["javascript","jquery","agjversionless","agjjquery","jquery-plugin","ecosystem:jquery"],"scripts":{"lint":"eslint eslint.config.mjs examples/*.js gulpfile.js nyc.config.js source/*.ts tests/*.js","lint:fix":"eslint eslint.config.mjs examples/*.js gulpfile.js nyc.config.js source/*.ts tests/*.js --fix","compile":"tsc","build":"npm run compile && npx gulp","qunit":"qunit tests/cli.js","qunit:all":"cross-env JQUERY_PACKAGE=jquery1 qunit tests/cli.js && cross-env JQUERY_PACKAGE=jquery2 qunit tests/cli.js && cross-env JQUERY_PACKAGE=jquery3 qunit tests/cli.js && cross-env JQUERY_PACKAGE=jquery qunit tests/cli.js","test":"npm run lint && npm run qunit:all","coverage":"nyc --reporter=text --reporter=lcovonly npm run qunit:all"},"_id":"@agjjquery/agjversionless@1.1.0","gitHead":"132d48b74d23fe4a5319f3b1a0e81532a1ee8e29","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-tP296YqJWBMYwXKU9cAqQVoynmVd5BXrkn9bU5XOQ49m1g3trq6IEs9Ii6G3156vG0csyeHginEfi4F8zmFLfg==","shasum":"25b3b83a522ce92a56b7845eaa6e6394e689389b","tarball":"https://registry.npmjs.org/@agjjquery/agjversionless/-/agjversionless-1.1.0.tgz","fileCount":7,"unpackedSize":23518,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFVo9GbzutHkk401WmHAZtCYlmWk81soEyVhPj68CKQ4AiEA4fLOWayWly5vvQ8AkTXuBRQNxp+yl2lsFEW7D6rg8Cc="}]},"_npmUser":{"name":"andrewgjohnsonjs","email":"andrew@andrewgjohnson.com"},"directories":{},"maintainers":[{"name":"andrewgjohnsonjs","email":"andrew@andrewgjohnson.com"},{"name":"agjjqueryuser","email":"agjjQuery.org@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agjversionless_1.1.0_1783467610975_0.45966614476844314"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-02T04:53:09.315Z","modified":"2026-07-07T23:40:11.265Z","1.0.0":"2026-07-02T04:53:09.618Z","1.1.0":"2026-07-07T23:40:11.128Z"},"bugs":{"url":"https://github.com/andrewgjohnson/agjVersionless/issues"},"author":{"name":"Andrew G. Johnson","email":"andrew@andrewgjohnson.com"},"license":"MIT","homepage":"https://agjVersionless.agjjQuery.org/","keywords":["javascript","jquery","agjversionless","agjjquery","jquery-plugin","ecosystem:jquery"],"repository":{"type":"git","url":"git+https://github.com/andrewgjohnson/agjVersionless.git"},"description":"agjVersionless is a plugin for the jQuery JavaScript library to handle functionality regardless of jQuery version. Works with jQuery 1, 2, 3 and 4.","maintainers":[{"name":"andrewgjohnsonjs","email":"andrew@andrewgjohnson.com"},{"name":"agjjqueryuser","email":"agjjQuery.org@gmail.com"}],"readme":"# agjVersionless\n\n[![MIT License](https://img.shields.io/badge/license-MIT-0366d6.png?colorB=0366d6&style=flat-square)](https://github.com/andrewgjohnson/agjVersionless/blob/main/LICENSE)\n[![Current Release](https://img.shields.io/github/release/andrewgjohnson/agjVersionless.png?colorB=0366d6&style=flat-square&logoColor=white&logo=github)](https://github.com/andrewgjohnson/agjVersionless/releases)\n[![Tested by QUnit](https://img.shields.io/badge/qunit-passing-0366d6.png?colorB=0366d6&style=flat-square)](https://agjVersionless.agjjQuery.org/tests/index.html)\n[![Coveralls Coverage](https://img.shields.io/coverallsCoverage/github/andrewgjohnson/agjVersionless.png?colorB=0366d6&style=flat-square&logoColor=white&logo=coveralls)](https://coveralls.io/github/andrewgjohnson/agjVersionless)\n[![Issues](https://img.shields.io/github/issues/andrewgjohnson/agjVersionless.png?colorB=0366d6&style=flat-square&logoColor=white&logo=github)](https://github.com/andrewgjohnson/agjVersionless/issues)\n[![npm Downloads](https://img.shields.io/npm/dt/@agjjquery/agjversionless.png?colorB=0366d6&style=flat-square&logoColor=white&logo=npm)](https://www.npmjs.com/package/@agjjquery/agjversionless)\n[![Patreon](documentation/images/patreon-badge.png)](https://patreon.com/agjopensource)\n\n<p align=\"center\">\n  <a href=\"https://agjversionless.agjjquery.org/\" title=\"\">\n    <img src=\"documentation/images/avatar.png\" alt=\"\" title=\"\" width=\"400\" id=\"avatar\" />\n  </a>\n</p>\n\n## Description\n\n**agjVersionless** is a plugin for the [jQuery](https://jquery.com/) JavaScript library to handle functionality regardless of jQuery version. Works with jQuery 1, 2, 3 and 4.\n\n[![Patreon - Become a Patron](https://raster.shields.io/badge/Patreon%20-become%20a%20Patron-FD334A.png?style=for-the-badge&logo=patreon&logoColor=FD334A)](https://patreon.com/agjopensource)\n\n**agjVersionless** is an [agjjQuery.org](https://agjjquery.org) plugin.\n\n## Examples\n\n```javascript\n// Bind an event handler regardless of jQuery version\n$('#my-element').agjVersionless.bind('click', function() {\n  console.log('clicked');\n});\n\n// Unbind an event handler regardless of jQuery version\n$('#my-element').agjVersionless.unbind('click');\n```\n\nIf you need to support IE6, IE7 or IE8, use the `$.agjVersionless` form instead as `element.agjVersionless` relies on `Object.defineProperty` which those browsers do not support on plain objects:\n\n```javascript\n// Bind an event handler regardless of jQuery version (IE6+ compatible)\n$.agjVersionless.bind($('#my-element'), 'click', function() {\n  console.log('clicked');\n});\n\n// Unbind an event handler regardless of jQuery version (IE6+ compatible)\n$.agjVersionless.unbind($('#my-element'), 'click');\n```\n\n## JavaScript Functions\n\nWe use the dollar sign alias (`$`) instead of the `jQuery` global for documentation but either can be referenced.\n\n### element.agjVersionless.bind(_event [, data], fn_) / $.agjVersionless.bind(_element, event [, data], fn_)\n\n```javascript\n// Bind an event handler regardless of jQuery version\n$('#my-element').agjVersionless.bind('click', function() {\n  console.log('clicked');\n});\n\n// Bind an event handler regardless of jQuery version (IE6+ compatible)\n$.agjVersionless.bind($('#my-element'), 'click', function() {\n  console.log('clicked');\n});\n```\n\nBinds an event handler to an element regardless of jQuery version. Works with jQuery 1, 2, 3 and 4. Note that the `element.agjVersionless` form requires IE9 or later; use `$.agjVersionless` if you need to support IE6, IE7 or IE8.\n\n### element.agjVersionless.unbind(_event_) / $.agjVersionless.unbind(_element, event_)\n\n```javascript\n// Unbind an event handler regardless of jQuery version\n$('#my-element').agjVersionless.unbind('click');\n\n// Unbind an event handler regardless of jQuery version (IE6+ compatible)\n$.agjVersionless.unbind($('#my-element'), 'click');\n```\n\nUnbinds an event handler from an element regardless of jQuery version. Works with jQuery 1, 2, 3 and 4. Note that the `element.agjVersionless` form requires IE9 or later; use `$.agjVersionless` if you need to support IE6, IE7 or IE8.\n\n## Usage/Installation\n\nYou will need an HTML reference to jQuery in order for the plugin to function.\n\n    <!-- Reference to the jQuery JavaScript library -->\n    <script type=\"text/javascript\" src=\"//code.jquery.com/jquery-4.0.0.min.js\"></script>\n\n### With npm or Yarn\n\nThis plugin offers support for the [npm](https://www.npmjs.com/) and [Yarn](https://yarnpkg.com/) dependency managers. You can find the agjVersionless package online on [npmjs.com](https://www.npmjs.com/package/@agjjquery/agjversionless).\n\n#### Install using npm\n\nRun this command to install the plugin using npm:\n\n    npm install @agjjquery/agjversionless\n\n#### Install using Yarn\n\nRun this command to install the plugin using Yarn:\n\n    yarn add @agjjquery/agjversionless\n\nOnce installed you can start using agjVersionless within your project by adding an HTML reference to the plugin’s JavaScript file.\n\n    <!-- Reference to the agjVersionless jQuery plugin -->\n    <script type=\"text/javascript\" src=\"./node_modules/@agjjquery/agjversionless/distribution/jquery.agjVersionless.min.js\"></script>\n\n### Without npm or Yarn\n\nTo use without npm or Yarn add an HTML reference to the [JavaScript source](https://agjversionless.agjjquery.org/source/javascript/) which you will need to download and host. Run this command to download it via the terminal:\n\n    curl -o jquery.agjVersionless.min.js 'https://cdn.jsdelivr.net/npm/@agjjquery/agjversionless/distribution/jquery.agjVersionless.min.js'\n\nOnce downloaded, you must reference the file in your HTML:\n\n    <!-- Reference to the agjVersionless jQuery plugin -->\n    <script type=\"text/javascript\" src=\"jquery.agjVersionless.min.js\"></script>\n\n## Unit Testing\n\nThe plugin uses jQuery’s [QUnit](https://qunitjs.com/) framework for unit testing. All units tests are located in the [qunit.js](https://github.com/andrewgjohnson/agjVersionless/blob/main/tests/qunit.js) file. The unit tests can be run online in-browser at [agjVersionless.agjjQuery.org/tests/index.html](https://agjVersionless.agjjQuery.org/tests/index.html). We aim for 100% code coverage.\n\n## Help Requests\n\nPlease post any questions in the [discussions area](https://github.com/andrewgjohnson/agjVersionless/discussions) on GitHub if you need help.\n\nIf you discover a bug please [enter an issue](https://github.com/andrewgjohnson/agjVersionless/issues/new) on GitHub. When submitting an issue please use our [issue templates](https://github.com/andrewgjohnson/agjVersionless/tree/main/.github/ISSUE_TEMPLATE).\n\n## Contributing\n\nPlease read our [contributing guidelines](https://github.com/andrewgjohnson/agjVersionless/blob/main/.github/CONTRIBUTING.md) if you want to contribute.\n\nYou can contribute financially by becoming a [patron](https://patreon.com/agjopensource) at [patreon.com/agjopensource](https://patreon.com/agjopensource) to support agjVersionless and [other agjjQuery.org plugins](https://agjjquery.org/plugins/).\n\n[![Patreon - Become a Patron](https://raster.shields.io/badge/Patreon%20-become%20a%20Patron-FD334A.png?style=for-the-badge&logo=patreon&logoColor=FD334A)](https://patreon.com/agjopensource)\n\n## Acknowledgements\n\nThis plugin was started by [Andrew G. Johnson (@andrewgjohnson)](https://github.com/andrewgjohnson).\n\nFull list of contributors:\n * [Andrew G. Johnson (@andrewgjohnson)](https://github.com/andrewgjohnson)\n\nOur [security policies and procedures](https://github.com/andrewgjohnson/agjVersionless/blob/main/.github/SECURITY.md) come via the [atomist/samples](https://github.com/atomist/samples/blob/master/SECURITY.md) project. Our [issue templates](https://github.com/andrewgjohnson/agjVersionless/tree/main/.github/ISSUE_TEMPLATE) come via the [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) project. Our [pull request template](https://github.com/andrewgjohnson/agjVersionless/blob/main/.github/PULL_REQUEST_TEMPLATE.md) comes via the [stevemao/github-issue-templates](https://github.com/stevemao/github-issue-templates) project. The [Jekyll theme](https://github.com/andrewgjohnson/open-source-documentation-jekyll-theme) was released by [Andrew G. Johnson](https://github.com/andrewgjohnson).\n\n## Changelog\n\nYou can find all notable changes in the [changelog](https://github.com/andrewgjohnson/agjVersionless/blob/main/CHANGELOG.md).\n","readmeFilename":"README.md"}